com.jmex.effects.particles
Class ParticlePoints

java.lang.Object
  extended by com.jme.scene.Spatial
      extended by com.jme.scene.Node
          extended by com.jmex.effects.particles.ParticleSystem
              extended by com.jmex.effects.particles.ParticlePoints
All Implemented Interfaces:
Savable, java.io.Serializable

public class ParticlePoints
extends ParticleSystem

ParticlePoints is a particle system that uses Point as its underlying geometric data.

Version:
$Id: ParticlePoints.java 4133 2009-03-19 20:40:11Z blaine.dev $
Author:
Joshua Slack
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class com.jmex.effects.particles.ParticleSystem
ParticleSystem.EmitType, ParticleSystem.ParticleType
 
Nested classes/interfaces inherited from class com.jme.scene.Spatial
Spatial.CullHint, Spatial.LightCombineMode, Spatial.NormalsMode, Spatial.TextureCombineMode
 
Field Summary
 
Fields inherited from class com.jmex.effects.particles.ParticleSystem
absUpVector, abUpMinUp, appearanceColors, cameraFacing, controller, DEFAULT_END_COLOR, DEFAULT_END_SIZE, DEFAULT_MAX_ANGLE, DEFAULT_MAX_LIFE, DEFAULT_MIN_LIFE, DEFAULT_START_COLOR, DEFAULT_START_SIZE, emissionDirection, emitterTransform, emitType, endColor, endMass, endSize, endSpin, geometryCoordinates, initialVelocity, invScale, leftVector, matData, maximumAngle, maximumLifeTime, minimumAngle, minimumLifeTime, numParticles, oldEmit, originCenter, originOffset, particleGeom, particleOrientation, particles, particlesInWorldCoords, particleType, psGeom, psLine, psRect, psRing, ramp, releaseRate, rotateWithScene, rotMatrix, startColor, startMass, startSize, startSpin, startTexIndex, texAnimation, texQuantity, upVector, upXemit, velocityAligned, workVect2, workVect3, worldEmit
 
Fields inherited from class com.jme.scene.Node
children
 
Fields inherited from class com.jme.scene.Spatial
cullHint, frustrumIntersects, geometricalControllers, isCollidable, lightCombineMode, localRotation, localScale, localTranslation, LOCKED_BOUNDS, LOCKED_BRANCH, LOCKED_MESH_DATA, LOCKED_NONE, LOCKED_SHADOWS, LOCKED_TRANSFORMS, lockedMode, name, normalsMode, parent, queueDistance, renderQueueMode, renderStateList, textureCombineMode, worldBound, worldRotation, worldScale, worldTranslation, zOrder
 
Constructor Summary
ParticlePoints()
           
ParticlePoints(java.lang.String name, int numParticles)
           
 
Method Summary
 void draw(Renderer r)
          draw calls the onDraw method for each child maintained by this node.
 Point getParticleGeometry()
           
 ParticleSystem.ParticleType getParticleType()
          Get which emittype method is being used by the underlying system.
 float getPointSize()
           
protected  void initializeParticles(int numParticles)
           
 boolean isAntialiased()
           
 void setAntialiased(boolean antialiased)
          Sets whether the points should be antialiased.
 void setPointSize(float size)
          Sets the pixel width of the points when drawn.
 
Methods inherited from class com.jmex.effects.particles.ParticleSystem
addController, addInfluence, clearInfluences, forceRespawn, getEmissionDirection, getEmitterTransform, getEmitType, getEndColor, getEndMass, getEndSize, getEndSpin, getGeometry, getInfluences, getInitialVelocity, getInvScale, getLeftVector, getLine, getMaximumAngle, getMaximumLifeTime, getMinimumAngle, getMinimumLifeTime, getNumParticles, getOriginCenter, getOriginOffset, getParticle, getParticleController, getParticleOrientation, getRamp, getRandomAngle, getRandomLifeSpan, getRandomVelocity, getRectangle, getReleaseRate, getReleaseVariance, getRing, getRotMatrix, getStartColor, getStartMass, getStartSize, getStartSpin, getStartTexIndex, getTexAnimation, getTexQuantity, getUpVector, getVertsForParticleType, getWorldEmit, initAllParticlesLocation, initParticleLocation, isActive, isCameraFacing, isParticlesInWorldCoords, isRotateWithScene, isVelocityAligned, read, recreate, removeInfluence, resetParticleVelocity, rotateVectorSpeed, setCameraFacing, setControlFlow, setEmissionDirection, setEmitterTransform, setEmitType, setEndColor, setEndMass, setEndSize, setEndSpin, setGeometry, setGeometry, setGeometry, setGeometry, setInitialVelocity, setInvScale, setLeftVector, setMaximumAngle, setMaximumLifeTime, setMinimumAngle, setMinimumLifeTime, setNumParticles, setOriginOffset, setParticleMass, setParticleOrientation, setParticlesInWorldCoords, setParticleSpinSpeed, setParticleType, setRamp, setReleaseRate, setReleaseVariance, setRepeatType, setRotateWithScene, setRotMatrix, setSpeed, setStartColor, setStartMass, setStartSize, setStartSpin, setStartTexIndex, setTexAnimation, setTexQuantity, setUpVector, setVelocityAligned, setWorldEmit, updateGeometricState, updateInvScale, updateRotationMatrix, updateWorldBound, updateWorldBoundManually, warmUp, write
 
Methods inherited from class com.jme.scene.Node
applyRenderState, attachChild, attachChildAt, childChange, detachAllChildren, detachChild, detachChildAt, detachChildNamed, findCollisions, findPick, getChild, getChild, getChildIndex, getChildren, getQuantity, getTriangleCount, getVertexCount, hasChild, hasCollision, lockBounds, lockMeshes, lockShadows, lockTransforms, setModelBound, sortLights, swapChildren, unlockBounds, unlockMeshes, unlockShadows, unlockTransforms, updateModelBound, updateWorldData, updateWorldVectors
 
Methods inherited from class com.jme.scene.Spatial
calculateCollisions, calculatePick, clearControllers, clearRenderState, clearRenderState, getClassTag, getController, getControllerCount, getControllers, getCullHint, getLastFrustumIntersection, getLightCombineMode, getLocalCullHint, getLocalLightCombineMode, getLocalNormalsMode, getLocalRenderQueueMode, getLocalRotation, getLocalScale, getLocalTextureCombineMode, getLocalToWorldMatrix, getLocalTranslation, getLocks, getName, getNormalsMode, getParent, getRenderQueueMode, getRenderState, getRenderState, getTextureCombineMode, getUserData, getWorldBound, getWorldRotation, getWorldScale, getWorldTranslation, getZOrder, hasAncestor, isCollidable, localToWorld, lock, lock, lockBranch, lockMeshes, lookAt, onDraw, propagateBoundToRoot, propagateStatesFromRoot, removeController, removeController, removeFromParent, removeUserData, rotateUpTo, setCullHint, setIsCollidable, setLastFrustumIntersection, setLightCombineMode, setLocalRotation, setLocalRotation, setLocalScale, setLocalScale, setLocalTranslation, setLocalTranslation, setLocks, setLocks, setName, setNormalsMode, setParent, setRenderQueueMode, setRenderState, setTextureCombineMode, setUserData, setZOrder, setZOrder, toString, unlock, unlock, unlockBranch, unlockMeshes, updateRenderState, updateRenderState, updateWorldRotation, updateWorldScale, updateWorldTranslation, updateWorldVectors, worldToLocal
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.jme.util.export.Savable
getClassTag
 

Constructor Detail

ParticlePoints

public ParticlePoints()

ParticlePoints

public ParticlePoints(java.lang.String name,
                      int numParticles)
Method Detail

initializeParticles

protected void initializeParticles(int numParticles)
Specified by:
initializeParticles in class ParticleSystem

getParticleType

public ParticleSystem.ParticleType getParticleType()
Description copied from class: ParticleSystem
Get which emittype method is being used by the underlying system. One of ParticleType.Quad, ParticleType.Triangle, ParticleType.Point, ParticleType.Line, ParticleType.GeomMesh

Overrides:
getParticleType in class ParticleSystem
Returns:
An int representing the type of particle we are emitting.

draw

public void draw(Renderer r)
Description copied from class: Node
draw calls the onDraw method for each child maintained by this node.

Overrides:
draw in class Node
Parameters:
r - the renderer to draw to.
See Also:
Spatial.draw(com.jme.renderer.Renderer)

isAntialiased

public boolean isAntialiased()
Returns:
true if points are to be drawn antialiased

setAntialiased

public void setAntialiased(boolean antialiased)
Sets whether the points should be antialiased. May decrease performance. If you want to enabled antialiasing, you should also use an alphastate with a source of SourceFunction.SourceAlpha and a destination of DB_ONE_MINUS_SRC_ALPHA or DB_ONE.

Parameters:
antialiased - true if the line should be antialiased.

getPointSize

public float getPointSize()
Returns:
the pixel size of each point.

setPointSize

public void setPointSize(float size)
Sets the pixel width of the points when drawn. Non anti-aliased point sizes are rounded to the nearest whole number by opengl.

Parameters:
size - The size to set.

getParticleGeometry

public Point getParticleGeometry()
Specified by:
getParticleGeometry in class ParticleSystem