All Packages Class Hierarchy This Package Previous Next Index
Class java.media.j3d.Morph
java.lang.Object
|
+----java.media.j3d.SceneGraphObject
|
+----java.media.j3d.Node
|
+----java.media.j3d.Leaf
|
+----java.media.j3d.Morph
- public class Morph
- extends Leaf
-
ALLOW_APPEARANCE_READ
- Specifies that the node allows read access to its appearance information.
-
ALLOW_APPEARANCE_WRITE
- Specifies that the node allows write access to its appearance information.
-
ALLOW_COLLISION_BOUNDS_READ
- Specifies that the node allows reading its collision Bounds
-
ALLOW_COLLISION_BOUNDS_WRITE
- Specifies the node allows writing its collision Bounds
-
ALLOW_GEOSET_READ
- Specifies that the node allows read access to its geometry information.
-
ALLOW_GEOSET_WRITE
- Specifies that the node allows write access to its geometry information.
-
ALLOW_SQUASH_READ
- Specifies that the node allows read access to its squash information.
-
ALLOW_SQUASH_WRITE
- Specifies that the node allows write access to its squash information.
-
ALLOW_WEIGHTS_READ
- Specifies that the node allows read access to its morph
weight vector.
-
ALLOW_WEIGHTS_WRITE
- Specifies that the node allows write access to its morph
weight vector.
-
Morph(GeometryArray[])
- Constructs and initializes a Morph object with the default appearance.
-
Morph(GeometryArray[], Appearance)
- Constructs and initializes a Morph object.
-
getAppearance()
- Retrieves the appearance component of this morph node.
-
getCollisionBounds()
- Returns the collision bounding object of this node.
-
getGeometryArray(int)
- Retrieves the geometryArray component of this Morph node.
-
getSquash()
- Retrieves the squash component of this morph node.
-
getWeights()
- Retrieves the Morph node's morph weight vector.
-
setAppearance(Appearance)
- Sets the appearance component of this Morph node.
-
setCollisionBounds(Bounds)
- Sets the collision bounds of a node.
-
setGeometryArrays(GeometryArray[])
- Sets the geometryArrays component of the Morph node.
-
setSquash(Squash)
- Sets the squash component of this Morph node.
-
setWeights(double[])
- Sets this Morph node's morph weight vector.
ALLOW_GEOSET_READ
public static final int ALLOW_GEOSET_READ
- Specifies that the node allows read access to its geometry information.
ALLOW_GEOSET_WRITE
public static final int ALLOW_GEOSET_WRITE
- Specifies that the node allows write access to its geometry information.
ALLOW_APPEARANCE_READ
public static final int ALLOW_APPEARANCE_READ
- Specifies that the node allows read access to its appearance information.
ALLOW_APPEARANCE_WRITE
public static final int ALLOW_APPEARANCE_WRITE
- Specifies that the node allows write access to its appearance information.
ALLOW_WEIGHTS_READ
public static final int ALLOW_WEIGHTS_READ
- Specifies that the node allows read access to its morph
weight vector.
ALLOW_WEIGHTS_WRITE
public static final int ALLOW_WEIGHTS_WRITE
- Specifies that the node allows write access to its morph
weight vector.
ALLOW_SQUASH_READ
public static final int ALLOW_SQUASH_READ
- Specifies that the node allows read access to its squash information.
ALLOW_SQUASH_WRITE
public static final int ALLOW_SQUASH_WRITE
- Specifies that the node allows write access to its squash information.
ALLOW_COLLISION_BOUNDS_READ
public static final int ALLOW_COLLISION_BOUNDS_READ
- Specifies that the node allows reading its collision Bounds
ALLOW_COLLISION_BOUNDS_WRITE
public static final int ALLOW_COLLISION_BOUNDS_WRITE
- Specifies the node allows writing its collision Bounds
Morph
public Morph(GeometryArray geometryArrays[])
- Constructs and initializes a Morph object with the default appearance.
- Parameters:
- geometryArrays - the geometry components of the morph
- Throws: IllegalArgumentException
- if vertexFormat of all GeometryArrays
is NOT same or vertexCount of all GeometryArrays is NOT same or all GeometryArrays
are NOT of same type(tstrip, lines etc).
Morph
public Morph(GeometryArray geometryArrays[],
Appearance appearance)
- Constructs and initializes a Morph object.
- Parameters:
- geometryArrays - the geometry components of the morph
- appearance - the appearance component of the morph
- Throws: IllegalArgumentException
- if vertexFormat of all GeometryArrays
is NOT same or vertexCount of all GeometryArrays is NOT same or all GeometryArrays
are NOT of same type(tstrip, lines etc).
setCollisionBounds
public final void setCollisionBounds(Bounds bounds)
- Sets the collision bounds of a node.
- Parameters:
- bounds - the collision bounding object for a node
- Throws: CapabilityNotSetException
- if appropriate capability is
not set and this object is part of live or compiled scene graph
getCollisionBounds
public final Bounds getCollisionBounds()
- Returns the collision bounding object of this node.
- Returns:
- the node's collision bounding object
- Throws: CapabilityNotSetException
- if appropriate capability is
not set and this object is part of live or compiled scene graph
setGeometryArrays
public final void setGeometryArrays(GeometryArray geometryArrays[])
- Sets the geometryArrays component of the Morph node.
- Parameters:
- geometryArrays - the new geometryArrays component for the Morph node
- Throws: CapabilityNotSetException
- if appropriate capability is
not set and this object is part of live or compiled scene graph
- Throws: IllegalArgumentException
- if vertexFormat of all GeometryArrays
is NOT same or vertexCount of all GeometryArrays is NOT same or all GeometryArrays
are NOT of same type(tstrip, lines etc).
getGeometryArray
public final GeometryArray getGeometryArray(int index)
- Retrieves the geometryArray component of this Morph node.
- Parameters:
- index - the index of GeometryArray to be returned
- Returns:
- the geometryArray component of this Morph node
- Throws: CapabilityNotSetException
- if appropriate capability is
not set and this object is part of live or compiled scene graph
setAppearance
public final void setAppearance(Appearance appearance)
- Sets the appearance component of this Morph node.
- Parameters:
- appearance - the new appearance component for this Morph node
- Throws: CapabilityNotSetException
- if appropriate capability is
not set and this object is part of live or compiled scene graph
getAppearance
public final Appearance getAppearance()
- Retrieves the appearance component of this morph node.
- Returns:
- the appearance component of this morph node
- Throws: CapabilityNotSetException
- if appropriate capability is
not set and this object is part of live or compiled scene graph
setWeights
public final void setWeights(double weights[])
- Sets this Morph node's morph weight vector.
- Parameters:
- weights - the morph weight vector that the morph node will
use in combining the node's geometryArrays. The morph node will "weight"
the corresponding GeometryArray by the amount specified. N.B.: the sum of
the weights should equal 1.0
- Throws: CapabilityNotSetException
- if appropriate capability is
not set and this object is part of live or compiled scene graph
- Throws: IllegalArgumentException
- if sum of all 'weights' is
NOT 1.0 or number of weights is NOT exqual to number of GeometryArrays.
getWeights
public final double[] getWeights()
- Retrieves the Morph node's morph weight vector.
- Returns:
- the morph weight vector component of this morph node
- Throws: CapabilityNotSetException
- if appropriate capability is
not set and this object is part of live or compiled scene graph
setSquash
public final void setSquash(Squash squash)
- Sets the squash component of this Morph node.
- Parameters:
- squash - the squash component applied to
the geometryArrays referenced by this morph node. This is used to
stretch or squash an object (e.g., to turn a sphere into an
ellipsoid. If squash is null then no scaling is
applied to the geometryArrays.
- Throws: CapabilityNotSetException
- if appropriate capability is
not set and this object is part of live or compiled scene graph
getSquash
public final Squash getSquash()
- Retrieves the squash component of this morph node.
- Returns:
- the squash component of this morph node
- Throws: CapabilityNotSetException
- if appropriate capability is
not set and this object is part of live or compiled scene graph
All Packages Class Hierarchy This Package Previous Next Index