org.jdesktop.wonderland.common.cell.messages
Class CellHierarchyMessage

java.lang.Object
  extended by org.jdesktop.wonderland.common.messages.Message
      extended by org.jdesktop.wonderland.common.cell.messages.CellHierarchyMessage
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
CellHierarchyUnloadMessage

public class CellHierarchyMessage
extends Message

Superclass for messages that change the cell hierarchy in the cell cache

Author:
paulby
See Also:
Serialized Form

Nested Class Summary
static class CellHierarchyMessage.ActionType
          SET_VIEW - client informs server which avatar to use for a cell cache LOAD_CLIENT_AVATAR - server informs client to load its avatar
 
Field Summary
protected  CellID cellID
           
protected  CellHierarchyMessage.ActionType msgType
           
 
Constructor Summary
CellHierarchyMessage()
           
CellHierarchyMessage(CellHierarchyMessage.ActionType msgType, java.lang.String cellClassName, com.jme.bounding.BoundingVolume localBounds, CellID cellID, CellID parentID, CellTransform cellTransform, CellClientState setupData, java.lang.String cellName)
          Creates a new instance of CellHierarchyMessage
 
Method Summary
 CellHierarchyMessage.ActionType getActionType()
          Return the action type of this message
 java.lang.String getCellClassName()
           
 CellID getCellID()
           
 java.lang.String getCellName()
           
 CellTransform getCellTransform()
           
 com.jme.bounding.BoundingVolume getComputedBounds()
           
 com.jme.bounding.BoundingVolume getLocalBounds()
           
 CellID getParentID()
           
 CellClientState getSetupData()
           
 java.lang.String getViewID()
          The View to which this cache is tied.
static CellHierarchyMessage newLoadClientAvatar(CellID cellID)
           
static CellHierarchyMessage newSetAvatarMessage(java.lang.String avatarID)
          FOR TESTING TODO REMOVE
 
Methods inherited from class org.jdesktop.wonderland.common.messages.Message
getMessageID
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

msgType

protected CellHierarchyMessage.ActionType msgType

cellID

protected CellID cellID
Constructor Detail

CellHierarchyMessage

public CellHierarchyMessage(CellHierarchyMessage.ActionType msgType,
                            java.lang.String cellClassName,
                            com.jme.bounding.BoundingVolume localBounds,
                            CellID cellID,
                            CellID parentID,
                            CellTransform cellTransform,
                            CellClientState setupData,
                            java.lang.String cellName)
Creates a new instance of CellHierarchyMessage

Parameters:
cellClassName - Fully qualified classname for cell

CellHierarchyMessage

public CellHierarchyMessage()
Method Detail

getActionType

public CellHierarchyMessage.ActionType getActionType()
Return the action type of this message

Returns:

getCellID

public CellID getCellID()

getParentID

public CellID getParentID()

getLocalBounds

public com.jme.bounding.BoundingVolume getLocalBounds()

getComputedBounds

public com.jme.bounding.BoundingVolume getComputedBounds()

getCellClassName

public java.lang.String getCellClassName()

getCellTransform

public CellTransform getCellTransform()

getSetupData

public CellClientState getSetupData()

getViewID

public java.lang.String getViewID()
The View to which this cache is tied.

Returns:

getCellName

public java.lang.String getCellName()

newSetAvatarMessage

public static CellHierarchyMessage newSetAvatarMessage(java.lang.String avatarID)
FOR TESTING TODO REMOVE

Parameters:
cellLocal2VW - local2VW to set

newLoadClientAvatar

public static CellHierarchyMessage newLoadClientAvatar(CellID cellID)


Open Wonderland - http://openwonderland.org