|
||||||||||
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
javax.media.j3d.Interpolator
org.wilmascope.centernode.CenterNode
public class CenterNode
Class CenterNode translates the selected node to the center of the screen and zooms it to an appropriate size.
Field Summary |
---|
Fields inherited from class javax.media.j3d.Interpolator |
---|
defaultWakeupCriterion |
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 | |
---|---|
CenterNode(javax.media.j3d.TransformGroup target)
|
Method Summary | |
---|---|
void |
initialize()
Initializes the wake up event:wake up every 25 miliseconds |
void |
processStimulus(java.util.Enumeration e)
Translate the whole scene graph a little every time wakes up |
void |
setOriginPosition(javax.vecmath.Vector3f position)
Sets the origin position to the specified position |
void |
setOriginPosition(javax.vecmath.Vector3f position,
float width)
Sets the origin position to the specified position |
Methods inherited from class javax.media.j3d.Interpolator |
---|
getAlpha, setAlpha |
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 |
Constructor Detail |
---|
public CenterNode(javax.media.j3d.TransformGroup target)
target
- The TransformGroup class Center Node manipulatesMethod Detail |
---|
public void initialize()
initialize
in class javax.media.j3d.Interpolator
public void processStimulus(java.util.Enumeration e)
processStimulus
in class javax.media.j3d.Behavior
public void setOriginPosition(javax.vecmath.Vector3f position)
public void setOriginPosition(javax.vecmath.Vector3f position, float width)
position
- target originwidth
- of the object that needs to fit in the viewport
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |