org.xith3d.scenegraph.particles.jops
Class ParticleSystemNode

java.lang.Object
  extended by org.xith3d.scenegraph.SceneGraphObject
      extended by org.xith3d.scenegraph.Node
          extended by org.xith3d.scenegraph.GroupNode
              extended by org.xith3d.scenegraph.Group
                  extended by org.xith3d.scenegraph.particles.jops.ParticleSystemNode
All Implemented Interfaces:
org.jagatoo.datatypes.NamableObject, org.jagatoo.datatypes.NamedObject, org.openmali.spatial.SpatialNode, UpdatableNode
Direct Known Subclasses:
AbsoluteParticleSystemNode, RelativeParticleSystemNode

public abstract class ParticleSystemNode
extends Group
implements UpdatableNode

Insert comment here.


Field Summary
protected  java.util.ArrayList<GeneratorShape3D> generatorShapes
           
protected  GroupNode node
           
protected  org.softmed.jops.ParticleSystem particleSystem
           
protected  boolean showGeneratorsAndPointMasses
           
protected  GeneratorAndPointMassVisualizer visualizer
           
 
Fields inherited from class org.xith3d.scenegraph.GroupNode
children, hostGroup, numChildren, totalNumChildren, totalNumShapes
 
Fields inherited from class org.xith3d.scenegraph.Node
bounds, boundsAutoCompute, boundsDirty, globalIgnoreBounds, instanceBoundsTypeHint, transformGroup, untransformedBounds
 
Fields inherited from class org.xith3d.scenegraph.SceneGraphObject
XITH3D_USERDATAKEY_OLDUSERDATA
 
Constructor Summary
ParticleSystemNode()
           
ParticleSystemNode(org.softmed.jops.ParticleSystem ps)
           
 
Method Summary
protected  void clearShapes()
           
protected abstract  void customSetup()
           
protected abstract  void customUpdate(org.openmali.vecmath2.Vector3f up, org.openmali.vecmath2.Vector3f right)
           
 java.util.List<GeneratorShape3D> getGeneratorShapes()
           
 org.softmed.jops.ParticleSystem getParticleSystem()
           
protected  void installGenerators(boolean relativeOrientation, GroupNode node)
           
 boolean isShowGeneratorsAndPointMasses()
           
 void setParticleSystem(org.softmed.jops.ParticleSystem ps)
           
 void setShowGeneratorsAndPointMasses(boolean showGeneratorsAndPointMasses)
           
protected  void setup()
           
 void shutdown()
           
protected  void update(org.openmali.vecmath2.Vector3f up, org.openmali.vecmath2.Vector3f right)
           
 boolean update(View view, org.openmali.spatial.bodies.Frustum frustrum, long nanoTime, long nanoStep)
          
protected  void updateGeneratorShapes(org.openmali.vecmath2.Vector3f up, org.openmali.vecmath2.Vector3f right)
           
 
Methods inherited from class org.xith3d.scenegraph.Group
moveTo, newInstance, traverse
 
Methods inherited from class org.xith3d.scenegraph.GroupNode
absorbDetails, addChild, addChild, checkChild, dump, dump, ensureCapacity, expandBounds, findAll, findAll, findFirst, findFirst, freeOpenGLResources, getChild, getChildren, getChildren, getClipper, getPickHost, getScissorRect, getTotalNumChildren, getTotalNumShapes, indexOf, isPickHost, mergeInheritedClipper, mergeInheritedNodes, mergeInheritedScissorRect, numChildren, removeAllChildren, removeChild, removeChild, setBoundsDirty, setBoundsDirtyUpward, setChild, setClipper, setLive, setPickHost, setPickHost, setScissorRect, setShowBounds, sharedCopy, sharedCopy, traverse, unmergeInheritedFog, unmergeInheritedLight, unmergeInheritedNodes, updateBounds, updateBoundsCheap
 
Methods inherited from class org.xith3d.scenegraph.Node
cloneNode, detach, duplicateNode, freeOpenGLResources, getBounds, getBoundsAutoCompute, getBoundsType, getBoundsTypeHint, getDefaultPickable, getIndentString, getInheritedNodeAttributes, getModListener, getOrderedChild, getOrderedState, getParent, getRoot, getShadowAttachment, getShowBounds, getTransformGroup, getTreeCell, getWorldBounds, getWorldTransform, getWorldTransform, isBillboard, isIgnoreBounds, isOccluder, isPickable, isRenderable, isUpdatableNode, popGlobalIgnoreBounds, printBounds, pushGlobalIgnoreBounds, setBounds, setBoundsAutoCompute, setBoundsTypeHint, setDefaultPickable, setGlobalIgnoreBounds, setIgnoreBounds, setIsOccluder, setModListener, setOrderedChild, setParent, setPickable, setPickableRecursive, setPickableRecursive, setRenderable, setShadowAttachment, setShowBounds, setTransformGroup, setTreeCell, updateOrderedChild, updateTransformGroup, updateWorldTransform
 
Methods inherited from class org.xith3d.scenegraph.SceneGraphObject
getName, getUserData, getUserData, getUserDataMap, isLive, setName, setUserData, setUserData, setUserDataRecursive, setUserDataRecursive, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

node

protected GroupNode node

showGeneratorsAndPointMasses

protected boolean showGeneratorsAndPointMasses

visualizer

protected GeneratorAndPointMassVisualizer visualizer

generatorShapes

protected java.util.ArrayList<GeneratorShape3D> generatorShapes

particleSystem

protected org.softmed.jops.ParticleSystem particleSystem
Constructor Detail

ParticleSystemNode

public ParticleSystemNode(org.softmed.jops.ParticleSystem ps)

ParticleSystemNode

public ParticleSystemNode()
Method Detail

customSetup

protected abstract void customSetup()

customUpdate

protected abstract void customUpdate(org.openmali.vecmath2.Vector3f up,
                                     org.openmali.vecmath2.Vector3f right)

setup

protected void setup()

clearShapes

protected void clearShapes()

updateGeneratorShapes

protected void updateGeneratorShapes(org.openmali.vecmath2.Vector3f up,
                                     org.openmali.vecmath2.Vector3f right)

update

protected void update(org.openmali.vecmath2.Vector3f up,
                      org.openmali.vecmath2.Vector3f right)

shutdown

public void shutdown()

installGenerators

protected void installGenerators(boolean relativeOrientation,
                                 GroupNode node)

setParticleSystem

public void setParticleSystem(org.softmed.jops.ParticleSystem ps)

getParticleSystem

public org.softmed.jops.ParticleSystem getParticleSystem()

update

public boolean update(View view,
                      org.openmali.spatial.bodies.Frustum frustrum,
                      long nanoTime,
                      long nanoStep)

Specified by:
update in interface UpdatableNode
Parameters:
view - the view that's currently used for rendering
frustrum - view frustum
Returns:
True if this should be rendered, false if it should not.

isShowGeneratorsAndPointMasses

public boolean isShowGeneratorsAndPointMasses()

setShowGeneratorsAndPointMasses

public void setShowGeneratorsAndPointMasses(boolean showGeneratorsAndPointMasses)

getGeneratorShapes

public final java.util.List<GeneratorShape3D> getGeneratorShapes()