Class SAIWindPhysicsModel
java.lang.Object
org.web3d.vrml.scripting.external.sai.SAINode
org.xj3d.sai.external.node.particlesystems.SAIWindPhysicsModel
- All Implemented Interfaces:
WindPhysicsModel
,X3DNode
,X3DParticlePhysicsModelNode
A concrete implementation of the WindPhysicsModel node interface
- Version:
- $Revision: 1.1 $
- Author:
- Rex Melton
-
Constructor Summary
ConstructorsConstructorDescriptionSAIWindPhysicsModel
(VRMLNodeType node, SAINodeFactory nodeFactory, SAIFieldFactory fieldFactory, ExternalEventQueue queue) Constructor -
Method Summary
Modifier and TypeMethodDescriptionvoid
getDirection
(float[] val) Return the direction value in the argument float[]boolean
Return the enabled boolean value.float
Return the gustiness float value.float
getSpeed()
Return the speed float value.float
Return the turbulence float value.void
setDirection
(float[] val) Set the direction field.void
setEnabled
(boolean val) Set the enabled field.void
setGustiness
(float val) Set the gustiness field.void
setSpeed
(float val) Set the speed field.void
setTurbulence
(float val) Set the turbulence 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
-
SAIWindPhysicsModel
public SAIWindPhysicsModel(VRMLNodeType node, SAINodeFactory nodeFactory, SAIFieldFactory fieldFactory, ExternalEventQueue queue) Constructor- Parameters:
queue
-
-
-
Method Details
-
getEnabled
public boolean getEnabled()Return the enabled boolean value.- Specified by:
getEnabled
in interfaceX3DParticlePhysicsModelNode
- Returns:
- The enabled boolean value.
-
setEnabled
public void setEnabled(boolean val) Set the enabled field.- Specified by:
setEnabled
in interfaceX3DParticlePhysicsModelNode
- Parameters:
val
- The boolean to set.
-
getDirection
public void getDirection(float[] val) Return the direction value in the argument float[]- Specified by:
getDirection
in interfaceWindPhysicsModel
- Parameters:
val
- The float[] to initialize.
-
setDirection
public void setDirection(float[] val) Set the direction field.- Specified by:
setDirection
in interfaceWindPhysicsModel
- Parameters:
val
- The float[] to set.
-
getGustiness
public float getGustiness()Return the gustiness float value.- Specified by:
getGustiness
in interfaceWindPhysicsModel
- Returns:
- The gustiness float value.
-
setGustiness
public void setGustiness(float val) Set the gustiness field.- Specified by:
setGustiness
in interfaceWindPhysicsModel
- Parameters:
val
- The float to set.
-
getTurbulence
public float getTurbulence()Return the turbulence float value.- Specified by:
getTurbulence
in interfaceWindPhysicsModel
- Returns:
- The turbulence float value.
-
setTurbulence
public void setTurbulence(float val) Set the turbulence field.- Specified by:
setTurbulence
in interfaceWindPhysicsModel
- Parameters:
val
- The float to set.
-
getSpeed
public float getSpeed()Return the speed float value.- Specified by:
getSpeed
in interfaceWindPhysicsModel
- Returns:
- The speed float value.
-
setSpeed
public void setSpeed(float val) Set the speed field.- Specified by:
setSpeed
in interfaceWindPhysicsModel
- Parameters:
val
- The float to set.
-