public class TriangleFanParticleSystem extends AVParticleSystem
Internationalisation Resource Names
colors, normals, particleGeometry, sendNewArrays, texCoords, vertices| Constructor and Description |
|---|
TriangleFanParticleSystem(String name,
int particleCount,
int numColors)
Create a new particle system using the given particle count, initialiser
and environment settings.
|
| Modifier and Type | Method and Description |
|---|---|
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(Object src)
Notification that its safe to update the node now with any operations
that could potentially effect the node's bounds.
|
void |
updateNodeDataChanges(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.
|
getNode, initializeArrays, setMaxParticleCount, updateGeometryaddParticleFunction, enableParticleCreation, enableTextureCoordinates, getMaxParticleCount, getParticleInitializer, getSystemName, initialize, insertParticleFunction, isParticleCreationEnabled, isTextureCoordinateEnabled, removeParticleFunction, setErrorReporter, setParticleInitializer, setSystemName, setTexCoordFunction, updatepublic TriangleFanParticleSystem(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.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.ParticleSystempublic void updateNodeBoundsChanges(Object src)
src - The node or Node Component that is to be updated.public void updateNodeDataChanges(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
Copyright © 2001 - 2015 j3d.org