|
Aviatrix3D 2.1.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.j3d.geom.particle.ParticleSystem org.j3d.renderer.aviatrix3d.geom.particle.AVParticleSystem org.j3d.renderer.aviatrix3d.geom.particle.QuadParticleSystem
public class QuadParticleSystem
A ParticleSystem implementation that uses quads for representing each particle.
Particles are defined in the following coordinate order:
<- width*2 -> 3 --------- 2 / \ | | | | | | | + | height*2 | | | | | | 4 --------- 1 \ /Quad 1: 1,2,3,4
Individual quads are not screen aligned.
Field Summary |
---|
Fields inherited from class org.j3d.renderer.aviatrix3d.geom.particle.AVParticleSystem |
---|
colors, normals, particleGeometry, sendNewArrays, texCoords, vertices |
Fields inherited from class org.j3d.geom.particle.ParticleSystem |
---|
errorReporter, frameTime, genTexCoords, maxParticleCount, particleCount, particleList, texCoordInterp, timeNow |
Constructor Summary | |
---|---|
QuadParticleSystem(java.lang.String name,
int particleCount,
int numColors)
Create a new particle system using the given particle count, initialiser and environment settings. |
Method Summary | |
---|---|
int |
coordinatesPerParticle()
Request the number of coordinates each particle will use. |
org.j3d.geom.particle.Particle |
createParticle()
Create a new particle instance. |
PolygonAttributes |
getRecommendedPolygonAttributes()
Get the attributes that the particle system implementation would prefer to have. |
TextureAttributes |
getRecommendedTextureAttributes()
Get the attributes that the particle system implementation would prefer to have. |
int |
numColorComponents()
Request the number of color components this particle uses. |
int |
numTexCoordComponents()
Request the number of texture coordinate components this particle uses. |
void |
onRemove()
Notification that this particle system has been removed from the scene graph and it cleanup anything needed right now. |
void |
setParticleSize(float width,
float height)
Set the size that particles should take in each dimension. |
void |
updateNodeBoundsChanges(java.lang.Object src)
Notification that its safe to update the node now with any operations that could potentially effect the node's bounds. |
void |
updateNodeDataChanges(java.lang.Object src)
Notification that its safe to update the node now with any operations that only change the node's properties, but do not change the bounds. |
Methods inherited from class org.j3d.renderer.aviatrix3d.geom.particle.AVParticleSystem |
---|
getNode, initializeArrays, setMaxParticleCount, updateGeometry |
Methods inherited from class org.j3d.geom.particle.ParticleSystem |
---|
addParticleFunction, enableParticleCreation, enableTextureCoordinates, getMaxParticleCount, getParticleInitializer, getSystemName, initialize, insertParticleFunction, isParticleCreationEnabled, isTextureCoordinateEnabled, removeParticleFunction, setErrorReporter, setParticleInitializer, setSystemName, setTexCoordFunction, update |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public QuadParticleSystem(java.lang.String name, int particleCount, int numColors)
name
- A name to register with this system. May be null.particleCount
- The maximum number of particles to createnumColors
- The number of colour components to accept: 0, 3 or 4.Method Detail |
---|
public final int coordinatesPerParticle()
public final int numColorComponents()
public final int numTexCoordComponents()
public org.j3d.geom.particle.Particle createParticle()
public void onRemove()
onRemove
in class org.j3d.geom.particle.ParticleSystem
public void updateNodeBoundsChanges(java.lang.Object src)
src
- The node or Node Component that is to be updated.public void updateNodeDataChanges(java.lang.Object src)
src
- The node or Node Component that is to be updated.public TextureAttributes getRecommendedTextureAttributes()
public PolygonAttributes getRecommendedPolygonAttributes()
public void setParticleSize(float width, float height)
width
- The width of the particle in metersheight
- The height of the particle in meters
|
Aviatrix3D 2.1.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |