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.
-
ALLOW_TRANSFORM_READ
- Specifies that the object allows read access to its
transform information.
-
ALLOW_TRANSFORM_WRITE
- Specifies that the object allows write access to its
transform information.
-
Squash()
- Constructs and initializes a Squash object with an identity
transform.
-
Squash(Transform3D)
- Constructs and initializes a Squash object with the specified transform.
-
getTransform(Transform3D)
- Retrieves the transform component of this Squash object.
-
setTransform(Transform3D)
- Sets the transform component of this Squash object.
ALLOW_TRANSFORM_READ
public static final int ALLOW_TRANSFORM_READ
- Specifies that the object allows read access to its
transform information.
ALLOW_TRANSFORM_WRITE
public static final int ALLOW_TRANSFORM_WRITE
- Specifies that the object allows write access to its
transform information.
Squash
public Squash()
- Constructs and initializes a Squash object with an identity
transform.
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
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
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