org.jdesktop.wonderland.server.state
Class PositionServerStateHelper

java.lang.Object
  extended by org.jdesktop.wonderland.server.state.PositionServerStateHelper

public class PositionServerStateHelper
extends java.lang.Object

The BasicPositionComponentServerStateHelper class implements a collection of utility routines that help convert between JMonkeyEngine (JME) types for the cell bounds and tranform and the representations of these quantities using basic Java types in the PositionComponentServerState class.

Author:
jkaplan, Jordan Slott

Constructor Summary
PositionServerStateHelper()
           
 
Method Summary
static com.jme.bounding.BoundingVolume getCellBounds(PositionComponentServerState setup)
          Returns the bounds of a cell as a BoundingVolume object, given the cell's setup information.
static CellTransform getCellTransform(PositionComponentServerState setup)
          Creates and returns a new CellTransform object that representing the translation (to origin), rotation, and scaling of a cell.
static PositionComponentServerState.Bounds getSetupBounds(com.jme.bounding.BoundingVolume bounds)
          Given the JME BoundingVolume object, returns the bounds used in the cell setup information.
static com.jme.math.Vector3f getSetupOrigin(CellTransform transform)
          Deprecated.  
static com.jme.math.Quaternion getSetupRotation(CellTransform transform)
          Deprecated.  
static com.jme.math.Vector3f getSetupScaling(CellTransform transform)
          Deprecated.  
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PositionServerStateHelper

public PositionServerStateHelper()
Method Detail

getCellBounds

public static com.jme.bounding.BoundingVolume getCellBounds(PositionComponentServerState setup)
Returns the bounds of a cell as a BoundingVolume object, given the cell's setup information.

Parameters:
setup - The cell's setup information
Returns:
The bounds as a JME BoundingVolume object

getCellTransform

public static CellTransform getCellTransform(PositionComponentServerState setup)
Creates and returns a new CellTransform object that representing the translation (to origin), rotation, and scaling of a cell.

Parameters:
setup - The cell's setup parameters
Returns:
A CellTranform class representing the origin, rotation, scaling

getSetupBounds

public static PositionComponentServerState.Bounds getSetupBounds(com.jme.bounding.BoundingVolume bounds)
Given the JME BoundingVolume object, returns the bounds used in the cell setup information.

Parameters:
bounds - The JME bounds object
Returns:
The PositionComponentServerState.Bounds object

getSetupOrigin

public static com.jme.math.Vector3f getSetupOrigin(CellTransform transform)
Deprecated. 

Given a (non-null) CellTranform class, returns the Translation class that is used in the cell setup information.

Parameters:
transform - The cell's transform
Returns:
The origin used in the cell setup information

getSetupRotation

public static com.jme.math.Quaternion getSetupRotation(CellTransform transform)
Deprecated. 

Given a (non-null) CellTranform class, returns the Rotation class that is used in the cell setup information.

Parameters:
transform - The cell's transform
Returns:
The rotation used in the cell setup information

getSetupScaling

public static com.jme.math.Vector3f getSetupScaling(CellTransform transform)
Deprecated. 

Given a (non-null) CellTranform class, returns the Scale class that is used in the cell setup information.

Parameters:
transform - The cell's transform
Returns:
The scaling used in the cell setup information


Open Wonderland - http://openwonderland.org