camera3d.manipulation
Class PickRotateBehavior
java.lang.Object
javax.media.j3d.SceneGraphObject
javax.media.j3d.Node
javax.media.j3d.Leaf
javax.media.j3d.Behavior
com.sun.j3d.utils.picking.behaviors.PickMouseBehavior
camera3d.manipulation.PickRotateBehavior
- public class PickRotateBehavior
- extends com.sun.j3d.utils.picking.behaviors.PickMouseBehavior
EXAMINE this class to decide if it will be include in the public release.
A behavior for picking and rotating scene objects.
- Version:
- 1.0
- Author:
- Fábio Roberto de Miranda, Carlos da Silva dos Santos
Fields inherited from class com.sun.j3d.utils.picking.behaviors.PickMouseBehavior |
buttonPress, conditions, currGrp, mevent, pickCanvas, wakeupCondition |
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 |
PickRotateBehavior(javax.media.j3d.Canvas3D canvas,
javax.media.j3d.BranchGroup root,
javax.media.j3d.Bounds bounds)
Creates new rotate behavior given the root of tree to operate on, a Canvas3D and the Bounds.
|
PickRotateBehavior(javax.media.j3d.Canvas3D canvas,
javax.media.j3d.BranchGroup root,
javax.media.j3d.Bounds bounds,
int pickMode)
Creates new rotate behavior given the root of tree to operate on, Canvas3D, Bounds and pick
mode. |
Methods inherited from class com.sun.j3d.utils.picking.behaviors.PickMouseBehavior |
getMode, getTolerance, setMode, setTolerance |
Methods inherited from class javax.media.j3d.Behavior |
getEnable, getNumSchedulingIntervals, getSchedulingBoundingLeaf, getSchedulingBounds, getSchedulingInterval, getView, getWakeupCondition, postId, setEnable, setSchedulingBoundingLeaf, setSchedulingBounds, setSchedulingInterval, updateNodeReferences, wakeupOn |
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, duplicateSceneGraphObject, getCapability, getCapabilityIsFrequent, getUserData, isCompiled, isLive, setCapability, setCapabilityIsFrequent, setUserData |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PickRotateBehavior
public PickRotateBehavior(javax.media.j3d.Canvas3D canvas,
javax.media.j3d.BranchGroup root,
javax.media.j3d.Bounds bounds)
- Creates new rotate behavior given the root of tree to operate on, a Canvas3D and the Bounds.
Default pick mode is PickTool.GEOMETRY.
PickRotateBehavior
public PickRotateBehavior(javax.media.j3d.Canvas3D canvas,
javax.media.j3d.BranchGroup root,
javax.media.j3d.Bounds bounds,
int pickMode)
- Creates new rotate behavior given the root of tree to operate on, Canvas3D, Bounds and pick
mode.
initialize
public void initialize()
updateScene
public void updateScene(int xpos,
int ypos)
processStimulus
public void processStimulus(java.util.Enumeration criteria)
setRotationAxis
public void setRotationAxis(TransformScope axis)
setTransformationMode
public void setTransformationMode(TransformMode mode)
Copyright © 2001-2003 F.R. Miranda, C.S. Santos, J.E. Kogler Jr.. All Rights Reserved.