Class OGLWheelSensor
java.lang.Object
org.web3d.vrml.renderer.common.nodes.AbstractNode
org.web3d.vrml.renderer.common.nodes.extensions.BaseHIDSensor
org.web3d.vrml.renderer.common.nodes.extensions.BaseWheelSensor
org.web3d.vrml.renderer.ogl.nodes.extensions.OGLWheelSensor
- All Implemented Interfaces:
VRMLNode
,FrameStateListener
,VRMLChildNodeType
,VRMLDeviceSensorNodeType
,VRMLNodeType
,VRMLSensorNodeType
,VRMLWorldRootChildNodeType
,OGLVRMLNode
OGL renderer implementation of a GameSensor Node.
This node is purely informational within the scene graph. It does not have a renderable representation.
- Version:
- $Revision: 1.1 $
- Author:
- Alan Hudson
-
Field Summary
Fields inherited from class org.web3d.vrml.renderer.common.nodes.extensions.BaseHIDSensor
FIELD_AXIS_MAX_VALUE, FIELD_AXIS_MIN_VALUE, FIELD_AXIS_NAME, FIELD_AXIS_RESOLUTION, FIELD_AXIS_VALUE, FIELD_AXIS_WRAP, FIELD_ENABLED, FIELD_IS_ACTIVE, FIELD_MANUFACTURER_NAME, FIELD_NAME, FIELD_NUM_AXES, FIELD_NUM_OUTPUTS, FIELD_OUTPUT_MAX_VALUE, FIELD_OUTPUT_MIN_VALUE, FIELD_OUTPUT_NAME, FIELD_OUTPUT_RESOLUTION, FIELD_OUTPUT_VALUE, FIELD_OUTPUT_WRAP, LAST_HIDSENSOR_INDEX, vfAxisMaxValue, vfAxisMinValue, vfAxisName, vfAxisResolution, vfAxisValue, vfAxisWrap, vfEnabled, vfIsActive, vfManufacturerName, vfName, vfNumAxes, vfNumOutputs, vfOutputMaxValue, vfOutputMinValue, vfOutputName, vfOutputResolution, vfOutputValue, vfOutputWrap
Fields inherited from class org.web3d.vrml.renderer.common.nodes.AbstractNode
errorReporter, FIELD_METADATA, fieldLocalData, hasChanged, inSetup, isDEF, isStatic, LAST_NODE_INDEX, layerIds, nodeName, pMetadata, refCounts, removedLayerIds, stateManager, STATIC_SCENE_GRAPH, vfMetadata, vrmlMajorVersion, vrmlMinorVersion
-
Constructor Summary
ConstructorsConstructorDescriptionConstruct a default node with an empty info array any the title set to the empty string.OGLWheelSensor
(VRMLNodeType node) Construct a new instance of this node based on the details from the given node. -
Method Summary
Modifier and TypeMethodDescriptionorg.j3d.aviatrix3d.SceneGraphObject
Get the OpenGL scene graph object representation of this node.void
Notification that the construction phase of this node has finished.Methods inherited from class org.web3d.vrml.renderer.common.nodes.extensions.BaseWheelSensor
getFieldDeclaration, getFieldIndex, getFieldValue, getNodeFieldIndices, getNumFields, sendRoute, setDevice, setEquilibriumPoint, setValue, update
Methods inherited from class org.web3d.vrml.renderer.common.nodes.extensions.BaseHIDSensor
copy, getEnabled, getIsActive, getName, getPrimaryType, setEnabled, setName, setValue, setValue
Methods inherited from class org.web3d.vrml.renderer.common.nodes.AbstractNode
addNodeListener, allEventsComplete, checkNodeType, checkSecondaryType, checkSecondaryType, clearRemovedLayerIds, fireFieldChanged, getLayerIds, getMetadataObject, getRefCount, getRemovedLayerIds, getSecondaryType, getUserData, getVRMLNodeName, hasFieldChanged, isDEF, isSetupFinished, notifyExternProtoLoaded, removeNodeListener, setDEF, setErrorReporter, setFrameStateManager, setMetadataObject, setUserData, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setVersion, throwInitOnlyWriteException, throwInputOnlyWriteException, throwInvalidNodeException, throwInvalidProtoException, throwOutputOnlyWriteException, updateRefCount, updateRefs
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.web3d.vrml.nodes.FrameStateListener
allEventsComplete
Methods inherited from interface org.web3d.vrml.lang.VRMLNode
getFieldDeclaration, getFieldIndex, getNodeFieldIndices, getNumFields, getPrimaryType, getSecondaryType, getUserData, getVRMLNodeName, isDEF, setErrorReporter, setUserData, setVersion
Methods inherited from interface org.web3d.vrml.nodes.VRMLNodeType
addNodeListener, clearRemovedLayerIds, getFieldValue, getLayerIds, getMetadataObject, getRefCount, getRemovedLayerIds, hasFieldChanged, isSetupFinished, notifyExternProtoLoaded, removeNodeListener, sendRoute, setDEF, setFrameStateManager, setMetadataObject, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, updateRefCount
-
Constructor Details
-
OGLWheelSensor
public OGLWheelSensor()Construct a default node with an empty info array any the title set to the empty string. -
OGLWheelSensor
Construct a new instance of this node based on the details from the given node. If the node is not the same type, an exception will be thrown.- Parameters:
node
- The node to copy- Throws:
IllegalArgumentException
- The node is not the same type
-
-
Method Details
-
getSceneGraphObject
public org.j3d.aviatrix3d.SceneGraphObject getSceneGraphObject()Get the OpenGL scene graph object representation of this node. This will need to be cast to the appropriate parent type when being used. Default implementation returns null.- Specified by:
getSceneGraphObject
in interfaceOGLVRMLNode
- Returns:
- The OpenGL representation.
-
setupFinished
public void setupFinished()Notification that the construction phase of this node has finished. If the node would like to do any internal processing, such as setting up geometry, then go for it now.- Specified by:
setupFinished
in interfaceVRMLNodeType
- Overrides:
setupFinished
in classAbstractNode
-