org.jdesktop.wonderland.client.cell.view
Class ViewCell

java.lang.Object
  extended by org.jdesktop.wonderland.client.cell.Cell
      extended by org.jdesktop.wonderland.client.cell.view.ViewCell
Direct Known Subclasses:
AvatarCell

public class ViewCell
extends Cell

ViewCell defines the view into the virtual world for a specific window on a client. A client may have many ViewCells instanstantiated, however there is a 1-1 correlation between the ViewCell and a rendering of the virtual world.

Author:
paulby

Nested Class Summary
 
Nested classes/interfaces inherited from class org.jdesktop.wonderland.client.cell.Cell
Cell.RendererType
 
Field Summary
 
Fields inherited from class org.jdesktop.wonderland.client.cell.Cell
logger
 
Constructor Summary
ViewCell(CellID cellID, CellCache cellCache)
           
 
Method Summary
 WonderlandIdentity getIdentity()
           
 void localMoveRequest(CellTransform transform)
          Convenience method, simply calls moveableComponent.localMoveRequest
 void setClientState(CellClientState cellClientState)
          Called when the cell is initially created and any time there is a major configuration change.
protected  void setStatus(CellStatus status, boolean increasing)
          Set the status of this cell Cell states DISK - Cell is on disk with no memory footprint INACTIVE - Cell object is in memory with bounds initialized, NO geometry is loaded INACTIVE - All cell data is in memory ACTIVE - Cell is within the avatars proximity bounds VISIBLE - Cell is in the view frustum The system guarantees that if a change is made between non adjacent status, say from INACTIVE to VISIBLE that setStatus will automatically be called for the intermediate values.
 
Methods inherited from class org.jdesktop.wonderland.client.cell.Cell
addChild, addChildrenChangeListener, addComponent, addComponent, addComponentChangeListener, addParentChangeListener, addStatusChangeListener, addTransformChangeListener, createCellRenderer, fireCellStatusChanged, getCellCache, getCellID, getCellRenderer, getChildren, getComponent, getComponents, getLocalBounds, getLocalToWorldTransform, getLocalTransform, getName, getNumChildren, getParent, getStatus, getWorldBounds, getWorldTransform, removeChild, removeChildChangeListener, removeComponent, removeComponentChangeListener, removeParentChangeListener, removeStatusChangeListener, removeTransformChangeListener, sendCellMessage, sendCellMessageAndWait, setLocalBounds, setName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ViewCell

public ViewCell(CellID cellID,
                CellCache cellCache)
Method Detail

setStatus

protected void setStatus(CellStatus status,
                         boolean increasing)
Description copied from class: Cell
Set the status of this cell Cell states DISK - Cell is on disk with no memory footprint INACTIVE - Cell object is in memory with bounds initialized, NO geometry is loaded INACTIVE - All cell data is in memory ACTIVE - Cell is within the avatars proximity bounds VISIBLE - Cell is in the view frustum The system guarantees that if a change is made between non adjacent status, say from INACTIVE to VISIBLE that setStatus will automatically be called for the intermediate values. If you overload this method in your own class you must call super.setStatus(...) as the first operation in your method. Note users should not call this method directly, it should only be called from implementations of the cache.

Overrides:
setStatus in class Cell
Parameters:
status - the cell status
increasing - indicates if the status is increasing

setClientState

public void setClientState(CellClientState cellClientState)
Description copied from class: Cell
Called when the cell is initially created and any time there is a major configuration change. The cell will already be attached to it's parent before the initial call of this method

Overrides:
setClientState in class Cell
Parameters:
cellClientState - the configuration data for the cell

getIdentity

public WonderlandIdentity getIdentity()

localMoveRequest

public void localMoveRequest(CellTransform transform)
Convenience method, simply calls moveableComponent.localMoveRequest

Parameters:
transform -


Open Wonderland - http://openwonderland.org