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 TypeMethodDescriptionbooleanReturn the enabled boolean value.voidgetGravity(float[] val) Return the gravity value in the argument float[]voidsetEnabled(boolean val) Set the enabled field.voidsetGravity(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, 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
-
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:
getEnabledin interfaceX3DParticlePhysicsModelNode- Returns:
- The enabled boolean value.
-
setEnabled
public void setEnabled(boolean val) Set the enabled field.- Specified by:
setEnabledin interfaceX3DParticlePhysicsModelNode- Parameters:
val- The boolean to set.
-
getGravity
public void getGravity(float[] val) Return the gravity value in the argument float[]- Specified by:
getGravityin interfaceGravityPhysicsModel- Parameters:
val- The float[] to initialize.
-
setGravity
public void setGravity(float[] val) Set the gravity field.- Specified by:
setGravityin interfaceGravityPhysicsModel- Parameters:
val- The float[] to set.
-