|
OrbitBehaviorAnaglyph | |||||||||
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.interactivemesh.j3d.community.utils.navigation.orbitanaglyph.ViewPlatformBehaviorInterim
public abstract class ViewPlatformBehaviorInterim
Abstract class which provides the target TransformGroup and a home transform.
Field Summary | |
---|---|
protected javax.vecmath.Point3d |
homeRotCenter
The "home" rotation center for this behavior. |
protected javax.media.j3d.Transform3D |
homeTransform
The "home" transform for this behavior. |
protected javax.media.j3d.TransformGroup |
targetTG
The target TransformGroup for this behavior. |
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_LOCALE_READ, ALLOW_PARENT_READ, ALLOW_PICKABLE_READ, ALLOW_PICKABLE_WRITE, ENABLE_COLLISION_REPORTING, ENABLE_PICK_REPORTING |
Constructor Summary | |
---|---|
ViewPlatformBehaviorInterim()
|
Method Summary | |
---|---|
void |
getHomeRotationCenter(javax.vecmath.Point3d homeCenter)
Places the value of the "home" center around which the View rotates into the Point3d. |
void |
getHomeTransform(javax.media.j3d.Transform3D home)
Returns the behaviors "home" transform. |
javax.media.j3d.TransformGroup |
getViewingTransformGroup()
Returns the target TransformGroup of this behavior. |
abstract void |
goHome()
Positions and reorients the ViewingPlatform to its "home" transform. |
abstract void |
goHome(boolean aroundHomeCenter)
Positions and reorients the ViewingPlatform to its "home" transform and the current rotation center is set to the "home" rotation center if desired. |
void |
setHomeRotationCenter(javax.vecmath.Point3d homeCenter)
Sets the "home" rotation center. |
void |
setHomeTransform(javax.media.j3d.Transform3D home)
Copies the given Transform3D into the "home" transform, used to position and reorient the ViewingPlatform to a known point of interest. |
void |
setViewingTransformGroup(javax.media.j3d.TransformGroup tg)
Sets the ViewPlatform's TransformGroup for this behavior. |
Methods inherited from class javax.media.j3d.Behavior |
---|
getEnable, getNumSchedulingIntervals, getSchedulingBoundingLeaf, getSchedulingBounds, getSchedulingInterval, getView, getWakeupCondition, initialize, postId, processStimulus, 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, getLocale, getLocalToVworld, getLocalToVworld, getParent, getPickable, setBounds, setBoundsAutoCompute, setCollidable, setPickable |
Methods inherited from class javax.media.j3d.SceneGraphObject |
---|
clearCapability, clearCapabilityIsFrequent, duplicateSceneGraphObject, getCapability, getCapabilityIsFrequent, getName, getUserData, isCompiled, isLive, setCapability, setCapabilityIsFrequent, setName, setUserData, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected javax.media.j3d.TransformGroup targetTG
protected javax.media.j3d.Transform3D homeTransform
protected javax.vecmath.Point3d homeRotCenter
Constructor Detail |
---|
public ViewPlatformBehaviorInterim()
Method Detail |
---|
public void setViewingTransformGroup(javax.media.j3d.TransformGroup tg)
tg
- the target TransformGroup for this behaviorpublic javax.media.j3d.TransformGroup getViewingTransformGroup()
public void setHomeTransform(javax.media.j3d.Transform3D home)
home
- source transform to be copied,
if home is null the home transform is set to the identity matrix (since 1.1)public void getHomeTransform(javax.media.j3d.Transform3D home)
home
- transform to be returnedpublic void getHomeRotationCenter(javax.vecmath.Point3d homeCenter)
homeCenter
- The Point3dpublic void setHomeRotationCenter(javax.vecmath.Point3d homeCenter)
homeCenter
- The Point3d to set the "home" center of rotation to,
if null center is set to the default value (0, 0, 0)public abstract void goHome()
public abstract void goHome(boolean aroundHomeCenter)
aroundHomeCenter
- if true the current roation center is set
to the 'home' rotation center, otherwise the center remains unchanged
|
OrbitBehaviorAnaglyph | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |