unbboolean.gui.scenegraph
Class SceneGraphManager

java.lang.Object
  |
  +--unbboolean.gui.scenegraph.SceneGraphManager

public class SceneGraphManager
extends java.lang.Object

Manages the scene graph where the solids on the screen are set

Author:
Danilo Balby Silva Castanheira(danbalby@yahoo.com)

Constructor Summary
SceneGraphManager(javax.media.j3d.Canvas3D canvas3d, SolidsSelectionListener listener)
          Constructs a SceneGraphManager that shows the solids into the received canvas and notifying about selections the received listener
 
Method Summary
 void addSolid(CSGSolid solid)
          Adds a solid into the scene graph
 void removeSelectedSolids()
          Removes all the selected solids
 void removeSolid(CSGSolid solid)
          Removes a solid from the scene graph
 void setMoveMode(CSGSolid solid)
          Sets move mode on
 void unsetMoveMode(CSGSolid solid)
          Sets move mode of
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SceneGraphManager

public SceneGraphManager(javax.media.j3d.Canvas3D canvas3d,
                         SolidsSelectionListener listener)
Constructs a SceneGraphManager that shows the solids into the received canvas and notifying about selections the received listener

Parameters:
canvas3d - screen where the solids are shown
listener - listener that has to be notified about solid selections
Method Detail

addSolid

public void addSolid(CSGSolid solid)
Adds a solid into the scene graph

Parameters:
solid - solid to be added into the scene graph

removeSelectedSolids

public void removeSelectedSolids()
Removes all the selected solids


removeSolid

public void removeSolid(CSGSolid solid)
Removes a solid from the scene graph

Parameters:
solid - solid to be removed from the scene graph

setMoveMode

public void setMoveMode(CSGSolid solid)
Sets move mode on

Parameters:
solid - move mode solid

unsetMoveMode

public void unsetMoveMode(CSGSolid solid)
Sets move mode of

Parameters:
solid - solid to be selected after the move mode is off