Package xj3d.filter.node
Class Transform
java.lang.Object
xj3d.filter.node.BaseEncodable
xj3d.filter.node.BaseGroup
xj3d.filter.node.Transform
-
Field Summary
FieldsModifier and TypeFieldDescriptionfloat[]
Field valuefloat[]
Field valuefloat[]
Field valuefloat[]
Field valuefloat[]
Field valueFields inherited from class xj3d.filter.node.BaseEncodable
bch, defName, fieldReader, handler, HANDLER_BINARY, HANDLER_NULL, HANDLER_STRING, handlerType, nodeName, sch, useName
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
clear()
Clear the node fields to their initial valuesclone
(boolean full) Create and return a copy of this object.void
encode()
Push the node contents to the ContentHandlerjavax.vecmath.Matrix4f
Return the transform matrixvoid
Set the value of the named field.void
Set the value of the named field.Methods inherited from class xj3d.filter.node.BaseGroup
addChild, addChildren, copy, getChildren, setChildren
Methods inherited from class xj3d.filter.node.BaseEncodable
deepEquals, getDefName, getMetadata, getNodeName, getUseName, setContentHandler, setDefName, setFieldReader, setMetadata, setUseName
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface xj3d.filter.node.Encodable
deepEquals, getDefName, getNodeName, getUseName, setContentHandler, setDefName, setFieldReader, setUseName
-
Field Details
-
translation
public float[] translationField value -
rotation
public float[] rotationField value -
scale
public float[] scaleField value -
scaleOrientation
public float[] scaleOrientationField value -
center
public float[] centerField value
-
-
Constructor Details
-
Transform
public Transform()Constructor -
Transform
-
-
Method Details
-
clear
-
encode
-
setValue
-
setValue
-
clone
Create and return a copy of this object.- Specified by:
clone
in interfaceEncodable
- Overrides:
clone
in classBaseEncodable
- Parameters:
full
- true if the clone should contain a copy of the complete contents of this node and it's children, false returns a new instance of this node type.- Returns:
- a copy of this.
-
getMatrix
public javax.vecmath.Matrix4f getMatrix()Return the transform matrix- Returns:
- the transform matrix
-