Class NRTextureBackground
java.lang.Object
org.web3d.vrml.renderer.common.nodes.AbstractNode
org.web3d.vrml.renderer.common.nodes.BaseBindableNode
org.web3d.vrml.renderer.common.nodes.enveffects.BaseTextureBackground
org.web3d.vrml.renderer.norender.nodes.enveffects.NRTextureBackground
- All Implemented Interfaces:
VRMLNode
,FrameStateListener
,VRMLBackgroundNodeType
,VRMLBindableNodeType
,VRMLChildNodeType
,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.2 $
- Author:
- Alan Hidson
-
Field Summary
Fields inherited from class org.web3d.vrml.renderer.common.nodes.enveffects.BaseTextureBackground
BACK, BOTTOM, EMPTY_LIST, FIELD_BACK_TEXTURE, FIELD_BOTTOM_TEXTURE, FIELD_FRONT_TEXTURE, FIELD_GROUND_ANGLE, FIELD_GROUND_COLOR, FIELD_LEFT_TEXTURE, FIELD_RIGHT_TEXTURE, FIELD_SKY_ANGLE, FIELD_SKY_COLOR, FIELD_TOP_TEXTURE, FIELD_TRANSPARENCY, FRONT, GROUND_SPHERE, LAST_BACKGROUND_INDEX, LEFT, NUM_BG_OBJECTS, NUM_FIELDS, numGroundAngle, numGroundColor, numSkyAngle, numSkyColor, RIGHT, SKY_SPHERE, TOP, vfBackTexture, vfBottomTexture, vfFrontTexture, vfGroundAngle, vfGroundColor, vfLeftTexture, vfRightTexture, vfSkyAngle, vfSkyColor, vfTopTexture, vfTransparency
Fields inherited from class org.web3d.vrml.renderer.common.nodes.BaseBindableNode
FIELD_BIND, FIELD_BIND_TIME, FIELD_IS_BOUND, isOnStack, LAST_BINDABLE_INDEX, vfBindTime, vfIsBound
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 new, default instance of this class.Construct a new instance of this node based on the details from the given node. -
Method Summary
Modifier and TypeMethodDescriptionvoid
setContent
(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.BaseTextureBackground
getFieldDeclaration, getFieldIndex, getFieldValue, getGroundValues, getNodeFieldIndices, getNumFields, getNumGroundColors, getNumSkyColors, getPrimaryType, getSecondaryType, getSkyValues, getTransparency, sendRoute, setTransparency, setValue, setValue, setValue, setValue
Methods inherited from class org.web3d.vrml.renderer.common.nodes.BaseBindableNode
addBindableNodeListener, copy, fireIsBoundChanged, getBindTime, getIsBound, removeBindableNodeListener, setBind, setOnStack, setValue, setVRMLClock
Methods 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, setupFinished, setUserData, 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.nodes.VRMLBindableNodeType
addBindableNodeListener, getBindTime, getIsBound, removeBindableNodeListener, setBind, setOnStack
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
-
NRTextureBackground
public NRTextureBackground()Create a new, default instance of this class. -
NRTextureBackground
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.- Parameters:
index
-mimetype
- The mime type of this object if knowncontent
- The content of the object- Throws:
IllegalArgumentException
- The content object is not supported
-