org.xith3d.scenegraph
Interface Transformable

All Known Implementing Classes:
AnimatableGroup, Bullet, GeneratorNode, Line2D, PointMassNode, RotatableGroup, Text2D, Transform, TransformGroup, TranslatableGroup, View

public interface Transformable

Transformable specifies a single spatial transformation, via a Transform3D object, that can be positioned, oriented and scaled.


Method Summary
 java.lang.String getName()
           
 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.
 void setName(java.lang.String name)
          Sets this Node's name
 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.
 

Method Detail

setTransform

void setTransform(Transform3D t)
Sets the transform for this object.


getTransform

Transform3D getTransform()
Gets the transform for this object.


getTransform

void getTransform(Transform3D t)
Gets the transform for this object.


setPosition

void setPosition(float posX,
                 float posY,
                 float posZ)
Repositions the TransformNode

Parameters:
posX - the new x-position
posY - the new y-position
posZ - the new z-position

setPosition

void setPosition(org.openmali.vecmath2.Tuple3f position)
Repositions the TransformNode

Parameters:
position - the new position

getPosition

void getPosition(org.openmali.vecmath2.Tuple3f position)
Retrieves the View's position from its Transform3D and writes it into position.

Parameters:
position - the tuple to write the positional data into.

getPosition

org.openmali.vecmath2.Point3f getPosition()
Retrieves and returns the View's position from its Transform3D.


getName

java.lang.String getName()
Returns:
this Node's name

setName

void setName(java.lang.String name)
Sets this Node's name