Class SAIParticleSystem
java.lang.Object
org.web3d.vrml.scripting.external.sai.SAINode
org.xj3d.sai.external.node.particlesystems.SAIParticleSystem
- All Implemented Interfaces:
ParticleSystem,X3DBoundedObject,X3DChildNode,X3DNode,X3DShapeNode
A concrete implementation of the ParticleSystem node interface
- Version:
- $Revision: 1.1 $
- Author:
- Rex Melton
-
Constructor Summary
ConstructorsConstructorDescriptionSAIParticleSystem(VRMLNodeType node, SAINodeFactory nodeFactory, SAIFieldFactory fieldFactory, ExternalEventQueue queue) Constructor -
Method Summary
Modifier and TypeMethodDescriptionReturn the appearance X3DNode value.voidgetBboxCenter(float[] val) Return the bboxCenter value in the argument float[]voidgetBboxSize(float[] val) Return the bboxSize value in the argument float[]voidgetColorKey(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 geometry X3DNode 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.voidSet the appearance field.voidSet the appearance field.voidsetBboxCenter(float[] val) Set the bboxCenter field.voidsetBboxSize(float[] val) Set the bboxSize field.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.voidSet the geometry field.voidSet the geometry 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 class org.web3d.vrml.scripting.external.sai.SAINode
dispose, equals, getField, getFieldDefinitions, getMetadata, getNodeName, getNodeType, hashCode, isRealized, realize, setMetadataMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.web3d.x3d.sai.X3DNode
dispose, getField, getFieldDefinitions, getMetadata, getNodeName, getNodeType, isRealized, realize, setMetadata
-
Constructor Details
-
SAIParticleSystem
public SAIParticleSystem(VRMLNodeType node, SAINodeFactory nodeFactory, SAIFieldFactory fieldFactory, ExternalEventQueue queue) Constructor- Parameters:
queue-
-
-
Method Details
-
getGeometry
Return the geometry X3DNode value.- Specified by:
getGeometryin interfaceX3DShapeNode- Returns:
- The geometry X3DNode value.
-
setGeometry
Set the geometry field.- Specified by:
setGeometryin interfaceX3DShapeNode- Parameters:
val- The X3DGeometryNode to set.
-
setGeometry
Set the geometry field.- Specified by:
setGeometryin interfaceX3DShapeNode- Parameters:
val- The X3DProtoInstance to set.
-
getAppearance
Return the appearance X3DNode value.- Specified by:
getAppearancein interfaceX3DShapeNode- Returns:
- The appearance X3DNode value.
-
setAppearance
Set the appearance field.- Specified by:
setAppearancein interfaceX3DShapeNode- Parameters:
val- The X3DAppearanceNode to set.
-
setAppearance
Set the appearance field.- Specified by:
setAppearancein interfaceX3DShapeNode- Parameters:
val- The X3DProtoInstance to set.
-
getBboxSize
public void getBboxSize(float[] val) Return the bboxSize value in the argument float[]- Specified by:
getBboxSizein interfaceX3DBoundedObject- Parameters:
val- The float[] to initialize.
-
setBboxSize
public void setBboxSize(float[] val) Set the bboxSize field.- Specified by:
setBboxSizein interfaceX3DBoundedObject- Parameters:
val- The float[] to set.
-
getBboxCenter
public void getBboxCenter(float[] val) Return the bboxCenter value in the argument float[]- Specified by:
getBboxCenterin interfaceX3DBoundedObject- Parameters:
val- The float[] to initialize.
-
setBboxCenter
public void setBboxCenter(float[] val) Set the bboxCenter field.- Specified by:
setBboxCenterin interfaceX3DBoundedObject- Parameters:
val- The float[] to set.
-
getGeometryType
Return the geometryType String value.- Specified by:
getGeometryTypein interfaceParticleSystem- Returns:
- The geometryType String value.
-
setGeometryType
Set the geometryType field.- Specified by:
setGeometryTypein interfaceParticleSystem- Parameters:
val- The String to set.
-
getEnabled
public boolean getEnabled()Return the enabled boolean value.- Specified by:
getEnabledin interfaceParticleSystem- Returns:
- The enabled boolean value.
-
setEnabled
public void setEnabled(boolean val) Set the enabled field.- Specified by:
setEnabledin interfaceParticleSystem- Parameters:
val- The boolean to set.
-
getMaxParticles
public int getMaxParticles()Return the maxParticles int value.- Specified by:
getMaxParticlesin interfaceParticleSystem- Returns:
- The maxParticles int value.
-
setMaxParticles
public void setMaxParticles(int val) Set the maxParticles field.- Specified by:
setMaxParticlesin interfaceParticleSystem- Parameters:
val- The int to set.
-
getParticleLifetime
public float getParticleLifetime()Return the particleLifetime float value.- Specified by:
getParticleLifetimein interfaceParticleSystem- Returns:
- The particleLifetime float value.
-
setParticleLifetime
public void setParticleLifetime(float val) Set the particleLifetime field.- Specified by:
setParticleLifetimein interfaceParticleSystem- Parameters:
val- The float to set.
-
getLifetimeVariation
public float getLifetimeVariation()Return the lifetimeVariation float value.- Specified by:
getLifetimeVariationin interfaceParticleSystem- Returns:
- The lifetimeVariation float value.
-
setLifetimeVariation
public void setLifetimeVariation(float val) Set the lifetimeVariation field.- Specified by:
setLifetimeVariationin interfaceParticleSystem- Parameters:
val- The float to set.
-
getEmitter
Return the emitter X3DNode value.- Specified by:
getEmitterin interfaceParticleSystem- Returns:
- The emitter X3DNode value.
-
setEmitter
Set the emitter field.- Specified by:
setEmitterin interfaceParticleSystem- Parameters:
val- The X3DParticleEmitterNode to set.
-
setEmitter
Set the emitter field.- Specified by:
setEmitterin interfaceParticleSystem- Parameters:
val- The X3DProtoInstance to set.
-
getNumPhysics
public int getNumPhysics()Return the number of MFNode items in the physics field.- Specified by:
getNumPhysicsin interfaceParticleSystem- Returns:
- the number of MFNode items in the physics field.
-
getPhysics
Return the physics value in the argument X3DNode[]- Specified by:
getPhysicsin interfaceParticleSystem- Parameters:
val- The X3DNode[] to initialize.
-
setPhysics
Set the physics field.- Specified by:
setPhysicsin interfaceParticleSystem- Parameters:
val- The X3DNode[] to set.
-
getColorRamp
Return the colorRamp X3DNode value.- Specified by:
getColorRampin interfaceParticleSystem- Returns:
- The colorRamp X3DNode value.
-
setColorRamp
Set the colorRamp field.- Specified by:
setColorRampin interfaceParticleSystem- Parameters:
val- The X3DNode to set.
-
getNumColorKey
public int getNumColorKey()Return the number of MFFloat items in the colorKey field.- Specified by:
getNumColorKeyin interfaceParticleSystem- Returns:
- the number of MFFloat items in the colorKey field.
-
getColorKey
public void getColorKey(float[] val) Return the colorKey value in the argument float[]- Specified by:
getColorKeyin interfaceParticleSystem- Parameters:
val- The float[] to initialize.
-
setColorKey
public void setColorKey(float[] val) Set the colorKey field.- Specified by:
setColorKeyin interfaceParticleSystem- Parameters:
val- The float[] to set.
-
getIsActive
public boolean getIsActive()Return the isActive boolean value.- Specified by:
getIsActivein interfaceParticleSystem- Returns:
- The isActive boolean value.
-
getParticleSize
public void getParticleSize(float[] val) Return the particleSize value in the argument float[]- Specified by:
getParticleSizein interfaceParticleSystem- Parameters:
val- The float[] to initialize.
-
setParticleSize
public void setParticleSize(float[] val) Set the particleSize field.- Specified by:
setParticleSizein interfaceParticleSystem- Parameters:
val- The float[] to set.
-
getCreateParticles
public boolean getCreateParticles()Return the createParticles boolean value.- Specified by:
getCreateParticlesin interfaceParticleSystem- Returns:
- The createParticles boolean value.
-
setCreateParticles
public void setCreateParticles(boolean val) Set the createParticles field.- Specified by:
setCreateParticlesin interfaceParticleSystem- Parameters:
val- The boolean to set.
-
getTexCoordRamp
Return the texCoordRamp X3DNode value.- Specified by:
getTexCoordRampin interfaceParticleSystem- Returns:
- The texCoordRamp X3DNode value.
-
setTexCoordRamp
Set the texCoordRamp field.- Specified by:
setTexCoordRampin interfaceParticleSystem- Parameters:
val- The X3DNode to set.
-
getNumTexCoordKey
public int getNumTexCoordKey()Return the number of MFFloat items in the texCoordKey field.- Specified by:
getNumTexCoordKeyin interfaceParticleSystem- Returns:
- the number of MFFloat items in the texCoordKey field.
-
getTexCoordKey
public void getTexCoordKey(float[] val) Return the texCoordKey value in the argument float[]- Specified by:
getTexCoordKeyin interfaceParticleSystem- Parameters:
val- The float[] to initialize.
-
setTexCoordKey
public void setTexCoordKey(float[] val) Set the texCoordKey field.- Specified by:
setTexCoordKeyin interfaceParticleSystem- Parameters:
val- The float[] to set.
-