Class NRShape
java.lang.Object
org.web3d.vrml.renderer.common.nodes.AbstractNode
org.web3d.vrml.renderer.common.nodes.shape.BaseShape
org.web3d.vrml.renderer.norender.nodes.shape.NRShape
- All Implemented Interfaces:
VRMLNode,FrameStateListener,LocalColorsListener,VRMLBoundedNodeType,VRMLChildNodeType,VRMLNodeType,VRMLShapeNodeType,VRMLWorldRootChildNodeType,NRVRMLNode
Null renderer implementation of a shape node.
- Version:
- $Revision: 1.4 $
- Author:
- Alan Hudson
-
Field Summary
Fields inherited from class org.web3d.vrml.renderer.common.nodes.shape.BaseShape
APPEARANCE_NODE_MSG, APPEARANCE_PROTO_MSG, DEFAULT_FORCE_LIGHTING, FIELD_APPEARANCE, FIELD_GEOMETRY, FORCE_LIGHTING_PROP, forceLighting, GEOMETRY_NODE_MSG, GEOMETRY_PROTO_MSG, LAST_SHAPE_INDEX, NUM_FIELDS, pAppearance, pGeometry, shareCount, vfAppearance, vfBboxCenter, vfBboxDisplay, vfBboxSize, vfCastShadow, vfGeometry, vfVisibleFields 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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidsetAppearance(VRMLNodeType newAppearance) Set node content as replacement forappearance.voidsetGeometry(VRMLNodeType newGeometry) Set node content as replacement forgeometry.Methods inherited from class org.web3d.vrml.renderer.common.nodes.shape.BaseShape
getAppearance, getBboxCenter, getBboxDisplay, getBboxSize, getCastShadow, getFieldDeclaration, getFieldIndex, getFieldValue, getGeometry, getNodeFieldIndices, getNumFields, getPrimaryType, getSecondaryType, getVisible, isShared, localColorsChanged, sendRoute, setBboxCenter, setBboxDisplay, setBboxSize, setCastShadow, setShared, setupFinished, setValue, setValue, setValue, setVisibleMethods inherited from class org.web3d.vrml.renderer.common.nodes.AbstractNode
addNodeListener, allEventsComplete, checkNodeType, checkSecondaryType, checkSecondaryType, clearRemovedLayerIds, fireFieldChanged, getLayerIds, getMetadataObject, getRefCount, getRemovedLayerIds, 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, 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, updateRefCount
-
Constructor Details
-
NRShape
public NRShape()Construct a new default shape node implementation. -
NRShape
Construct a new instance of this node based on the details from the given node. If the node is not a Shape node, an exception will be thrown.- Parameters:
node- The node to copy- Throws:
IllegalArgumentException- Incorrect node type
-
-
Method Details
-
setAppearance
Set node content as replacement forappearance.- Specified by:
setAppearancein interfaceVRMLShapeNodeType- Overrides:
setAppearancein classBaseShape- Parameters:
newAppearance- The new appearance. null will act like delete- Throws:
InvalidFieldValueException- The node does not match the required type.
-
setGeometry
Set node content as replacement forgeometry.- Specified by:
setGeometryin interfaceVRMLShapeNodeType- Overrides:
setGeometryin classBaseShape- Parameters:
newGeometry- The new value for geometry. Null will act like delete- Throws:
InvalidFieldValueException- The node does not match the required type.
-