| 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 javax.media.j3d.ScaleInterpolator
ScaleInterpolator | public class ScaleInterpolator extends TransformInterpolator (Code) | | Scale interpolation behavior. This class defines a behavior
that modifies the uniform scale component of its target
TransformGroup by linearly interpolating between a pair of
specified scale values (using the value generated by the
specified Alpha object). The interpolated scale value is
used to generate a scale transform in the local coordinate
system of this interpolator.
|
Constructor Summary | |
| ScaleInterpolator() | public | ScaleInterpolator(Alpha alpha, TransformGroup target) Constructs a trivial scale interpolator that varies its target
TransformGroup node between the two specified alpha values
using the specified alpha, an identity matrix,
a minimum scale = 0.1f, and a maximum scale = 1.0f. | public | ScaleInterpolator(Alpha alpha, TransformGroup target, Transform3D axisOfTransform, float minimumScale, float maximumScale) Constructs a new scaleInterpolator object that varies its target
TransformGroup node's scale component between two scale values
(minimumScale and maximumScale). |
maximumScale | float maximumScale(Code) | | |
minimumScale | float minimumScale(Code) | | |
ScaleInterpolator | ScaleInterpolator()(Code) | | |
ScaleInterpolator | public ScaleInterpolator(Alpha alpha, TransformGroup target)(Code) | | Constructs a trivial scale interpolator that varies its target
TransformGroup node between the two specified alpha values
using the specified alpha, an identity matrix,
a minimum scale = 0.1f, and a maximum scale = 1.0f.
Parameters: alpha - the alpha object for this interpolator Parameters: target - the TransformGroup node affected by this interpolator |
ScaleInterpolator | public ScaleInterpolator(Alpha alpha, TransformGroup target, Transform3D axisOfTransform, float minimumScale, float maximumScale)(Code) | | Constructs a new scaleInterpolator object that varies its target
TransformGroup node's scale component between two scale values
(minimumScale and maximumScale).
Parameters: alpha - the alpha object for this interpolator Parameters: target - the TransformGroup node affected by this interpolator Parameters: axisOfTransform - the transform that defines the local coordinatesystem in which this interpolator operates; the scale is doneabout the origin of this local coordinate system. Parameters: minimumScale - the starting scale Parameters: maximumScale - the ending scale |
cloneNode | public Node cloneNode(boolean forceDuplicate)(Code) | | Used to create a new instance of the node. This routine is called
by cloneTree to duplicate the current node.
Parameters: forceDuplicate - when set to true , causes theduplicateOnCloneTree flag to be ignored. Whenfalse , the value of each node'sduplicateOnCloneTree variable determines whetherNodeComponent data is duplicated or copied. See Also: Node.cloneTree See Also: Node.cloneNode See Also: Node.duplicateNode See Also: NodeComponent.setDuplicateOnCloneTree |
computeTransform | public void computeTransform(float alphaValue, Transform3D transform)(Code) | | Computes the new transform for this interpolator for a given
alpha value.
Parameters: alphaValue - alpha value between 0.0 and 1.0 Parameters: transform - object that receives the computed transform forthe specified alpha value since: Java 3D 1.3 |
duplicateAttributes | void duplicateAttributes(Node originalNode, boolean forceDuplicate)(Code) | | Copies all ScaleInterpolator information from
originalNode into
the current node. This method is called from the
cloneNode method which is, in turn, called by the
cloneTree method.
Parameters: originalNode - the original node to duplicate. Parameters: forceDuplicate - when set to true , causes theduplicateOnCloneTree flag to be ignored. Whenfalse , the value of each node'sduplicateOnCloneTree variable determines whetherNodeComponent data is duplicated or copied. exception: RestrictedAccessException - if this object is part of a liveor compiled scenegraph. See Also: Node.duplicateNode See Also: Node.cloneTree See Also: NodeComponent.setDuplicateOnCloneTree |
getMaximumScale | public float getMaximumScale()(Code) | | This method retrieves this interpolator's maximumScale.
the interpolator's maximum scale vslue |
getMinimumScale | public float getMinimumScale()(Code) | | This method retrieves this interpolator's minimumScale.
the interpolator's minimal scale value |
setMaximumScale | public void setMaximumScale(float scale)(Code) | | This method sets the maximumScale for this interpolator.
Parameters: scale - the new maximum scale |
setMinimumScale | public void setMinimumScale(float scale)(Code) | | This method sets the minimumScale for this interpolator.
Parameters: scale - The new minimal scale |
|
|