Class NRBackground
java.lang.Object
org.web3d.vrml.renderer.common.nodes.AbstractNode
org.web3d.vrml.renderer.common.nodes.BaseBindableNode
org.web3d.vrml.renderer.common.nodes.enveffects.BaseBackground
org.web3d.vrml.renderer.norender.nodes.enveffects.NRBackground
- All Implemented Interfaces:
VRMLNode,FrameStateListener,VRMLBackgroundNodeType,VRMLBindableNodeType,VRMLChildNodeType,VRMLExternalNodeType,VRMLMultiExternalNodeType,VRMLNodeType,VRMLTimeDependentNodeType,VRMLWorldRootChildNodeType,NRVRMLNode
A node that can represents a VRML Background node.
A background node in VRML is quite different to the Java3D background. It is represented by a 6 sided box inside a sphere at a nominal infinite distance. Each side of the box may have a different image on it.
- Version:
- $Revision: 1.3 $
- Author:
- Justin Couch
-
Field Summary
Fields inherited from class org.web3d.vrml.renderer.common.nodes.enveffects.BaseBackground
BACK, BOTTOM, EMPTY_LIST, FIELD_BACK_URL, FIELD_BOTTOM_URL, FIELD_FRONT_URL, FIELD_GROUND_ANGLE, FIELD_GROUND_COLOR, FIELD_LEFT_URL, FIELD_RIGHT_URL, FIELD_SKY_ANGLE, FIELD_SKY_COLOR, FIELD_TOP_URL, FIELD_TRANSPARENCY, FRONT, GROUND_SPHERE, isVersionPost_3_2, LAST_BACKGROUND_INDEX, LEFT, loadedUri, loadState, NUM_BG_OBJECTS, NUM_FIELDS, numGroundAngle, numGroundColor, numSkyAngle, numSkyColor, RIGHT, SKY_SPHERE, TOP, urlFieldIndexList, urlRelativeCheck, vfBackUrl, vfBottomUrl, vfFrontUrl, vfGroundAngle, vfGroundColor, vfLeftUrl, vfRightUrl, vfSkyAngle, vfSkyColor, vfTopUrl, vfTransparency, worldURLFields inherited from class org.web3d.vrml.renderer.common.nodes.BaseBindableNode
FIELD_BIND, FIELD_BIND_TIME, FIELD_IS_BOUND, isOnStack, LAST_BINDABLE_INDEX, vfBindTime, vfIsBoundFields 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, vrmlMinorVersionFields inherited from interface org.web3d.vrml.nodes.VRMLExternalNodeType
LOAD_COMPLETE, LOAD_FAILED, LOADING, NOT_LOADED -
Constructor Summary
ConstructorsConstructorDescriptionCreate a new, default instance of this class.NRBackground(VRMLNodeType node) Construct a new instance of this node based on the details from the given node. -
Method Summary
Modifier and TypeMethodDescriptionvoidsetContent(int index, String mimetype, Object content) Set the content of this node to the given object.Methods inherited from class org.web3d.vrml.renderer.common.nodes.enveffects.BaseBackground
addContentStateListener, addUrlListener, checkValidContentType, fireContentStateChanged, fireUrlChanged, getFieldDeclaration, getFieldIndex, getFieldValue, getGroundValues, getLoadState, getNodeFieldIndices, getNumFields, getNumGroundColors, getNumSkyColors, getPreferredClassTypes, getPrimaryType, getSecondaryType, getSkyValues, getTransparency, getUrl, getUrlFieldIndexes, getWorldUrl, removeContentStateListener, removeUrlListener, sendRoute, setLoadedURI, setLoadState, setTransparency, setupFinished, setValue, setValue, setValue, setVersion, setWorldUrlMethods inherited from class org.web3d.vrml.renderer.common.nodes.BaseBindableNode
addBindableNodeListener, copy, fireIsBoundChanged, getBindTime, getIsBound, removeBindableNodeListener, setBind, setOnStack, setValue, setVRMLClockMethods 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, 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.nodes.VRMLBindableNodeType
addBindableNodeListener, getBindTime, getIsBound, removeBindableNodeListener, setBind, setOnStackMethods 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
-
NRBackground
public NRBackground()Create a new, default instance of this class. -
NRBackground
Construct a new instance of this node based on the details from the given node.- Parameters:
node- The node to copy- Throws:
IllegalArgumentException- The node is not the right type.
-
-
Method Details
-
setContent
Set the content of this node to the given object. The object is then cast by the internal representation to the form it needs. This should be one of the forms that the preferred class type call generates.- Specified by:
setContentin interfaceVRMLMultiExternalNodeType- Parameters:
index-mimetype- The mime type of this object if knowncontent- The content of the object- Throws:
IllegalArgumentException- The content object is not supported
-