org.jdesktop.wonderland.common.cell.state
Class PositionComponentServerState

java.lang.Object
  extended by org.jdesktop.wonderland.common.cell.state.CellComponentServerState
      extended by org.jdesktop.wonderland.common.cell.state.PositionComponentServerState
All Implemented Interfaces:
java.io.Serializable, CellState

public class PositionComponentServerState
extends CellComponentServerState

A special cell component server state object that represents the cell transform (origin, rotation, scaling) and bounds. There is no corresponding server or client-side component object. This state is handled as a special case by the cell.

Author:
Jordan Slott
See Also:
Serialized Form

Nested Class Summary
static class PositionComponentServerState.Bounds
          The Bounds static inner class stores the bounds type and bounds radius.
 
Field Summary
 PositionComponentServerState.Bounds bounds
           
 com.jme.math.Quaternion rotation
           
 com.jme.math.Vector3f scaling
           
 com.jme.math.Vector3f translation
           
 
Constructor Summary
PositionComponentServerState()
           
 
Method Summary
 PositionComponentServerState.Bounds getBounds()
          Returns the cell bounds.
 com.jme.math.Quaternion getRotation()
          Returns the cell rotation.
 com.jme.math.Vector3f getScaling()
          Returns the cell scaling.
 java.lang.String getServerComponentClassName()
          Returns the fully-qualified class name of the server-side component class.
 com.jme.math.Vector3f getTranslation()
          Returns the cell translation.
 void setBounds(com.jme.bounding.BoundingVolume boundingVolume)
           
 void setBounds(PositionComponentServerState.Bounds bounds)
          Sets the cell bounds.
 void setRotation(com.jme.math.Quaternion rotation)
          Sets the cell rotation.
 void setScaling(com.jme.math.Vector3f scaling)
          Sets the cell scaling.
 void setTranslation(com.jme.math.Vector3f translation)
          Sets the cell translation.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

translation

public com.jme.math.Vector3f translation

bounds

public PositionComponentServerState.Bounds bounds

scaling

public com.jme.math.Vector3f scaling

rotation

public com.jme.math.Quaternion rotation
Constructor Detail

PositionComponentServerState

public PositionComponentServerState()
Method Detail

getServerComponentClassName

public java.lang.String getServerComponentClassName()
Description copied from class: CellComponentServerState
Returns the fully-qualified class name of the server-side component class.

Specified by:
getServerComponentClassName in class CellComponentServerState
Returns:
The server-side cell component class name

getTranslation

public com.jme.math.Vector3f getTranslation()
Returns the cell translation.

Returns:
The cell translation

setTranslation

public void setTranslation(com.jme.math.Vector3f translation)
Sets the cell translation. If null, then this property will not be written out to the file.

Parameters:
translation - The new cell translation

getBounds

public PositionComponentServerState.Bounds getBounds()
Returns the cell bounds.

Returns:
The cell bounds

setBounds

public void setBounds(PositionComponentServerState.Bounds bounds)
Sets the cell bounds. If null, then this property will not be written out to the file.

Parameters:
bounds - The new cell bounds

setBounds

public void setBounds(com.jme.bounding.BoundingVolume boundingVolume)

getScaling

public com.jme.math.Vector3f getScaling()
Returns the cell scaling.

Returns:
The cell scaing

setScaling

public void setScaling(com.jme.math.Vector3f scaling)
Sets the cell scaling. If null, then this property will not be written out to the file.

Parameters:
scaling - The new cell scaling

getRotation

public com.jme.math.Quaternion getRotation()
Returns the cell rotation.

Returns:
The cell rotation

setRotation

public void setRotation(com.jme.math.Quaternion rotation)
Sets the cell rotation. If null, then this property will not be written out to the file.

Parameters:
rotation - The new cell rotation

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Open Wonderland - http://openwonderland.org