Class SAIGravityPhysicsModel
java.lang.Object
org.web3d.vrml.scripting.external.sai.SAINode
org.xj3d.sai.external.node.particlesystems.SAIGravityPhysicsModel
- All Implemented Interfaces:
GravityPhysicsModel
,X3DNode
,X3DParticlePhysicsModelNode
A concrete implementation of the GravityPhysicsModel node interface
- Version:
- $Revision: 1.1 $
- Author:
- Rex Melton
-
Constructor Summary
ConstructorsConstructorDescriptionSAIGravityPhysicsModel
(VRMLNodeType node, SAINodeFactory nodeFactory, SAIFieldFactory fieldFactory, ExternalEventQueue queue) Constructor -
Method Summary
Modifier and TypeMethodDescriptionboolean
Return the enabled boolean value.void
getGravity
(float[] val) Return the gravity value in the argument float[]void
setEnabled
(boolean val) Set the enabled field.void
setGravity
(float[] val) Set the gravity 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
-
SAIGravityPhysicsModel
public SAIGravityPhysicsModel(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.
-
getGravity
public void getGravity(float[] val) Return the gravity value in the argument float[]- Specified by:
getGravity
in interfaceGravityPhysicsModel
- Parameters:
val
- The float[] to initialize.
-
setGravity
public void setGravity(float[] val) Set the gravity field.- Specified by:
setGravity
in interfaceGravityPhysicsModel
- Parameters:
val
- The float[] to set.
-