|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.media.j3d.SceneGraphObject
javax.media.j3d.Node
javax.media.j3d.Leaf
javax.media.j3d.Shape3D
com.vwp.j3d.utils.geometry.Particles
com.vwp.j3d.utils.geometry.PointParticles
public class PointParticles
This class creates and controls a particle animated object which shows a fountain effect using points. It bases on code by Dr. Andrew Davison (http://fivedots.coe.psu.ac.th/~ad/jg)
| Field Summary |
|---|
| Fields inherited from class com.vwp.j3d.utils.geometry.Particles |
|---|
ENABLE_APPEARANCE_MODIFY, ENABLE_PICK_REPORTING |
| Fields inherited from class javax.media.j3d.Shape3D |
|---|
ALLOW_APPEARANCE_OVERRIDE_READ, ALLOW_APPEARANCE_OVERRIDE_WRITE, ALLOW_APPEARANCE_READ, ALLOW_APPEARANCE_WRITE, ALLOW_COLLISION_BOUNDS_READ, ALLOW_COLLISION_BOUNDS_WRITE, ALLOW_GEOMETRY_READ, ALLOW_GEOMETRY_WRITE |
| Fields inherited from class javax.media.j3d.Node |
|---|
ALLOW_AUTO_COMPUTE_BOUNDS_READ, ALLOW_AUTO_COMPUTE_BOUNDS_WRITE, ALLOW_BOUNDS_READ, ALLOW_BOUNDS_WRITE, ALLOW_COLLIDABLE_READ, ALLOW_COLLIDABLE_WRITE, ALLOW_LOCAL_TO_VWORLD_READ, ALLOW_PICKABLE_READ, ALLOW_PICKABLE_WRITE, ENABLE_COLLISION_REPORTING |
| Constructor Summary | |
|---|---|
PointParticles(int flags,
float radius,
float height,
int nps,
int delay,
javax.media.j3d.Appearance app)
Constructor for a PointParticle object |
|
| Method Summary | |
|---|---|
javax.media.j3d.Behavior |
getParticleBehavior()
Returns an Behaviour object. |
void |
setColorFadeIncr(float newIncr)
The PointParticles object fades the color (found using the handed over Appearance object) to a darker color for emitted particles. |
| Methods inherited from class javax.media.j3d.Shape3D |
|---|
addGeometry, cloneNode, duplicateNode, getAllGeometries, getAppearance, getAppearanceOverrideEnable, getBounds, getCollisionBounds, getGeometry, getGeometry, indexOfGeometry, insertGeometry, intersect, intersect, intersect, numGeometries, removeAllGeometries, removeGeometry, removeGeometry, setAppearance, setAppearanceOverrideEnable, setCollisionBounds, setGeometry, setGeometry |
| Methods inherited from class javax.media.j3d.Node |
|---|
cloneTree, cloneTree, cloneTree, cloneTree, cloneTree, cloneTree, getBoundsAutoCompute, getCollidable, getLocalToVworld, getLocalToVworld, getParent, getPickable, setBounds, setBoundsAutoCompute, setCollidable, setPickable |
| Methods inherited from class javax.media.j3d.SceneGraphObject |
|---|
clearCapability, clearCapabilityIsFrequent, getCapability, getCapabilityIsFrequent, getUserData, isCompiled, isLive, setCapability, setCapabilityIsFrequent, setUserData, updateNodeReferences |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PointParticles(int flags,
float radius,
float height,
int nps,
int delay,
javax.media.j3d.Appearance app)
flags - specifies which Primitive-flags have to be used for the object
creationradius - specifies some kind of radius the particles have to be
calculated within; this value doesn't specifies an exact radius, it
depends on the heights valueheight - specifies some kind of height the particles have to be
calculated within; this value doesn't specifies an exact height, it
depends on the radius valuenps - the number of particles which have to be useddelay - specifies the delay in the calculation; the higher the delay
is the lower is the speed of the particlesapp - specifies an appearance for the object| Method Detail |
|---|
public javax.media.j3d.Behavior getParticleBehavior()
getParticleBehavior in class Particlespublic void setColorFadeIncr(float newIncr)
newIncr - specifies the new fade strength, a value of 0 means no
fading
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||