public abstract class ViewPlatformBehavior
extends org.jogamp.java3d.Behavior
Modifier and Type | Field and Description |
---|---|
protected org.jogamp.java3d.Transform3D |
homeTransform
The "home" transform for this behavior.
|
protected org.jogamp.java3d.TransformGroup |
targetTG
The target TransformGroup for this behavior.
|
protected ViewingPlatform |
vp
The ViewingPlatform for this behavior.
|
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 and Description |
---|
ViewPlatformBehavior() |
Modifier and Type | Method and Description |
---|---|
void |
getHomeTransform(org.jogamp.java3d.Transform3D home)
Returns the behaviors "home" transform.
|
ViewingPlatform |
getViewingPlatform()
Returns the ViewingPlatform for this behavior
|
void |
goHome()
Positions and reorients the ViewingPlatform to its "home" transform.
|
void |
setHomeTransform(org.jogamp.java3d.Transform3D home)
Copies the given Transform3D into the "home" transform, used to
position and reorient the ViewingPlatform to a known point of interest.
|
void |
setViewingPlatform(ViewingPlatform vp)
Sets the ViewingPlatform for this behavior.
|
getEnable, getNumSchedulingIntervals, getSchedulingBoundingLeaf, getSchedulingBounds, getSchedulingInterval, getView, getWakeupCondition, initialize, postId, processStimulus, setEnable, setSchedulingBoundingLeaf, setSchedulingBounds, setSchedulingInterval, updateNodeReferences, wakeupOn
cloneNode, cloneTree, cloneTree, cloneTree, cloneTree, cloneTree, cloneTree, duplicateNode, getBounds, getBoundsAutoCompute, getCollidable, getLocale, getLocalToVworld, getLocalToVworld, getParent, getPickable, setBounds, setBoundsAutoCompute, setCollidable, setPickable
protected ViewingPlatform vp
protected org.jogamp.java3d.TransformGroup targetTG
protected org.jogamp.java3d.Transform3D homeTransform
public void setViewingPlatform(ViewingPlatform vp)
NOTE: Applications should not call this method.
vp
- the target ViewingPlatform for this behaviorpublic ViewingPlatform getViewingPlatform()
public void setHomeTransform(org.jogamp.java3d.Transform3D home)
home
- source transform to be copiedpublic void getHomeTransform(org.jogamp.java3d.Transform3D home)
home
- transform to be returnedpublic void goHome()
Copyright © 2019. All rights reserved.