|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xith3d.scenegraph.SceneGraphObject
org.xith3d.scenegraph.Node
org.xith3d.scenegraph.GroupNode
org.xith3d.scenegraph.Group
org.xith3d.scenegraph.TransformGroup
public class TransformGroup
TransformGroup node specifies a single spatial transformation, via a Transform3D object, that can position, orient and scale all of its children. The effects of transformations in the scene graph are cumulative.
| Field Summary |
|---|
| Fields inherited from class org.xith3d.scenegraph.GroupNode |
|---|
children, hostGroup, numChildren, totalNumChildren, totalNumShapes |
| Fields inherited from class org.xith3d.scenegraph.Node |
|---|
bounds, boundsAutoCompute, boundsDirty, globalIgnoreBounds, instanceBoundsTypeHint, parent, transformGroup, untransformedBounds |
| Fields inherited from class org.xith3d.scenegraph.SceneGraphObject |
|---|
XITH3D_USERDATAKEY_OLDUSERDATA |
| Constructor Summary | |
|---|---|
TransformGroup()
Constructs a new TransformGroup object. |
|
TransformGroup(float translationX,
float translationY,
float translationZ)
|
|
TransformGroup(org.openmali.vecmath2.Matrix4f transform)
Constructs a new TransformGroup object with the specified transform. |
|
TransformGroup(Transform3D t)
Constructs a new TransformGroup object with the specified transform. |
|
TransformGroup(org.openmali.vecmath2.Tuple3f translation)
|
|
| Method Summary | |
|---|---|
Transform3D |
getLocalTransform()
|
void |
getLocalTransform(Transform3D t)
|
org.openmali.vecmath2.Point3f |
getPosition()
Retrieves and returns the View's position from its Transform3D. |
void |
getPosition(org.openmali.vecmath2.Tuple3f position)
Retrieves the View's position from its Transform3D and writes it into position. |
Transform3D |
getTransform()
Gets the transform for this object. |
void |
getTransform(Transform3D t)
Gets the transform for this object. |
Transform3D |
getWorldTransform()
|
protected TransformGroup |
newInstance()
|
protected void |
onTransformChanged()
|
void |
setLocalTransform(Transform3D t)
|
void |
setPosition(float posX,
float posY,
float posZ)
Repositions the TransformNode |
void |
setPosition(org.openmali.vecmath2.Tuple3f position)
Repositions the TransformNode |
void |
setTransform(Transform3D t)
Sets the transform for this object. |
boolean |
traverse(DetailedTraversalCallback callback)
Traverses the scenegraph from this node on. |
void |
updateTransform()
Just reapplies this TransformGroup's Transform to mark it dirty. |
| Methods inherited from class org.xith3d.scenegraph.Group |
|---|
moveTo |
| Methods inherited from class org.xith3d.scenegraph.SceneGraphObject |
|---|
getName, getUserData, getUserData, getUserDataMap, isLive, setLive, setName, setUserData, setUserData, setUserDataRecursive, setUserDataRecursive, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.xith3d.scenegraph.Transformable |
|---|
getName, setName |
| Constructor Detail |
|---|
public TransformGroup(Transform3D t)
public TransformGroup(org.openmali.vecmath2.Matrix4f transform)
public TransformGroup()
public TransformGroup(float translationX,
float translationY,
float translationZ)
public TransformGroup(org.openmali.vecmath2.Tuple3f translation)
| Method Detail |
|---|
protected final void onTransformChanged()
public final void setTransform(Transform3D t)
setTransform in interface Transformablepublic final void updateTransform()
TransformGroup's Transform to mark it dirty.
public final void setLocalTransform(Transform3D t)
t - setTransform(Transform3D)public final Transform3D getTransform()
getTransform in interface Transformablepublic final Transform3D getLocalTransform()
getTransform()public final void getTransform(Transform3D t)
Transformable
getTransform in interface Transformablepublic final void getLocalTransform(Transform3D t)
t - getTransform(Transform3D)
public void setPosition(float posX,
float posY,
float posZ)
setPosition in interface TransformableposX - the new x-positionposY - the new y-positionposZ - the new z-positionpublic void setPosition(org.openmali.vecmath2.Tuple3f position)
setPosition in interface Transformableposition - the new positionpublic final void getPosition(org.openmali.vecmath2.Tuple3f position)
getPosition in interface Transformableposition - the tuple to write the positional data into.public final org.openmali.vecmath2.Point3f getPosition()
getPosition in interface Transformablepublic final Transform3D getWorldTransform()
getWorldTransform in class Nodeprotected TransformGroup newInstance()
newInstance in class GroupGroupNode.sharedCopy()public final boolean traverse(DetailedTraversalCallback callback)
traverse in class Groupcallback - the listener is notified of any traversed Node on the way
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||