Package wt.epm.structure
Class Transform
java.lang.Object
wt.epm.structure._Transform
wt.epm.structure.Transform
- All Implemented Interfaces:
Externalizable,Serializable,wt.fc._NetFactor,wt.fc._ObjectMappable,NetFactor,ObjectMappable,Evolvable
@GenAsObjectMappable(serializable=EVOLVABLE,versions={-5372296348548803994L,4215319275361275248L},properties={@GeneratedProperty(name="rotation1",type=double[][].class,supportedAPI=PUBLIC,accessors=@PropertyAccessors(getAccess=PRIVATE),constraints=@PropertyConstraints(fixedArrayLength=3)),@GeneratedProperty(name="rotation2",type=double[][].class,supportedAPI=PUBLIC,accessors=@PropertyAccessors(getAccess=PRIVATE),constraints=@PropertyConstraints(fixedArrayLength=3)),@GeneratedProperty(name="rotation3",type=double[][].class,supportedAPI=PUBLIC,accessors=@PropertyAccessors(getAccess=PRIVATE),constraints=@PropertyConstraints(fixedArrayLength=3)),@GeneratedProperty(name="translation",type=double[][].class,supportedAPI=PUBLIC,accessors=@PropertyAccessors(getAccess=PRIVATE),constraints=@PropertyConstraints(fixedArrayLength=3))})
public class Transform
extends _Transform
Transform does not support any mathematical operations. Instead, it provides
methods to convert back and forth to Matrix4d. Matrix4d is class is
in the Java3D vecmath package that supports all kinds of mathematical
operations.
Interfacing is done through the standard Matrix4d methods such
as getRotationScale and get ( forTranslation vector). This implies that
any Matrix4d sent or gotten must be constructed in the proper format.
The format is row-major, thus the translation vector is stored in the
third column of the matrix.
The units of the translation vector must be meters.
Use the newTransform static factory method(s), not the Transform
constructor, to construct instances of this class. Instances must be
constructed using the static factory(s), in order to ensure proper initialization
of the instance.
Supported API: true
Extendable: false
- See Also:
-
Field Summary
Fields inherited from class wt.epm.structure._Transform
ROTATION1, ROTATION2, ROTATION3, TRANSLATION -
Method Summary
Modifier and TypeMethodDescriptionprotected voidinitialize(javax.vecmath.Matrix4d transform) Supports initialization, following construction of an instance.protected voidinitialize(Transform transform) Supports initialization, following construction of an instance.static TransformnewTransform(javax.vecmath.Matrix4d transform) Given a Java 3D matrix, creates a new Transform.static TransformnewTransform(Transform transform) Creates a copy of the given Transform.voidsetTransform(javax.vecmath.Matrix4d transform) Sets the Transform to the given Java3D matrix.javax.vecmath.Matrix4dReturns a Java 3D matrix for this Transform.
-
Method Details
-
newTransform
Given a Java 3D matrix, creates a new Transform.
Supported API: true- Parameters:
transform-- Returns:
- Transform
- Throws:
WTException
-
initialize
Supports initialization, following construction of an instance. Invoked by "new" factory having the same signature.
Supported API: true- Parameters:
transform-- Throws:
WTException
-
newTransform
Creates a copy of the given Transform.
Supported API: true- Parameters:
transform-- Returns:
- Transform
- Throws:
WTException
-
initialize
Supports initialization, following construction of an instance. Invoked by "new" factory having the same signature.
Supported API: true- Parameters:
transform-- Throws:
WTException
-
toMatrix4d
public javax.vecmath.Matrix4d toMatrix4d()Returns a Java 3D matrix for this Transform.
Supported API: true- Returns:
- Matrix4d
-
setTransform
public void setTransform(javax.vecmath.Matrix4d transform) Sets the Transform to the given Java3D matrix.
Supported API: true- Parameters:
transform-
-