org.jdesktop.wonderland.server.spatial.impl
Interface SpatialCell

All Known Implementing Classes:
SpatialCellImpl, ViewCellImpl

public interface SpatialCell

Author:
paulby

Method Summary
 void addChild(SpatialCell child, com.sun.sgs.auth.Identity identity)
          Add the supplied object as a child of this.
 void addViewUpdateListener(ViewUpdateListener viewUpdateListener)
          Add a ViewUpdateLIstener to this cell.
 void destroy()
          Destroy this cell, removing it from all the view caches
 com.jme.bounding.BoundingVolume getLocalBounds()
          Return the bounds of the object in the local coordinate system
 CellTransform getLocalTransform()
          Return the local transform of this object
 com.jme.bounding.BoundingVolume getWorldBounds()
          Get the bounds of this object in world coordinates
 void removeChild(SpatialCell child)
          Remove the specified child from this SpatialCell
 void removeViewUpdateListener(ViewUpdateListener viewUpdateListener)
          Remove the specified ViewUpdateListener
 void revalidate()
          Revalidate this cell, causing each cache to decide whether or not to reload the cell.
 void revalidateListeners(com.sun.sgs.auth.Identity identity)
          Re-notify each listener of the position of this cell
 void setAttribute(java.lang.Object attr)
          Set the current state of an attibute
 void setLocalBounds(com.jme.bounding.BoundingVolume localBounds)
          Set the bounds of this object in the local coordinate system.
 void setLocalTransform(CellTransform transform, com.sun.sgs.auth.Identity identity)
          Set the local transform for this object.
 

Method Detail

getLocalBounds

com.jme.bounding.BoundingVolume getLocalBounds()
Return the bounds of the object in the local coordinate system

Returns:
the localBounds

setLocalBounds

void setLocalBounds(com.jme.bounding.BoundingVolume localBounds)
Set the bounds of this object in the local coordinate system. Note the system guarantees that the bounds of a parent fully enclose the bounds of a child, so this call may cause the world bounds of parent cells to be updated.

Parameters:
localBounds - the localBounds to set

getWorldBounds

com.jme.bounding.BoundingVolume getWorldBounds()
Get the bounds of this object in world coordinates

Returns:

getLocalTransform

CellTransform getLocalTransform()
Return the local transform of this object

Returns:
the transform

setLocalTransform

void setLocalTransform(CellTransform transform,
                       com.sun.sgs.auth.Identity identity)
Set the local transform for this object. Note the system guarantees that the bounds of a parent fully enclose the bounds of a child, so this call may cause the world bounds of parent cells to be updated.

Parameters:
transform - the transform to set

addChild

void addChild(SpatialCell child,
              com.sun.sgs.auth.Identity identity)
Add the supplied object as a child of this.

Parameters:
child -

removeChild

void removeChild(SpatialCell child)
Remove the specified child from this SpatialCell

Parameters:
child -

setAttribute

void setAttribute(java.lang.Object attr)
Set the current state of an attibute

Parameters:
attr - the attr state

revalidate

void revalidate()
Revalidate this cell, causing each cache to decide whether or not to reload the cell.


destroy

void destroy()
Destroy this cell, removing it from all the view caches


addViewUpdateListener

void addViewUpdateListener(ViewUpdateListener viewUpdateListener)
Add a ViewUpdateLIstener to this cell. This listener will be called whenever the view of a ViewCache that contains this cell is updated

Parameters:
viewUpdateListener - listener to add

removeViewUpdateListener

void removeViewUpdateListener(ViewUpdateListener viewUpdateListener)
Remove the specified ViewUpdateListener

Parameters:
viewUpdateListener - listener to remove

revalidateListeners

void revalidateListeners(com.sun.sgs.auth.Identity identity)
Re-notify each listener of the position of this cell



Open Wonderland - http://openwonderland.org