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

Variable Index

 o ALLOW_APPEARANCE_READ
Specifies that the node allows read access to its appearance information.
 o ALLOW_APPEARANCE_WRITE
Specifies that the node allows write access to its appearance information.
 o ALLOW_COLLISION_BOUNDS_READ
Specifies that the node allows reading its collision Bounds
 o ALLOW_COLLISION_BOUNDS_WRITE
Specifies the node allows writing its collision Bounds
 o ALLOW_GEOSET_READ
Specifies that the node allows read access to its geometry information.
 o ALLOW_GEOSET_WRITE
Specifies that the node allows write access to its geometry information.
 o ALLOW_SQUASH_READ
Specifies that the node allows read access to its squash information.
 o ALLOW_SQUASH_WRITE
Specifies that the node allows write access to its squash information.
 o ALLOW_WEIGHTS_READ
Specifies that the node allows read access to its morph weight vector.
 o ALLOW_WEIGHTS_WRITE
Specifies that the node allows write access to its morph weight vector.

Constructor Index

 o Morph(GeometryArray[])
Constructs and initializes a Morph object with the default appearance.
 o Morph(GeometryArray[], Appearance)
Constructs and initializes a Morph object.

Method Index

 o getAppearance()
Retrieves the appearance component of this morph node.
 o getCollisionBounds()
Returns the collision bounding object of this node.
 o getGeometryArray(int)
Retrieves the geometryArray component of this Morph node.
 o getSquash()
Retrieves the squash component of this morph node.
 o getWeights()
Retrieves the Morph node's morph weight vector.
 o setAppearance(Appearance)
Sets the appearance component of this Morph node.
 o setCollisionBounds(Bounds)
Sets the collision bounds of a node.
 o setGeometryArrays(GeometryArray[])
Sets the geometryArrays component of the Morph node.
 o setSquash(Squash)
Sets the squash component of this Morph node.
 o setWeights(double[])
Sets this Morph node's morph weight vector.

Variables

 o ALLOW_GEOSET_READ
 public static final int ALLOW_GEOSET_READ
Specifies that the node allows read access to its geometry information.

 o ALLOW_GEOSET_WRITE
 public static final int ALLOW_GEOSET_WRITE
Specifies that the node allows write access to its geometry information.

 o ALLOW_APPEARANCE_READ
 public static final int ALLOW_APPEARANCE_READ
Specifies that the node allows read access to its appearance information.

 o ALLOW_APPEARANCE_WRITE
 public static final int ALLOW_APPEARANCE_WRITE
Specifies that the node allows write access to its appearance information.

 o ALLOW_WEIGHTS_READ
 public static final int ALLOW_WEIGHTS_READ
Specifies that the node allows read access to its morph weight vector.

 o ALLOW_WEIGHTS_WRITE
 public static final int ALLOW_WEIGHTS_WRITE
Specifies that the node allows write access to its morph weight vector.

 o ALLOW_SQUASH_READ
 public static final int ALLOW_SQUASH_READ
Specifies that the node allows read access to its squash information.

 o ALLOW_SQUASH_WRITE
 public static final int ALLOW_SQUASH_WRITE
Specifies that the node allows write access to its squash information.

 o ALLOW_COLLISION_BOUNDS_READ
 public static final int ALLOW_COLLISION_BOUNDS_READ
Specifies that the node allows reading its collision Bounds

 o ALLOW_COLLISION_BOUNDS_WRITE
 public static final int ALLOW_COLLISION_BOUNDS_WRITE
Specifies the node allows writing its collision Bounds

Constructors

 o 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).
 o 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).

Methods

 o 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
 o 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
 o 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).
 o 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
 o 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
 o 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
 o 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.
 o 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
 o 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
 o 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