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.void
getBboxCenter
(float[] val) Return the bboxCenter value in the argument float[]void
getBboxSize
(float[] val) Return the bboxSize value in the argument float[]void
getColorKey
(float[] val) Return the colorKey value in the argument float[]Return the colorRamp X3DNode value.boolean
Return the createParticles boolean value.Return the emitter X3DNode value.boolean
Return the enabled boolean value.Return the geometry X3DNode value.Return the geometryType String value.boolean
Return the isActive boolean value.float
Return the lifetimeVariation float value.int
Return the maxParticles int value.int
Return the number of MFFloat items in the colorKey field.int
Return the number of MFNode items in the physics field.int
Return the number of MFFloat items in the texCoordKey field.float
Return the particleLifetime float value.void
getParticleSize
(float[] val) Return the particleSize value in the argument float[]void
getPhysics
(X3DNode[] val) Return the physics value in the argument X3DNode[]void
getTexCoordKey
(float[] val) Return the texCoordKey value in the argument float[]Return the texCoordRamp X3DNode value.void
Set the appearance field.void
Set the appearance field.void
setBboxCenter
(float[] val) Set the bboxCenter field.void
setBboxSize
(float[] val) Set the bboxSize field.void
setColorKey
(float[] val) Set the colorKey field.void
setColorRamp
(X3DNode val) Set the colorRamp field.void
setCreateParticles
(boolean val) Set the createParticles field.void
Set the emitter field.void
Set the emitter field.void
setEnabled
(boolean val) Set the enabled field.void
Set the geometry field.void
Set the geometry field.void
setGeometryType
(String val) Set the geometryType field.void
setLifetimeVariation
(float val) Set the lifetimeVariation field.void
setMaxParticles
(int val) Set the maxParticles field.void
setParticleLifetime
(float val) Set the particleLifetime field.void
setParticleSize
(float[] val) Set the particleSize field.void
setPhysics
(X3DNode[] val) Set the physics field.void
setTexCoordKey
(float[] val) Set the texCoordKey field.void
setTexCoordRamp
(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, setMetadata
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
Methods 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:
getGeometry
in interfaceX3DShapeNode
- Returns:
- The geometry X3DNode value.
-
setGeometry
Set the geometry field.- Specified by:
setGeometry
in interfaceX3DShapeNode
- Parameters:
val
- The X3DGeometryNode to set.
-
setGeometry
Set the geometry field.- Specified by:
setGeometry
in interfaceX3DShapeNode
- Parameters:
val
- The X3DProtoInstance to set.
-
getAppearance
Return the appearance X3DNode value.- Specified by:
getAppearance
in interfaceX3DShapeNode
- Returns:
- The appearance X3DNode value.
-
setAppearance
Set the appearance field.- Specified by:
setAppearance
in interfaceX3DShapeNode
- Parameters:
val
- The X3DAppearanceNode to set.
-
setAppearance
Set the appearance field.- Specified by:
setAppearance
in interfaceX3DShapeNode
- Parameters:
val
- The X3DProtoInstance to set.
-
getBboxSize
public void getBboxSize(float[] val) Return the bboxSize value in the argument float[]- Specified by:
getBboxSize
in interfaceX3DBoundedObject
- Parameters:
val
- The float[] to initialize.
-
setBboxSize
public void setBboxSize(float[] val) Set the bboxSize field.- Specified by:
setBboxSize
in interfaceX3DBoundedObject
- Parameters:
val
- The float[] to set.
-
getBboxCenter
public void getBboxCenter(float[] val) Return the bboxCenter value in the argument float[]- Specified by:
getBboxCenter
in interfaceX3DBoundedObject
- Parameters:
val
- The float[] to initialize.
-
setBboxCenter
public void setBboxCenter(float[] val) Set the bboxCenter field.- Specified by:
setBboxCenter
in interfaceX3DBoundedObject
- Parameters:
val
- The float[] to set.
-
getGeometryType
Return the geometryType String value.- Specified by:
getGeometryType
in interfaceParticleSystem
- Returns:
- The geometryType String value.
-
setGeometryType
Set the geometryType field.- Specified by:
setGeometryType
in interfaceParticleSystem
- Parameters:
val
- The String to set.
-
getEnabled
public boolean getEnabled()Return the enabled boolean value.- Specified by:
getEnabled
in interfaceParticleSystem
- Returns:
- The enabled boolean value.
-
setEnabled
public void setEnabled(boolean val) Set the enabled field.- Specified by:
setEnabled
in interfaceParticleSystem
- Parameters:
val
- The boolean to set.
-
getMaxParticles
public int getMaxParticles()Return the maxParticles int value.- Specified by:
getMaxParticles
in interfaceParticleSystem
- Returns:
- The maxParticles int value.
-
setMaxParticles
public void setMaxParticles(int val) Set the maxParticles field.- Specified by:
setMaxParticles
in interfaceParticleSystem
- Parameters:
val
- The int to set.
-
getParticleLifetime
public float getParticleLifetime()Return the particleLifetime float value.- Specified by:
getParticleLifetime
in interfaceParticleSystem
- Returns:
- The particleLifetime float value.
-
setParticleLifetime
public void setParticleLifetime(float val) Set the particleLifetime field.- Specified by:
setParticleLifetime
in interfaceParticleSystem
- Parameters:
val
- The float to set.
-
getLifetimeVariation
public float getLifetimeVariation()Return the lifetimeVariation float value.- Specified by:
getLifetimeVariation
in interfaceParticleSystem
- Returns:
- The lifetimeVariation float value.
-
setLifetimeVariation
public void setLifetimeVariation(float val) Set the lifetimeVariation field.- Specified by:
setLifetimeVariation
in interfaceParticleSystem
- Parameters:
val
- The float to set.
-
getEmitter
Return the emitter X3DNode value.- Specified by:
getEmitter
in interfaceParticleSystem
- Returns:
- The emitter X3DNode value.
-
setEmitter
Set the emitter field.- Specified by:
setEmitter
in interfaceParticleSystem
- Parameters:
val
- The X3DParticleEmitterNode to set.
-
setEmitter
Set the emitter field.- Specified by:
setEmitter
in interfaceParticleSystem
- Parameters:
val
- The X3DProtoInstance to set.
-
getNumPhysics
public int getNumPhysics()Return the number of MFNode items in the physics field.- Specified by:
getNumPhysics
in interfaceParticleSystem
- Returns:
- the number of MFNode items in the physics field.
-
getPhysics
Return the physics value in the argument X3DNode[]- Specified by:
getPhysics
in interfaceParticleSystem
- Parameters:
val
- The X3DNode[] to initialize.
-
setPhysics
Set the physics field.- Specified by:
setPhysics
in interfaceParticleSystem
- Parameters:
val
- The X3DNode[] to set.
-
getColorRamp
Return the colorRamp X3DNode value.- Specified by:
getColorRamp
in interfaceParticleSystem
- Returns:
- The colorRamp X3DNode value.
-
setColorRamp
Set the colorRamp field.- Specified by:
setColorRamp
in interfaceParticleSystem
- Parameters:
val
- The X3DNode to set.
-
getNumColorKey
public int getNumColorKey()Return the number of MFFloat items in the colorKey field.- Specified by:
getNumColorKey
in 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:
getColorKey
in interfaceParticleSystem
- Parameters:
val
- The float[] to initialize.
-
setColorKey
public void setColorKey(float[] val) Set the colorKey field.- Specified by:
setColorKey
in interfaceParticleSystem
- Parameters:
val
- The float[] to set.
-
getIsActive
public boolean getIsActive()Return the isActive boolean value.- Specified by:
getIsActive
in interfaceParticleSystem
- Returns:
- The isActive boolean value.
-
getParticleSize
public void getParticleSize(float[] val) Return the particleSize value in the argument float[]- Specified by:
getParticleSize
in interfaceParticleSystem
- Parameters:
val
- The float[] to initialize.
-
setParticleSize
public void setParticleSize(float[] val) Set the particleSize field.- Specified by:
setParticleSize
in interfaceParticleSystem
- Parameters:
val
- The float[] to set.
-
getCreateParticles
public boolean getCreateParticles()Return the createParticles boolean value.- Specified by:
getCreateParticles
in interfaceParticleSystem
- Returns:
- The createParticles boolean value.
-
setCreateParticles
public void setCreateParticles(boolean val) Set the createParticles field.- Specified by:
setCreateParticles
in interfaceParticleSystem
- Parameters:
val
- The boolean to set.
-
getTexCoordRamp
Return the texCoordRamp X3DNode value.- Specified by:
getTexCoordRamp
in interfaceParticleSystem
- Returns:
- The texCoordRamp X3DNode value.
-
setTexCoordRamp
Set the texCoordRamp field.- Specified by:
setTexCoordRamp
in interfaceParticleSystem
- Parameters:
val
- The X3DNode to set.
-
getNumTexCoordKey
public int getNumTexCoordKey()Return the number of MFFloat items in the texCoordKey field.- Specified by:
getNumTexCoordKey
in 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:
getTexCoordKey
in interfaceParticleSystem
- Parameters:
val
- The float[] to initialize.
-
setTexCoordKey
public void setTexCoordKey(float[] val) Set the texCoordKey field.- Specified by:
setTexCoordKey
in interfaceParticleSystem
- Parameters:
val
- The float[] to set.
-