|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--javax.media.j3d.SceneGraphObject
|
+--javax.media.j3d.Node
|
+--javax.media.j3d.Leaf
|
+--javax.media.j3d.Behavior
|
+--unbboolean.gui.scenegraph.GeneralPickBehavior
Class responsible for applying transformations on solids where the user drags one of them with a mouse on a screen
| Field Summary |
| 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_PICKABLE_READ, ALLOW_PICKABLE_WRITE, ENABLE_COLLISION_REPORTING, ENABLE_PICK_REPORTING |
| Constructor Summary | |
GeneralPickBehavior(javax.media.j3d.BranchGroup root,
javax.media.j3d.Canvas3D canvas,
SolidsSelectionListener listener)
Constructs a GeneralPickBehavior object |
|
| Method Summary | |
void |
initialize()
Initializes the behavior attributes |
void |
processStimulus(java.util.Enumeration criteria)
Applies a transformation when a solid is dragged |
void |
setMoveMode(CSGSolid solid)
Sets move mode on |
void |
unsetMoveMode(CSGSolid solid)
Sets move mode off |
| Methods inherited from class javax.media.j3d.Behavior |
getEnable, getNumSchedulingIntervals, getSchedulingBoundingLeaf, getSchedulingBounds, getSchedulingInterval, postId, setEnable, setSchedulingBoundingLeaf, setSchedulingBounds, setSchedulingInterval, updateNodeReferences |
| Methods inherited from class javax.media.j3d.Node |
cloneNode, cloneTree, cloneTree, cloneTree, cloneTree, cloneTree, cloneTree, duplicateNode, getBounds, getBoundsAutoCompute, getCollidable, getLocalToVworld, getLocalToVworld, getParent, getPickable, setBounds, setBoundsAutoCompute, setCollidable, setPickable |
| Methods inherited from class javax.media.j3d.SceneGraphObject |
clearCapability, clearCapabilityIsFrequent, getCapability, getCapabilityIsFrequent, getUserData, isCompiled, isLive, setCapability, setCapabilityIsFrequent, setUserData |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public GeneralPickBehavior(javax.media.j3d.BranchGroup root,
javax.media.j3d.Canvas3D canvas,
SolidsSelectionListener listener)
root - root of the scene graph where the solids arecanvas - screen where the iteration with the solids occurslistener - listener that receives information about solids selection| Method Detail |
public void initialize()
initialize in class javax.media.j3d.Behaviorpublic void processStimulus(java.util.Enumeration criteria)
processStimulus in class javax.media.j3d.Behaviorcriteria - set of stimulus receivedpublic void setMoveMode(CSGSolid solid)
solid - move mode solidpublic void unsetMoveMode(CSGSolid solid)
solid - solid to be selected after the move mode is off
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||