All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class java.media.j3d.Squash

java.lang.Object
   |
   +----java.media.j3d.SceneGraphObject
           |
           +----java.media.j3d.NodeComponent
                   |
                   +----java.media.j3d.Squash

public class Squash
extends NodeComponent
Squash is a component object that affects geometry referenced by a Shape3D or Morph node. The Squash object applies an affine 3D transformation that may contain a non-uniform scale and/or a skew. It is intended to be used as scaling operation that stretches or squashes geometry (e.g., to turn a sphere into an ellipsoid).

The Squash object is the only element within the scene graph that can contain a transform with a non-uniform scale or shear.


Variable Index

 o ALLOW_TRANSFORM_READ
Specifies that the object allows read access to its transform information.
 o ALLOW_TRANSFORM_WRITE
Specifies that the object allows write access to its transform information.

Constructor Index

 o Squash()
Constructs and initializes a Squash object with an identity transform.
 o Squash(Transform3D)
Constructs and initializes a Squash object with the specified transform.

Method Index

 o getTransform(Transform3D)
Retrieves the transform component of this Squash object.
 o setTransform(Transform3D)
Sets the transform component of this Squash object.

Variables

 o ALLOW_TRANSFORM_READ
 public static final int ALLOW_TRANSFORM_READ
Specifies that the object allows read access to its transform information.

 o ALLOW_TRANSFORM_WRITE
 public static final int ALLOW_TRANSFORM_WRITE
Specifies that the object allows write access to its transform information.

Constructors

 o Squash
 public Squash()
Constructs and initializes a Squash object with an identity transform.

 o Squash
 public Squash(Transform3D transform)
Constructs and initializes a Squash object with the specified transform.

Parameters:
transform - the new affine transform used in this squash or stretch operation
Throws: BadTransformException
if the transform is not affine

Methods

 o setTransform
 public final void setTransform(Transform3D transform)
Sets the transform component of this Squash object.

Parameters:
transform - the new affine transform used in this squash or stretch operation
Throws: BadTransformException
if the transform is not affine
Throws: CapabilityNotSetException
if appropriate capability is not set and this object is part of live or compiled scene graph
 o getTransform
 public final void getTransform(Transform3D transform)
Retrieves the transform component of this Squash object.

Parameters:
the - transform object that will receive the transform component
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