Interface ParticleSystem
- All Superinterfaces:
X3DBoundedObject,X3DChildNode,X3DNode,X3DShapeNode
- All Known Implementing Classes:
SAIParticleSystem,SAIParticleSystem
Defines the requirements of an X3D ParticleSystem node
- Version:
- $Revision: 1.2 $
- Author:
- Rex Melton
-
Method Summary
Modifier and TypeMethodDescriptionvoidgetColorKey(float[] val) Return the colorKey value in the argument float[]Return the colorRamp X3DNode value.booleanReturn the createParticles boolean value.Return the emitter X3DNode value.booleanReturn the enabled boolean value.Return the geometryType String value.booleanReturn the isActive boolean value.floatReturn the lifetimeVariation float value.intReturn the maxParticles int value.intReturn the number of MFFloat items in the colorKey field.intReturn the number of MFNode items in the physics field.intReturn the number of MFFloat items in the texCoordKey field.floatReturn the particleLifetime float value.voidgetParticleSize(float[] val) Return the particleSize value in the argument float[]voidgetPhysics(X3DNode[] val) Return the physics value in the argument X3DNode[]voidgetTexCoordKey(float[] val) Return the texCoordKey value in the argument float[]Return the texCoordRamp X3DNode value.voidsetColorKey(float[] val) Set the colorKey field.voidsetColorRamp(X3DNode val) Set the colorRamp field.voidsetCreateParticles(boolean val) Set the createParticles field.voidSet the emitter field.voidSet the emitter field.voidsetEnabled(boolean val) Set the enabled field.voidsetGeometryType(String val) Set the geometryType field.voidsetLifetimeVariation(float val) Set the lifetimeVariation field.voidsetMaxParticles(int val) Set the maxParticles field.voidsetParticleLifetime(float val) Set the particleLifetime field.voidsetParticleSize(float[] val) Set the particleSize field.voidsetPhysics(X3DNode[] val) Set the physics field.voidsetTexCoordKey(float[] val) Set the texCoordKey field.voidsetTexCoordRamp(X3DNode val) Set the texCoordRamp field.Methods inherited from interface org.web3d.x3d.sai.X3DBoundedObject
getBboxCenter, getBboxSize, setBboxCenter, setBboxSizeMethods inherited from interface org.web3d.x3d.sai.X3DNode
dispose, getField, getFieldDefinitions, getMetadata, getNodeName, getNodeType, isRealized, realize, setMetadataMethods inherited from interface org.web3d.x3d.sai.X3DShapeNode
getAppearance, getGeometry, setAppearance, setAppearance, setGeometry, setGeometry
-
Method Details
-
getGeometryType
String getGeometryType()Return the geometryType String value.- Returns:
- The geometryType String value.
-
setGeometryType
-
getEnabled
boolean getEnabled()Return the enabled boolean value.- Returns:
- The enabled boolean value.
-
setEnabled
void setEnabled(boolean val) Set the enabled field.- Parameters:
val- The boolean to set.
-
getMaxParticles
int getMaxParticles()Return the maxParticles int value.- Returns:
- The maxParticles int value.
-
setMaxParticles
void setMaxParticles(int val) Set the maxParticles field.- Parameters:
val- The int to set.
-
getParticleLifetime
float getParticleLifetime()Return the particleLifetime float value.- Returns:
- The particleLifetime float value.
-
setParticleLifetime
void setParticleLifetime(float val) Set the particleLifetime field.- Parameters:
val- The float to set.
-
getLifetimeVariation
float getLifetimeVariation()Return the lifetimeVariation float value.- Returns:
- The lifetimeVariation float value.
-
setLifetimeVariation
void setLifetimeVariation(float val) Set the lifetimeVariation field.- Parameters:
val- The float to set.
-
getEmitter
-
setEmitter
Set the emitter field.- Parameters:
val- The X3DParticleEmitterNode to set.
-
setEmitter
Set the emitter field.- Parameters:
val- The X3DProtoInstance to set.
-
getNumPhysics
int getNumPhysics()Return the number of MFNode items in the physics field.- Returns:
- the number of MFNode items in the physics field.
-
getPhysics
Return the physics value in the argument X3DNode[]- Parameters:
val- The X3DNode[] to initialize.
-
setPhysics
-
getColorRamp
-
setColorRamp
-
getNumColorKey
int getNumColorKey()Return the number of MFFloat items in the colorKey field.- Returns:
- the number of MFFloat items in the colorKey field.
-
getColorKey
void getColorKey(float[] val) Return the colorKey value in the argument float[]- Parameters:
val- The float[] to initialize.
-
setColorKey
void setColorKey(float[] val) Set the colorKey field.- Parameters:
val- The float[] to set.
-
getIsActive
boolean getIsActive()Return the isActive boolean value.- Returns:
- The isActive boolean value.
-
getParticleSize
void getParticleSize(float[] val) Return the particleSize value in the argument float[]- Parameters:
val- The float[] to initialize.
-
setParticleSize
void setParticleSize(float[] val) Set the particleSize field.- Parameters:
val- The float[] to set.
-
getCreateParticles
boolean getCreateParticles()Return the createParticles boolean value.- Returns:
- The createParticles boolean value.
-
setCreateParticles
void setCreateParticles(boolean val) Set the createParticles field.- Parameters:
val- The boolean to set.
-
getTexCoordRamp
X3DNode getTexCoordRamp()Return the texCoordRamp X3DNode value.- Returns:
- The texCoordRamp X3DNode value.
-
setTexCoordRamp
-
getNumTexCoordKey
int getNumTexCoordKey()Return the number of MFFloat items in the texCoordKey field.- Returns:
- the number of MFFloat items in the texCoordKey field.
-
getTexCoordKey
void getTexCoordKey(float[] val) Return the texCoordKey value in the argument float[]- Parameters:
val- The float[] to initialize.
-
setTexCoordKey
void setTexCoordKey(float[] val) Set the texCoordKey field.- Parameters:
val- The float[] to set.
-