|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.media.j3d.SceneGraphObject
javax.media.j3d.Node
javax.media.j3d.Leaf
javax.media.j3d.Behavior
com.sun.j3d.utils.behaviors.mouse.MouseBehavior
org.wilmascope.rotation.RotationBehavior
public class RotationBehavior
RotationBehavior is a Java3D behavior object that lets users control the rotation direction and speed via a mouse.
RotationBehavior rotationBehavior = new RotationBehavior(bg, transformGroup,
bounds);
rotationBehavior.setSchedulingBounds(bounds);
bg.addChild(rotationBehavior);
The above code will add the rotation behavior to the
branchgroup group.
| Field Summary |
|---|
| Fields inherited from class com.sun.j3d.utils.behaviors.mouse.MouseBehavior |
|---|
buttonPress, currXform, enable, flags, invert, INVERT_INPUT, MANUAL_WAKEUP, mouseCriterion, mouseEvents, mouseq, reset, transformGroup, transformX, transformY, wakeUp, x, x_last, y, y_last |
| 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 | |
|---|---|
RotationBehavior(javax.media.j3d.BranchGroup bg,
javax.media.j3d.TransformGroup transformGroup,
javax.media.j3d.Bounds bounds)
When initialize, Rotation Behavior will create an AutoRotation
object to rotate the scene graph continuously. |
|
| Method Summary | |
|---|---|
void |
defaultRotate()
causes a gentle left to right rotation |
AutoRotation |
getRotator()
Returns the AutoRotation Object |
void |
initialize()
Initializes the wake up events |
void |
processStimulus(java.util.Enumeration criteria)
Processes the mouse events |
| Methods inherited from class com.sun.j3d.utils.behaviors.mouse.MouseBehavior |
|---|
addListener, getTransformGroup, mouseClicked, mouseDragged, mouseEntered, mouseExited, mouseMoved, mousePressed, mouseReleased, processMouseEvent, setEnable, setTransformGroup, wakeup |
| Methods inherited from class javax.media.j3d.Behavior |
|---|
getEnable, getNumSchedulingIntervals, getSchedulingBoundingLeaf, getSchedulingBounds, getSchedulingInterval, getView, getWakeupCondition, postId, 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 |
| Constructor Detail |
|---|
public RotationBehavior(javax.media.j3d.BranchGroup bg,
javax.media.j3d.TransformGroup transformGroup,
javax.media.j3d.Bounds bounds)
AutoRotation
object to rotate the scene graph continuously.
bg - The branch group the AutoRotation object will be attachedtransformGroup - The transform group RotationBehavior controlsbounds - The scheduling bounds of the AutoRotation Object| Method Detail |
|---|
public void initialize()
initialize in class com.sun.j3d.utils.behaviors.mouse.MouseBehaviorpublic void defaultRotate()
public void processStimulus(java.util.Enumeration criteria)
processStimulus in class com.sun.j3d.utils.behaviors.mouse.MouseBehaviorpublic AutoRotation getRotator()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||