Class OGLSphereSensor
java.lang.Object
org.web3d.vrml.renderer.common.nodes.AbstractNode
org.web3d.vrml.renderer.common.nodes.BaseSensorNode
org.web3d.vrml.renderer.common.nodes.BaseDragSensorNode
org.web3d.vrml.renderer.common.nodes.sensor.BaseSphereSensor
org.web3d.vrml.renderer.ogl.nodes.sensor.OGLSphereSensor
- All Implemented Interfaces:
VRMLNode,FrameStateListener,VRMLChildNodeType,VRMLDragSensorNodeType,VRMLNodeType,VRMLPointingDeviceSensorNodeType,VRMLSensorNodeType,VRMLWorldRootChildNodeType,OGLVRMLNode
OpenGL-renderer implementation of a SphereSensor node.
- Version:
- $Revision: 1.2 $
- Author:
- Justin Couch
-
Field Summary
Fields inherited from class org.web3d.vrml.renderer.common.nodes.sensor.BaseSphereSensor
FIELD_OFFSET, FIELD_ROTATION_CHANGED, LAST_PLANESENSOR_INDEX, NUM_FIELDS, vfOffset, vfRotationChangedFields inherited from class org.web3d.vrml.renderer.common.nodes.BaseDragSensorNode
FIELD_AUTOOFFSET, FIELD_DESCRIPTION, FIELD_IS_OVER, FIELD_TRACKPOINT_CHANGED, initialPosition, intersectionUtils, LAST_DRAG_SENSOR_INDEX, vfAutoOffset, vfDescription, vfIsOver, vfTrackPointChanged, wkPointFields inherited from class org.web3d.vrml.renderer.common.nodes.BaseSensorNode
FIELD_ENABLED, FIELD_IS_ACTIVE, LAST_SENSOR_INDEX, vfEnabled, vfIsActiveFields 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 new time sensor objectOGLSphereSensor(VRMLNodeType node) Construct a new instance of this node based on the details from the given node. -
Method Summary
Modifier and TypeMethodDescriptionorg.j3d.aviatrix3d.SceneGraphObjectGet the OpenGL scene graph object representation of this node.Methods inherited from class org.web3d.vrml.renderer.common.nodes.sensor.BaseSphereSensor
getFieldDeclaration, getFieldIndex, getFieldValue, getNodeFieldIndices, getNumFields, notifySensorDragEnd, notifySensorDragStart, processDrag, sendRoute, setValueMethods inherited from class org.web3d.vrml.renderer.common.nodes.BaseDragSensorNode
copy, getAutoOffset, getDescription, getIsOver, getPrimaryType, getTrackPointChanged, notifySensorDragChange, requiresPointOnly, setAutoOffset, setDescription, setIsOver, setValue, setValueMethods inherited from class org.web3d.vrml.renderer.common.nodes.BaseSensorNode
copy, getEnabled, getIsActive, setEnabledMethods 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, setupFinished, setUserData, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setVersion, throwInitOnlyWriteException, throwInputOnlyWriteException, throwInvalidNodeException, throwInvalidProtoException, throwOutputOnlyWriteException, updateRefCount, updateRefsMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.web3d.vrml.nodes.FrameStateListener
allEventsCompleteMethods inherited from interface org.web3d.vrml.lang.VRMLNode
getFieldDeclaration, getFieldIndex, getNodeFieldIndices, getNumFields, getPrimaryType, getSecondaryType, getUserData, getVRMLNodeName, isDEF, setErrorReporter, setUserData, setVersionMethods inherited from interface org.web3d.vrml.nodes.VRMLNodeType
addNodeListener, clearRemovedLayerIds, getFieldValue, getLayerIds, getMetadataObject, getRefCount, getRemovedLayerIds, hasFieldChanged, isSetupFinished, notifyExternProtoLoaded, removeNodeListener, sendRoute, setDEF, setFrameStateManager, setMetadataObject, setupFinished, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, updateRefCountMethods inherited from interface org.web3d.vrml.nodes.VRMLSensorNodeType
getEnabled, getIsActive, setEnabled
-
Constructor Details
-
OGLSphereSensor
public OGLSphereSensor()Construct a new time sensor object -
OGLSphereSensor
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:
getSceneGraphObjectin interfaceOGLVRMLNode- Returns:
- The OpenGL representation.
-