public abstract class KBSplinePathInterpolator extends TransformInterpolator
Modifier and Type | Field and Description |
---|---|
protected float |
currentU
This value is the distance between knots
value which can be used in further calculations by the subclass.
|
protected KBKeyFrame[] |
keyFrames
An array of KBKeyFrame for interpolator
|
protected int |
lowerKnot
The lower knot
|
protected int |
upperKnot
The upper knot
|
axis, axisInverse, target
defaultWakeupCriterion
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 |
---|
KBSplinePathInterpolator(Alpha alpha,
KBKeyFrame[] keys)
Deprecated.
As of Java 3D version 1.3, replaced by
KBSplinePathInterpolator(Alpha, TransformGroup, TCBKeyFrame[]) |
KBSplinePathInterpolator(Alpha alpha,
TransformGroup target,
KBKeyFrame[] keys)
Constructs a new KBSplinePathInterpolator object that interpolates
between keyframes with specified alpha, target and an default
axisOfTranform set to identity.
|
KBSplinePathInterpolator(Alpha alpha,
TransformGroup target,
Transform3D axisOfTransform,
KBKeyFrame[] keys)
Constructs a new KBSplinePathInterpolator object that interpolates
between keyframes with specified alpha, target and axisOfTransform.
|
Modifier and Type | Method and Description |
---|---|
protected void |
computePathInterpolation()
Deprecated.
As of Java 3D version 1.3, replaced by
computePathInterpolation(float) |
protected void |
computePathInterpolation(float alphaValue)
This method computes the bounding knot indices and interpolation value
"CurrentU" given the current value of the knots[] array and the
specified alpha value
|
void |
duplicateNode(Node originalNode,
boolean forceDuplicate)
Copies all KBSplinePathInterpolator information from
originalNode into
the current node. |
int |
getArrayLength()
This method retrieves the length of the key frame array.
|
KBKeyFrame |
getKeyFrame(int index)
This method retrieves the key frame at the specified index.
|
void |
setKeyFrame(int index,
KBKeyFrame keyFrame)
Set the key frame at the specified index to
keyFrame |
void |
setKeyFrames(KBKeyFrame[] keyFrames)
Set allthe key frames
|
computeTransform, getTarget, getTransformAxis, processStimulus, setTarget, setTransformAxis, updateNodeReferences
getAlpha, initialize, setAlpha
getEnable, getNumSchedulingIntervals, getSchedulingBoundingLeaf, getSchedulingBounds, getSchedulingInterval, getView, getWakeupCondition, postId, setEnable, setSchedulingBoundingLeaf, setSchedulingBounds, setSchedulingInterval, wakeupOn
cloneNode, cloneTree, cloneTree, cloneTree, cloneTree, cloneTree, cloneTree, getBounds, getBoundsAutoCompute, getCollidable, getLocale, getLocalToVworld, getLocalToVworld, getParent, getPickable, setBounds, setBoundsAutoCompute, setCollidable, setPickable
clearCapability, clearCapabilityIsFrequent, duplicateSceneGraphObject, getCapability, getCapabilityIsFrequent, getName, getUserData, isCompiled, isLive, setCapability, setCapabilityIsFrequent, setName, setUserData, toString
protected KBKeyFrame[] keyFrames
protected float currentU
protected int lowerKnot
protected int upperKnot
public KBSplinePathInterpolator(Alpha alpha, KBKeyFrame[] keys)
KBSplinePathInterpolator(Alpha, TransformGroup, TCBKeyFrame[])
public KBSplinePathInterpolator(Alpha alpha, TransformGroup target, KBKeyFrame[] keys)
alpha
- the alpha object for this interpolatortarget
- the TransformGroup node affected by this interpolatorkeys
- an array of KBKeyFrame. Requires at least two key frames.public KBSplinePathInterpolator(Alpha alpha, TransformGroup target, Transform3D axisOfTransform, KBKeyFrame[] keys)
alpha
- the alpha object for this interpolatortarget
- the TransformGroup node affected by this interpolatoraxisOfTransform
- the transform that defines the local coordinatekeys
- an array of KBKeyFrame. Requires at least two key framespublic int getArrayLength()
public KBKeyFrame getKeyFrame(int index)
index
- the index of the key frame requestedpublic void setKeyFrame(int index, KBKeyFrame keyFrame)
keyFrame
index
- Index of the key frame to changekeyFrame
- The new key framepublic void setKeyFrames(KBKeyFrame[] keyFrames)
keyFrames
- The new key frameprotected void computePathInterpolation()
computePathInterpolation(float)
protected void computePathInterpolation(float alphaValue)
alphaValue
- alpha value between 0.0 and 1.0public void duplicateNode(Node originalNode, boolean forceDuplicate)
originalNode
into
the current node. This method is called from the
cloneNode
method which is, in turn, called by the
cloneTree
method.duplicateNode
in class Node
originalNode
- the original node to duplicate.forceDuplicate
- when set to true
, causes the
duplicateOnCloneTree
flag to be ignored. When
false
, the value of each node's
duplicateOnCloneTree
variable determines whether
NodeComponent data is duplicated or copied.RestrictedAccessException
- if this object is part of a live
or compiled scenegraph.Node.duplicateNode(org.scijava.java3d.Node, boolean)
,
Node.cloneTree()
,
NodeComponent.setDuplicateOnCloneTree(boolean)
Copyright © 2016–2022 SciJava. All rights reserved.