NCSA Portfolio

ncsa.j3d.ui.tools
Class ViewTool

java.lang.Object
  |
  +--javax.media.j3d.SceneGraphObject
        |
        +--javax.media.j3d.Node
              |
              +--javax.media.j3d.Leaf
                    |
                    +--javax.media.j3d.Behavior
                          |
                          +--ncsa.j3d.ui.tools.ViewTool

public class ViewTool
extends javax.media.j3d.Behavior
implements ToolInterface

The ViewTool is used to allow the user to manipulate the ViewPlatform via it's TransformGroup. This effectively lets the user to manipulate the View to move through the scene.


Fields inherited from class javax.media.j3d.Node
ALLOW_AUTO_COMPUTE_BOUNDS_READ, ALLOW_AUTO_COMPUTE_BOUNDS_WRITE, ALLOW_BOUNDS_READ, ALLOW_BOUNDS_WRITE, ALLOW_COLLIDABLE_READ, ALLOW_COLLIDABLE_WRITE, ALLOW_LOCAL_TO_VWORLD_READ, ALLOW_PICK, ALLOW_PICKABLE_READ, ALLOW_PICKABLE_WRITE, ENABLE_COLLISION_REPORTING, ENABLE_PICK_REPORTING
 
Constructor Summary
ViewTool()
           
 
Method Summary
 java.lang.String describe()
          Returns a string to describe this object.
 java.lang.String describeFunctionality()
          Allows a tool to indicate any special functionality.
 void initialize()
           
 boolean notify(java.util.EventObject o)
          This function accepts events from portfolio or one of its event grabbers.
 void processStimulus(java.util.Enumeration criteria)
           
 void setToolManager(ToolManagerInterface m)
          This function allows specifying the tool manager that this tool is owned by.
 
Methods inherited from class javax.media.j3d.Behavior
duplicateNode, getEnable, getSchedulingBoundingLeaf, getSchedulingBounds, postId, setEnable, setSchedulingBoundingLeaf, setSchedulingBounds, updateNodeReferences
 
Methods inherited from class javax.media.j3d.Node
cloneNode, cloneTree, cloneTree, cloneTree, getBounds, getBoundsAutoCompute, getCollidable, getLocalToVworld, getLocalToVworld, getParent, getPickable, setBounds, setBoundsAutoCompute, setCollidable, setPickable
 
Methods inherited from class javax.media.j3d.SceneGraphObject
clearCapability, getCapability, getUserData, isCompiled, isLive, setCapability, setUserData
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ViewTool

public ViewTool()
Method Detail

initialize

public void initialize()
Overrides:
initialize in class javax.media.j3d.Behavior

processStimulus

public void processStimulus(java.util.Enumeration criteria)
Overrides:
processStimulus in class javax.media.j3d.Behavior

describe

public java.lang.String describe()
Returns a string to describe this object.
Specified by:
describe in interface ToolInterface
Tags copied from interface: ToolInterface
Parameters:
none -  

describeFunctionality

public java.lang.String describeFunctionality()
Description copied from interface: ToolInterface
Allows a tool to indicate any special functionality. For instance the 'H' might do something special
Specified by:
describeFunctionality in interface ToolInterface
Tags copied from interface: ToolInterface
Parameters:
none -  

setToolManager

public void setToolManager(ToolManagerInterface m)
Description copied from interface: ToolInterface
This function allows specifying the tool manager that this tool is owned by. Typically there is only 1 toolmanager.
Specified by:
setToolManager in interface ToolInterface
Tags copied from interface: ToolInterface
Parameters:
ToolManagerInterface - the interface to talk to

notify

public boolean notify(java.util.EventObject o)
Description copied from interface: PortfolioEventReceiver
This function accepts events from portfolio or one of its event grabbers.
Tags copied from interface: PortfolioEventReceiver
Parameters:
EventObject - The event to be processed.

NCSA Portfolio

NCSA Portfolio, Copyright 1997-1999, National Center for Supercomputing Applications, University of Illinois Urbana-Champaign, All Rights Reserved