Package org.web3d.vrml.lang
Interface VRMLNode
- All Known Subinterfaces:
NRAudioClipNodeType
,NRTexture2DNodeType
,NRTextureNodeType
,NRVRMLNode
,OGLAppearanceNodeType
,OGLBackgroundNodeType
,OGLBindableNodeType
,OGLGeometryNodeType
,OGLLightNodeType
,OGLMaterialNodeType
,OGLNavigationInfoNodeType
,OGLPickableTargetNodeType
,OGLPickingSensorNodeType
,OGLTextNodeType
,OGLTextureCoordinateTransformNodeType
,OGLTextureNodeType
,OGLViewpointNodeType
,OGLVRMLNode
,OGLWorldRootNodeType
,VRMLAnnotationNodeType
,VRMLAppearanceChildNodeType
,VRMLAppearanceNodeType
,VRMLAudioClipNodeType
,VRMLBackgroundNodeType
,VRMLBindableNodeType
,VRMLBoundedNodeType
,VRMLBREPCurve2DNode
,VRMLBREPCurve3DNode
,VRMLBREPFaceNode
,VRMLBREPNodeType
,VRMLBREPSurfaceNode
,VRMLChildNodeType
,VRMLCollidableNodeType
,VRMLColorNodeType
,VRMLComponentGeometryNodeType
,VRMLComposedTextureNodeType
,VRMLCoordinateNodeType
,VRMLDeviceManagerNodeType
,VRMLDeviceSensorNodeType
,VRMLDISManagerNodeType
,VRMLDISNodeType
,VRMLDragSensorNodeType
,VRMLEnvironmentalSensorNodeType
,VRMLEnvironmentTextureNodeType
,VRMLExternalNodeType
,VRMLExternalSynchronizedNodeType
,VRMLExternProtoDeclare
,VRMLFogNodeType
,VRMLFontStyleNodeType
,VRMLGeometricPropertyNodeType
,VRMLGeometryNodeType
,VRMLGroupingNodeType
,VRMLHAnimHumanoidNodeType
,VRMLHAnimNodeType
,VRMLInlineNodeType
,VRMLInterpolatorNodeType
,VRMLKeyDeviceSensorNodeType
,VRMLLayerNodeType
,VRMLLayerSetNodeType
,VRMLLightNodeType
,VRMLLocalOriginNodeType
,VRMLMaterialNodeType
,VRMLMultiExternalNodeType
,VRMLMultiTextureNodeType
,VRMLNavigationInfoNodeType
,VRMLNBodyCollidableNodeType
,VRMLNBodyGroupNodeType
,VRMLNBodySensorNodeType
,VRMLNBodySpaceNodeType
,VRMLNetworkInterfaceNodeType
,VRMLNodeType
,VRMLNormalNodeType
,VRMLOverlayNodeType
,VRMLParametricGeometryNodeType
,VRMLParticleEmitterNodeType
,VRMLParticlePhysicsModelNodeType
,VRMLParticleSystemNodeType
,VRMLPickableNodeType
,VRMLPickingSensorNodeType
,VRMLPointingDeviceSensorNodeType
,VRMLPointPropertiesNodeType
,VRMLProductStructureChildNodeType
,VRMLProtoInstance
,VRMLRigidBodyGroupNodeType
,VRMLRigidBodyNodeType
,VRMLRigidJointNodeType
,VRMLScriptNodeType
,VRMLSensorNodeType
,VRMLSequencerNodeType
,VRMLShapeNodeType
,VRMLSingleExternalNodeType
,VRMLSoundNodeType
,VRMLSurfaceChildNodeType
,VRMLSurfaceLayoutNodeType
,VRMLSurfaceMaterialNodeType
,VRMLSurfaceNodeType
,VRMLTextNodeType
,VRMLTexture2DNodeType
,VRMLTexture3DNodeType
,VRMLTextureCoordinateNodeType
,VRMLTextureCoordinateTransformNodeType
,VRMLTextureNodeType
,VRMLTextureProperties2DNodeType
,VRMLTextureTransformNodeType
,VRMLTimeControlledNodeType
,VRMLTimeDependentNodeType
,VRMLTouchSensorNodeType
,VRMLViewDependentNodeType
,VRMLViewpointNodeType
,VRMLViewportNodeType
,VRMLVisualMaterialNodeType
,VRMLWorldRootChildNodeType
,VRMLWorldRootNodeType
- All Known Implementing Classes:
AbstractDynamicFieldNode
,AbstractNode
,BaseAnchor
,BaseAnnotation
,BaseAnnotationTarget
,BaseAppearance
,BaseArc2D
,BaseAudioClip
,BaseBackground
,BaseBallJoint
,BaseBillboard
,BaseBindableNode
,BaseBooleanFilter
,BaseBooleanSequencer
,BaseBooleanToggle
,BaseBooleanTrigger
,BaseBorderLayout
,BaseBorderLayout
,BaseBox
,BaseCADAssembly
,BaseCADFace
,BaseCADLayer
,BaseCADPart
,BaseClipPlane
,BaseCollidableNode
,BaseCollidableOffset
,BaseCollidableShape
,BaseCollision
,BaseCollisionCollection
,BaseCollisionSensor
,BaseCollisionSpace
,BaseColor
,BaseColorInterpolator
,BaseColorRGBA
,BaseComponentGeometryNode
,BaseComposedCubeMapTexture
,BaseComposedTexture3D
,BaseCone
,BaseContact
,BaseContour2D
,BaseContourPolyline2D
,BaseCoordinate
,BaseCoordinateInterpolator
,BaseCoordinateInterpolator2D
,BaseCustomViewport
,BaseCylinder
,BaseCylinderSensor
,BaseDirectionalLight
,BaseDISEntityManager
,BaseDISEntityTypeMapping
,BaseDisk2D
,BaseDoubleAxisHingeJoint
,BaseDragSensorNode
,BaseElevationGrid
,BaseEmitter
,BaseEspduTransform
,BaseExplosionEmitter
,BaseExtrusion
,BaseFillProperties
,BaseFixedViewport
,BaseFog
,BaseFogCoordinate
,BaseFontStyle
,BaseGamepadSensor
,BaseGeoCoordinate
,BaseGeoECParameters
,BaseGeoElevationGrid
,BaseGeoLCCParameters
,BaseGeoLCE3DParameters
,BaseGeoLocalTangentParameters
,BaseGeoLocation
,BaseGeoLOD
,BaseGeoLSR3DParameters
,BaseGeoLTSEParameters
,BaseGeoMetadata
,BaseGeometricPropertyNode
,BaseGeoMParameters
,BaseGeoObliqueMercatorParameters
,BaseGeoOrigin
,BaseGeoPositionInterpolator
,BaseGeoPSParameters
,BaseGeoReferenceSurfaceInfo
,BaseGeoSRFInstance
,BaseGeoSRFParametersInfo
,BaseGeoSRFParametersInfoNode
,BaseGeoSRFParametersNode
,BaseGeoSRFSet
,BaseGeoSRFTemplate
,BaseGeoSRFTParametersNode
,BaseGeoTMParameters
,BaseGeoTouchSensor
,BaseGeoTransform
,BaseGeoViewpoint
,BaseGravityPhysicsModel
,BaseGridLayout
,BaseGridLayout
,BaseGroup
,BaseGroupingNode
,BaseGroupLayout
,BaseGroupLayout
,BaseHAnimDisplacer
,BaseHAnimHumanoid
,BaseHAnimJoint
,BaseHAnimSegment
,BaseHAnimSite
,BaseHIDSensor
,BaseImage2D
,BaseImage2D
,BaseImageCubeMapTexture
,BaseImageTexture
,BaseImageTexture3D
,BaseIndexedFaceSet
,BaseIndexedGeometryNode
,BaseIndexedLineSet
,BaseIndexedQuadSet
,BaseIndexedTriangleFanSet
,BaseIndexedTriangleGeometryNode
,BaseIndexedTriangleSet
,BaseIndexedTriangleStripSet
,BaseInline
,BaseIntegerSequencer
,BaseIntegerTrigger
,BaseInterpolatorNode
,BaseJointNode
,BaseJoystickSensor
,BaseKeySensor
,BaseLayer
,BaseLayer2D
,BaseLayerSet
,BaseLightNode
,BaseLinePickSensor
,BaseLineProperties
,BaseLineSet
,BaseLoadSensor
,BaseLocalFog
,BaseLOD
,BaseMaterial
,BaseMatrixTransform
,BaseMetadataBoolean
,BaseMetadataDouble
,BaseMetadataFloat
,BaseMetadataInteger
,BaseMetadataObjectNode
,BaseMetadataSet
,BaseMetadataString
,BaseMidiSource
,BaseMotorJoint
,BaseMovieTexture
,BaseMultiTexture
,BaseMultiTextureCoordinate
,BaseMultiTextureTransform
,BaseNavigationInfo
,BaseNormal
,BaseNormalInterpolator
,BaseNurbsCurve
,BaseNurbsCurve2D
,BaseNurbsPatchSurface
,BaseNurbsPositionInterpolator
,BaseNurbsTrimmedSurface
,BaseOrderedGroup
,BaseOrientationInterpolator
,BaseOrthoViewpoint
,BaseOverlay
,BaseParticleSystem
,BasePhysicsModel
,BasePickableGroup
,BasePickingNode
,BasePixelCubeMapTexture
,BasePixelTexture
,BasePixelTexture3D
,BasePlaneSensor
,BasePointEmitter
,BasePointLight
,BasePointPickSensor
,BasePointProperties
,BasePointSet
,BasePointSetGeometryNode
,BasePolyline2D
,BasePolylineEmitter
,BasePolypoint2D
,BasePositionInterpolator
,BasePositionInterpolator2D
,BasePrimitivePickSensor
,BaseProportionalViewport
,BaseProximitySensor
,BaseQuadSet
,BaseRectangle2D
,BaseRenderedTexture
,BaseRigidBody
,BaseRigidBodyCollection
,BaseScalarInterpolator
,BaseScreenMarker
,BaseScript
,BaseSensorNode
,BaseSequencerNode
,BaseShape
,BaseSingleAxisHingeJoint
,BaseSliderJoint
,BaseSolidBREP
,BaseSound
,BaseSphere
,BaseSphereSensor
,BaseSpotLight
,BaseStaticGroup
,BaseStringSensor
,BaseSurfaceChildNode
,BaseSurfaceChildNode
,BaseSurfaceLayoutNode
,BaseSurfaceLayoutNode
,BaseSwitch
,BaseText
,BaseText2D
,BaseText2D
,BaseTexture2DNode
,BaseTexture3DNode
,BaseTextureBackground
,BaseTextureCoordinate
,BaseTextureCoordinate3D
,BaseTextureCoordinate4D
,BaseTextureCoordinateGenerator
,BaseTextureNode
,BaseTextureProperties
,BaseTextureTransform
,BaseTextureTransform3D
,BaseTimeControlledNode
,BaseTimeController
,BaseTimeDependentNode
,BaseTimeSensor
,BaseTimeTrigger
,BaseTouchSensor
,BaseTransform
,BaseTriangleFanSet
,BaseTriangleGeometryNode
,BaseTriangleSet
,BaseTriangleSet2D
,BaseTriangleStripSet
,BaseTwoSidedMaterial
,BaseUniversalJoint
,BaseViewpoint
,BaseVisibilitySensor
,BaseVolumePickSensor
,BaseWheelSensor
,BaseWindPhysicsModel
,BaseWorldInfo
,BaseWorldRoot
,BaseXYLayout
,BaseXYLayout
,CRExternPrototypeDecl
,CRProtoInstance
,DefaultFontStyle
,ExternalPrototypeDecl
,ImportNodeProxy
,NRAnchor
,NRAppearance
,NRArc2D
,NRAudioClip
,NRBackground
,NRBallJoint
,NRBillboard
,NRBooleanFilter
,NRBooleanSequencer
,NRBooleanToggle
,NRBooleanTrigger
,NRBorderLayout
,NRBorderLayout
,NRBox
,NRCADAssembly
,NRCADFace
,NRCADLayer
,NRCADPart
,NRClipPlane
,NRCollidableOffset
,NRCollidableShape
,NRCollision
,NRCollisionCollection
,NRCollisionSensor
,NRCollisionSpace
,NRColor
,NRColorInterpolator
,NRColorRGBA
,NRComposedCubeMapTexture
,NRComposedTexture3D
,NRCone
,NRContact
,NRCoordinate
,NRCoordinateInterpolator
,NRCoordinateInterpolator2D
,NRCustomViewport
,NRCylinder
,NRCylinderSensor
,NRDirectionalLight
,NRDISEntityManager
,NRDoubleAxisHingeJoint
,NRElevationGrid
,NREspduTransform
,NRExplosionEmitter
,NRExternPrototypeDecl
,NRExtrusion
,NRFillProperties
,NRFixedViewport
,NRFog
,NRFogCoordinate
,NRFontStyle
,NRGamepadSensor
,NRGeoCoordinate
,NRGeoECParameters
,NRGeoElevationGrid
,NRGeoLCCParameters
,NRGeoLCE3DParameters
,NRGeoLocalTangentParameters
,NRGeoLocation
,NRGeoLOD
,NRGeoLSR3DParameters
,NRGeoLTSEParameters
,NRGeoMetadata
,NRGeoMParameters
,NRGeoObliqueMercatorParameters
,NRGeoOrigin
,NRGeoPositionInterpolator
,NRGeoPSParameters
,NRGeoReferenceSurfaceInfo
,NRGeoSRFInstance
,NRGeoSRFParametersInfo
,NRGeoSRFSet
,NRGeoSRFTemplate
,NRGeoTMParameters
,NRGeoTouchSensor
,NRGeoTransform
,NRGeoViewpoint
,NRGravityPhysicsModel
,NRGridLayout
,NRGridLayout
,NRGroup
,NRGroupLayout
,NRGroupLayout
,NRHAnimDisplacer
,NRHAnimHumanoid
,NRHAnimJoint
,NRHAnimSegment
,NRHAnimSite
,NRImage2D
,NRImage2D
,NRImageCubeMapTexture
,NRImageTexture
,NRImageTexture3D
,NRIndexedFaceSet
,NRIndexedLineSet
,NRIndexedQuadSet
,NRIndexedTriangleFanSet
,NRIndexedTriangleSet
,NRIndexedTriangleStripSet
,NRInline
,NRIntegerSequencer
,NRIntegerTrigger
,NRJoystickSensor
,NRKeySensor
,NRLayer
,NRLayer2D
,NRLayerSet
,NRLinePickSensor
,NRLineProperties
,NRLineSet
,NRLoadSensor
,NRLocalFog
,NRLOD
,NRMaterial
,NRMatrixTransform
,NRMetadataBoolean
,NRMetadataDouble
,NRMetadataFloat
,NRMetadataInteger
,NRMetadataSet
,NRMetadataString
,NRMotorJoint
,NRMovieTexture
,NRMultiTexture
,NRMultiTextureCoordinate
,NRMultiTextureTransform
,NRNavigationInfo
,NRNode
,NRNormal
,NRNormalInterpolator
,NRNurbsCurve
,NRNurbsPatchSurface
,NRNurbsPositionInterpolator
,NROrderedGroup
,NROrientationInterpolator
,NROrthoViewpoint
,NROverlay
,NRParticleSystem
,NRPickableGroup
,NRPixelCubeMapTexture
,NRPixelTexture
,NRPixelTexture3D
,NRPlaneSensor
,NRPointEmitter
,NRPointLight
,NRPointPickSensor
,NRPointProperties
,NRPointSet
,NRPolyline2D
,NRPolylineEmitter
,NRPolypoint2D
,NRPositionInterpolator
,NRPositionInterpolator2D
,NRProportionalViewport
,NRProximitySensor
,NRQuadSet
,NRRectangle2D
,NRRenderedTexture
,NRRigidBody
,NRRigidBodyCollection
,NRScalarInterpolator
,NRScript
,NRShape
,NRSingleAxisHingeJoint
,NRSliderJoint
,NRSound
,NRSphere
,NRSphereSensor
,NRSpotLight
,NRStaticGroup
,NRStringSensor
,NRSwitch
,NRText
,NRText2D
,NRText2D
,NRTextureBackground
,NRTextureCoordinate
,NRTextureCoordinate3D
,NRTextureCoordinate4D
,NRTextureCoordinateGenerator
,NRTextureProperties
,NRTextureTransform
,NRTextureTransform3D
,NRTimeSensor
,NRTimeTrigger
,NRTouchSensor
,NRTransform
,NRTriangleFanSet
,NRTriangleSet
,NRTriangleSet2D
,NRTriangleStripSet
,NRUniversalJoint
,NRViewpoint
,NRVisibilitySensor
,NRVolumePickSensor
,NRWheelSensor
,NRWindPhysicsModel
,NRWorldInfo
,NRWorldRoot
,NRXYLayout
,NRXYLayout
,OGLAnchor
,OGLAppearance
,OGLArc2D
,OGLAudioClip
,OGLBackground
,OGLBallJoint
,OGLBillboard
,OGLBooleanFilter
,OGLBooleanSequencer
,OGLBooleanToggle
,OGLBooleanTrigger
,OGLBox
,OGLCADAssembly
,OGLCADFace
,OGLCADLayer
,OGLCADPart
,OGLClipPlane
,OGLCollidableOffset
,OGLCollidableShape
,OGLCollision
,OGLCollisionCollection
,OGLCollisionSensor
,OGLCollisionSpace
,OGLColor
,OGLColorInterpolator
,OGLColorRGBA
,OGLComposedTexture3D
,OGLCone
,OGLContact
,OGLContour2D
,OGLContourPolyline2D
,OGLCoordinate
,OGLCoordinateInterpolator
,OGLCoordinateInterpolator2D
,OGLCustomViewport
,OGLCylinder
,OGLCylinderSensor
,OGLDirectionalLight
,OGLDISEntityManager
,OGLDISEntityTypeMapping
,OGLDisk2D
,OGLDoubleAxisHingeJoint
,OGLElevationGrid
,OGLEspduTransform
,OGLExplosionEmitter
,OGLExternPrototypeDecl
,OGLExtrusion
,OGLFixedViewport
,OGLFog
,OGLFogCoordinate
,OGLFontStyle
,OGLGamepadSensor
,OGLGeoCoordinate
,OGLGeoECParameters
,OGLGeoElevationGrid
,OGLGeoLCCParameters
,OGLGeoLCE3DParameters
,OGLGeoLocalTangentParameters
,OGLGeoLocation
,OGLGeoLOD
,OGLGeoLSR3DParameters
,OGLGeoLTSEParameters
,OGLGeoMetadata
,OGLGeoMParameters
,OGLGeoObliqueMercatorParameters
,OGLGeoOrigin
,OGLGeoPositionInterpolator
,OGLGeoPSParameters
,OGLGeoReferenceSurfaceInfo
,OGLGeoSRFInstance
,OGLGeoSRFParametersInfo
,OGLGeoSRFSet
,OGLGeoSRFTemplate
,OGLGeoTMParameters
,OGLGeoTouchSensor
,OGLGeoTransform
,OGLGeoViewpoint
,OGLGravityPhysicsModel
,OGLGroup
,OGLHAnimDisplacer
,OGLHAnimHumanoid
,OGLHAnimJoint
,OGLHAnimSegment
,OGLHAnimSite
,OGLImageTexture
,OGLIndexedFaceSet
,OGLIndexedLineSet
,OGLIndexedQuadSet
,OGLIndexedTriangleFanSet
,OGLIndexedTriangleSet
,OGLIndexedTriangleStripSet
,OGLInline
,OGLIntegerSequencer
,OGLIntegerTrigger
,OGLJoystickSensor
,OGLKeySensor
,OGLLayer
,OGLLayerSet
,OGLLinePickSensor
,OGLLineProperties
,OGLLineSet
,OGLLoadSensor
,OGLLocalFog
,OGLLOD
,OGLMaterial
,OGLMatrixTransform
,OGLMetadataBoolean
,OGLMetadataDouble
,OGLMetadataFloat
,OGLMetadataInteger
,OGLMetadataSet
,OGLMetadataString
,OGLMidiSource
,OGLMotorJoint
,OGLMovieTexture
,OGLMultiTexture
,OGLMultiTextureCoordinate
,OGLMultiTextureTransform
,OGLNavigationInfo
,OGLNormal
,OGLNormalInterpolator
,OGLNurbsCurve
,OGLNurbsCurve2D
,OGLNurbsPatchSurface
,OGLNurbsTrimmedSurface
,OGLOrientationInterpolator
,OGLOrthoViewpoint
,OGLParticleSystem
,OGLPickableGroup
,OGLPixelTexture
,OGLPixelTexture3D
,OGLPlaneSensor
,OGLPointEmitter
,OGLPointLight
,OGLPointPickSensor
,OGLPointProperties
,OGLPointSet
,OGLPolyline2D
,OGLPolylineEmitter
,OGLPolypoint2D
,OGLPositionInterpolator
,OGLPositionInterpolator2D
,OGLPrimitivePickSensor
,OGLProportionalViewport
,OGLProximitySensor
,OGLQuadSet
,OGLRectangle2D
,OGLRenderedTexture
,OGLRigidBody
,OGLRigidBodyCollection
,OGLScalarInterpolator
,OGLScreenMarker
,OGLScript
,OGLShape
,OGLSingleAxisHingeJoint
,OGLSliderJoint
,OGLSound
,OGLSphere
,OGLSphereSensor
,OGLSpotLight
,OGLStaticGroup
,OGLStringSensor
,OGLSwitch
,OGLText
,OGLTextureBackground
,OGLTextureCoordinate
,OGLTextureCoordinate3D
,OGLTextureCoordinate4D
,OGLTextureCoordinateGenerator
,OGLTextureProperties
,OGLTextureTransform
,OGLTextureTransform3D
,OGLTimeController
,OGLTimeSensor
,OGLTimeTrigger
,OGLTouchSensor
,OGLTransform
,OGLTriangleFanSet
,OGLTriangleSet
,OGLTriangleSet2D
,OGLTriangleStripSet
,OGLTwoSidedMaterial
,OGLUniversalJoint
,OGLViewpoint
,OGLVisibilitySensor
,OGLVolumePickSensor
,OGLWheelSensor
,OGLWindPhysicsModel
,OGLWorldInfo
,OGLWorldRoot
,ProtoInstancePlaceHolder
,Sensor
,TextureTransformMatrix
,TransformMatrix
public interface VRMLNode
Base representation of any node in the VRML system.
Each node contains a collection of fields. Each field has a fixed index for all instances of this node. If a node is cloned in any way, the accompanying user data is not cloned with the node.
- Version:
- $Revision: 1.10 $
- Author:
- Justin Couch
-
Method Summary
Modifier and TypeMethodDescriptiongetFieldDeclaration
(int index) Get the declaration of the field at the given index.int
getFieldIndex
(String fieldName) Get the index of the given field name.int[]
Get the list of indices that correspond to fields that contain nodes i.e. MFNode and SFNode).int
Get the number of fields defined for this node.int
Get the primary type of this node.int[]
Get the secondary types of this node.getUserData
(int index) Fetch the stored user data for a given field index.Get the name of this node as a string.boolean
isDEF()
Check to see if this node has been DEFd.void
setErrorReporter
(org.j3d.util.ErrorReporter reporter) Register an error reporter with the engine so that any errors generated by the node's internals can be reported in a nice, pretty fashion.void
setUserData
(int index, Object data) Set arbitrary data for a given field.void
setVersion
(int major, int minor, boolean isStatic) Set the version of VRML that this node should represent.
-
Method Details
-
setErrorReporter
void setErrorReporter(org.j3d.util.ErrorReporter reporter) Register an error reporter with the engine so that any errors generated by the node's internals can be reported in a nice, pretty fashion. Setting a value of null will clear the currently set reporter. If one is already set, the new value replaces the old.- Parameters:
reporter
- The instance to use or null
-
getVRMLNodeName
-
isDEF
boolean isDEF()Check to see if this node has been DEFd. Returns true if it has and the user should ask for the shared representation rather than the normal one.- Returns:
- true if this node has been DEFd
-
getPrimaryType
int getPrimaryType()Get the primary type of this node. Replaces the instanceof mechanism for use in switch statements.- Returns:
- The primary type
-
getSecondaryType
int[] getSecondaryType()Get the secondary types of this node. Replaces the instanceof mechanism for use in switch statements. If there are no secondary types, it will return a zero-length array.- Returns:
- The secondary type
-
setVersion
void setVersion(int major, int minor, boolean isStatic) Set the version of VRML that this node should represent. Different versions have different capabilities, even within the same node.- Parameters:
major
- The major version number of this sceneminor
- The minor version number of this sceneisStatic
- true if this node is under a StaticGroup and won't change after the setup is finished
-
getFieldIndex
Get the index of the given field name. If the name does not exist for this node then return a value of -1.- Parameters:
fieldName
- The name of the field we want the index from- Returns:
- The index of the field name or -1
-
getNumFields
int getNumFields()Get the number of fields defined for this node.- Returns:
- The number of fields.
-
getNodeFieldIndices
int[] getNodeFieldIndices()Get the list of indices that correspond to fields that contain nodes i.e. MFNode and SFNode). Used for blind scene graph traversal without needing to spend time querying for all fields etc. If a node does not have any fields that contain nodes, this shall return null. The field list covers all field types, regardless of whether they are readable or not at the VRML-level.- Returns:
- The list of field indices that correspond to SF/MFnode fields or null if none
-
getFieldDeclaration
Get the declaration of the field at the given index. This allows for reverse lookup if needed. If the field does not exist, this will give a value of null.- Parameters:
index
- The index of the field to get information- Returns:
- A representation of this field's information
-
setUserData
Set arbitrary data for a given field. Provided primarily to help the EAI fulfill its requirements, but may be useful elsewhere.- Parameters:
index
- The index of destination field to setdata
- The item to store for the field- Throws:
InvalidFieldException
- The field index is not known
-
getUserData
Fetch the stored user data for a given field index. If nothing is registered, null is returned.- Parameters:
index
- The index of destination field to set- Returns:
- The item stored for the field or null
- Throws:
InvalidFieldException
- The field index is not known
-