|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--javax.media.j3d.SceneGraphObject | +--javax.media.j3d.Node | +--javax.media.j3d.Leaf | +--javax.media.j3d.Behavior | +--javax.media.j3d.Interpolator | +--javax.media.j3d.TransformInterpolator
TransformInterpolator is an abstract class that extends Interpolator to provide common methods used by various transform related interpolator subclasses. These include methods to set/get the target of TransformGroup, and set/get transform of axis.
Field Summary | |
protected Transform3D |
axis
The transform that defines the local coordinate |
protected Transform3D |
axisInverse
The inverse transform that defines the local coordinate |
protected TransformGroup |
target
The TransformGroup node affected by this transformInterpolator |
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 | |
TransformInterpolator()
Constructs a TransformInterpolator node with a null alpha value and a null target of TransformGroup |
|
TransformInterpolator(Alpha alpha,
TransformGroup target)
Constructs a trivial transform interpolator with a specified alpha, a specified target and an default axis set to Identity. |
|
TransformInterpolator(Alpha alpha,
TransformGroup target,
Transform3D axisOfTransform)
Constructs a new transform interpolator that set an specified alpha, a specified targe and a specified axisOfTransform. |
Method Summary | |
abstract void |
computeTransform(float alphaValue,
Transform3D transform)
Computes the new transform for this interpolator for a given alpha value. |
TransformGroup |
getTarget()
This method retrieves this interpolator's TransformGroup node reference. |
Transform3D |
getTransformAxis()
This method retrieves this interpolator's axis of transform. |
void |
processStimulus(java.util.Enumeration criteria)
This method is invoked by the behavior scheduler every frame. |
void |
setTarget(TransformGroup target)
This method sets the target TransformGroup node for this interpolator. |
void |
setTransformAxis(Transform3D axisOfTransform)
This method sets the axis of transform for this interpolator. |
void |
updateNodeReferences(NodeReferenceTable referenceTable)
Callback used to allow a node to check if any scene graph objects referenced by that node have been duplicated via a call to cloneTree . |
Methods inherited from class javax.media.j3d.Interpolator |
getAlpha, initialize, setAlpha |
Methods inherited from class javax.media.j3d.Behavior |
getEnable, getNumSchedulingIntervals, getSchedulingBoundingLeaf, getSchedulingBounds, getSchedulingInterval, getView, getWakeupCondition, postId, setEnable, setSchedulingBoundingLeaf, setSchedulingBounds, setSchedulingInterval, 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 |
Field Detail |
protected TransformGroup target
protected Transform3D axis
protected Transform3D axisInverse
Constructor Detail |
public TransformInterpolator()
public TransformInterpolator(Alpha alpha, TransformGroup target)
alpha
- The alpha object for this transform Interpolatortarget
- The target TransformGroup for this TransformInterpolatorpublic TransformInterpolator(Alpha alpha, TransformGroup target, Transform3D axisOfTransform)
alpha
- the alpha object for this interpolatortarget
- the transformGroup node affected by this transformInterpolatoraxisOfTransform
- the transform that defines the local coordinate
system in which this interpolator operates.Method Detail |
public void setTarget(TransformGroup target)
target
- The target TransformGrouppublic TransformGroup getTarget()
public void setTransformAxis(Transform3D axisOfTransform)
axisOfTransform
- the transform that defines the local coordinate
system in which this interpolator operatespublic Transform3D getTransformAxis()
public abstract void computeTransform(float alphaValue, Transform3D transform)
alphaValue
- alpha value between 0.0 and 1.0transform
- object that receives the computed transform for
the specified alpha valuepublic void processStimulus(java.util.Enumeration criteria)
processStimulus
in class Behavior
criteria
- an enumeration of the criteria that caused the
stimuluspublic void updateNodeReferences(NodeReferenceTable referenceTable)
cloneTree
.
This method is called by cloneTree
after all nodes in
the sub-graph have been duplicated. The cloned Leaf node's method
will be called and the Leaf node can then look up any object references
by using the getNewObjectReference
method found in the
NodeReferenceTable
object. If a match is found, a
reference to the corresponding object in the newly cloned sub-graph
is returned. If no corresponding reference is found, either a
DanglingReferenceException is thrown or a reference to the original
object is returned depending on the value of the
allowDanglingReferences
parameter passed in the
cloneTree
call.
NOTE: Applications should not call this method directly. It should only be called by the cloneTree method.
updateNodeReferences
in class Behavior
referenceTable
- a NodeReferenceTableObject that contains the
getNewObjectReference
method needed to search for
new object instances.NodeReferenceTable
,
Node.cloneTree()
,
DanglingReferenceException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |