Class NRInline
java.lang.Object
org.web3d.vrml.renderer.common.nodes.AbstractNode
org.web3d.vrml.renderer.common.nodes.networking.BaseInline
org.web3d.vrml.renderer.norender.nodes.networking.NRInline
- All Implemented Interfaces:
VRMLExecutionSpace
,VRMLNode
,FrameStateListener
,VRMLBoundedNodeType
,VRMLChildNodeType
,VRMLExternalNodeType
,VRMLInlineNodeType
,VRMLNodeType
,VRMLSingleExternalNodeType
,VRMLWorldRootChildNodeType
,NRVRMLNode
A node that can handle inlined content from other VRML worlds.
This implementation does not care whether the source world came from a UTF8 or XML encoded file.
While the node is awaiting content to be downloaded, it will put a wireframe box around the suggested bounds of the content. If no bounds are set then a 1x1x1 box is placed at the local origin. If the URL given is null, then the outline box will not be shown.
TODO:
- Implement a scheme to allow the updating of the contents at runtime when
the URL changes. It currently removes the old content, but does not
inform any ContentLoadManager to fetch it's new values.
- Version:
- $Revision: 1.2 $
- Author:
- Justin Couch
-
Field Summary
Fields inherited from class org.web3d.vrml.renderer.common.nodes.networking.BaseInline
FIELD_BBOX_CENTER, FIELD_BBOX_DISPLAY, FIELD_BBOX_SIZE, FIELD_LOAD, FIELD_URL, FIELD_VISIBLE, fieldDecl, fieldMap, LAST_INLINE_INDEX, loadedURI, loadState, scene, urlRelativeCheck, vfBboxCenter, vfBboxDisplay, vfBboxSize, vfLoad, vfUrl, vfVisible, worldURL
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
Fields inherited from interface org.web3d.vrml.nodes.VRMLExternalNodeType
LOAD_COMPLETE, LOAD_FAILED, LOADING, NOT_LOADED
-
Constructor Summary
ConstructorsConstructorDescriptionNRInline()
Create a new, default instance of this class.NRInline
(VRMLNodeType node) Construct a new instance of this node based on the details from the given node. -
Method Summary
Methods inherited from class org.web3d.vrml.renderer.common.nodes.networking.BaseInline
addContentStateListener, addUrlListener, checkValidContentType, fireContentStateChanged, fireUrlChanged, getBboxCenter, getBboxDisplay, getBboxSize, getContainedScene, getFieldDeclaration, getFieldIndex, getFieldValue, getLoadState, getNodeFieldIndices, getNumFields, getParentSpace, getPrimaryType, getSecondaryType, getUrl, getVisible, getWorldUrl, isShared, removeContentStateListener, removeUrlListener, sendRoute, setBboxCenter, setBboxDisplay, setBboxSize, setContent, setErrorReporter, setImportNodes, setLoad, setLoadedURI, setLoadState, setParentSpace, setShared, setupFinished, setUrl, setValue, setValue, setValue, setVisible, setWorldUrl
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, setFrameStateManager, setMetadataObject, setUserData, 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.nodes.VRMLBoundedNodeType
getBboxCenter, getBboxDisplay, getBboxSize, getVisible, isShared, setBboxCenter, setBboxDisplay, setBboxSize, setShared, setVisible
Methods inherited from interface org.web3d.vrml.lang.VRMLExecutionSpace
getContainedScene
Methods inherited from interface org.web3d.vrml.nodes.VRMLExternalNodeType
addContentStateListener, addUrlListener, getWorldUrl, removeContentStateListener, removeUrlListener, setWorldUrl
Methods inherited from interface org.web3d.vrml.nodes.VRMLInlineNodeType
getParentSpace, setImportNodes, setParentSpace
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
Methods inherited from interface org.web3d.vrml.nodes.VRMLSingleExternalNodeType
checkValidContentType, getLoadState, getUrl, setContent, setLoadedURI, setLoadState, setUrl
-
Constructor Details
-
NRInline
public NRInline()Create a new, default instance of this class. -
NRInline
Construct a new instance of this node based on the details from the given node. If the node is not the same type, an exception will be thrown.- Parameters:
node
- The node to copy- Throws:
IllegalArgumentException
- Incorrect Node Type
-