Class BaseGeometricPropertyNode
java.lang.Object
org.web3d.vrml.renderer.common.nodes.AbstractNode
org.web3d.vrml.renderer.common.nodes.BaseGeometricPropertyNode
- All Implemented Interfaces:
VRMLNode
,FrameStateListener
,VRMLGeometricPropertyNodeType
,VRMLNodeType
- Direct Known Subclasses:
BaseColor
,BaseColorRGBA
,BaseCoordinate
,BaseFogCoordinate
,BaseGeoCoordinate
,BaseHAnimDisplacer
,BaseMultiTextureCoordinate
,BaseNormal
,BaseTextureCoordinate
,BaseTextureCoordinate3D
,BaseTextureCoordinate4D
,BaseTextureCoordinateGenerator
public abstract class BaseGeometricPropertyNode
extends AbstractNode
implements VRMLGeometricPropertyNodeType
An abstract implementation of any form geometric property node type.
This implementation provides a number of the basic necessities when building node information. This class does not define any extra fields over the standard base node type.
- Version:
- $Revision: 1.5 $
- Author:
- Justin Couch
-
Field Summary
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
ConstructorsConstructorDescriptionCreate a default instance of this class with an empty listener list and the solid field set to false. -
Method Summary
Modifier and TypeMethodDescriptionvoid
Add a listener for geometry changed events.protected void
fireComponentChanged
(int index) Fire a coordinate change event to the listeners.void
Remove a listener for geometry changed events.Methods inherited from class org.web3d.vrml.renderer.common.nodes.AbstractNode
addNodeListener, allEventsComplete, checkNodeType, checkSecondaryType, checkSecondaryType, clearRemovedLayerIds, fireFieldChanged, getFieldValue, getLayerIds, getMetadataObject, getRefCount, getRemovedLayerIds, getSecondaryType, getUserData, getVRMLNodeName, hasFieldChanged, isDEF, isSetupFinished, notifyExternProtoLoaded, removeNodeListener, sendRoute, setDEF, setErrorReporter, setFrameStateManager, setMetadataObject, setupFinished, setUserData, setValue, setValue, setValue, 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, setupFinished, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, updateRefCount
-
Constructor Details
-
BaseGeometricPropertyNode
Create a default instance of this class with an empty listener list and the solid field set to false.- Parameters:
name
- The name of the type of node
-
-
Method Details
-
addComponentListener
Add a listener for geometry changed events. If the listener is null or already registered it will silently ignore the requests.- Specified by:
addComponentListener
in interfaceVRMLGeometricPropertyNodeType
- Parameters:
l
- The listener to add
-
removeComponentListener
Remove a listener for geometry changed events. If the listener is null or has not been registered it will silently ignore the requests.- Specified by:
removeComponentListener
in interfaceVRMLGeometricPropertyNodeType
- Parameters:
l
- The listener to remove
-
fireComponentChanged
protected void fireComponentChanged(int index) Fire a coordinate change event to the listeners. When calling the listeners, it is assumed this node has changed.- Parameters:
index
- The field index that has changed
-