Class dnx.lr.node.InlineNode
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class dnx.lr.node.InlineNode

java.lang.Object
   |
   +----dnx.util.DNXObject
           |
           +----dnx.lr.Node
                   |
                   +----dnx.lr.GroupingNode
                           |
                           +----dnx.lr.node.InlineNode

public class InlineNode
extends GroupingNode
implements DNXObserver
 Inline {
    exposedField MFString     url             []
    field        SFVec3f      bboxCenter      0 0 0
    field        SFVec3f      bboxSize        -1 -1 -1
 }

The Inline node is a grouping node that reads its children data from a location in the World Wide Web. Exactly when its children are read and displayed is not defined; reading the children may be delayed until the Inline is actually visible to the viewer. The url field specifies the URL containing the children. An Inline with an empty URL does nothing.

An Inline's URLs shall refer to a valid VRML file that contains a list of children nodes at the top level. See "Concepts - Grouping and Children Nodes". The results are undefined if the URL refers to a file that is not VRML or if the file contains non-children nodes at the top level.

If multiple URLs are specified, the browser may display a URL of a lower preference file while it is obtaining, or if it is unable to obtain the higher preference file. See "Concepts - URLS and URNs" for details on the url field and preference order.

The bboxCenter and bboxSize fields specify a bounding box that encloses the Inlines's children. This is a hint that may be used for optimization purposes. If the specified bounding box is smaller than the actual bounding box of the children at any time, then the results are undefined. A default bboxSize value, (-1 -1 -1), implies that the bounding box is not specified and if needed must be calculated by the browser. See "Concepts - Bounding Boxes" for a description of the bboxCenter and bboxSize fields.


Variable Index

 o bboxCenter
 o bboxSize
 o url

Constructor Index

 o InlineNode()

Method Index

 o boundingBoxHasChanged(Field)
Meant to be overridden by subclasses.
 o createNodeDefinition(NodeDefinition)
Create the node definition.
 o getChildren()
 o handleAddToScene()
The handleAddToScene method is called when a node has just been added to a scene.
 o handleFieldChange(Field)
Handle a field change.
 o initFields()
Initialize field values.
 o recomputeBoundingBox(BoundingBox3)
Meant to be overridden by subclasses; compute the bounding box and store into the argument.
 o update(DNXObservable, Object)

Variables

 o url
  public MFString url
 o bboxCenter
  public SFVec3f bboxCenter
 o bboxSize
  public SFVec3f bboxSize

Constructors

 o InlineNode
  public InlineNode()

Methods

 o createNodeDefinition
  protected void createNodeDefinition(NodeDefinition def)
Create the node definition.
Overrides:
createNodeDefinition in class Node
 o initFields
  protected void initFields()
Initialize field values.
Overrides:
initFields in class Node
 o getChildren
  public MFNode getChildren()
Overrides:
getChildren in class GroupingNode
 o handleAddToScene
  protected void handleAddToScene()
The handleAddToScene method is called when a node has just been added to a scene.
Overrides:
handleAddToScene in class Node
 o handleFieldChange
  protected void handleFieldChange(Field f)
Handle a field change.
Overrides:
handleFieldChange in class GroupingNode
 o recomputeBoundingBox
  public void recomputeBoundingBox(BoundingBox3 box)
Meant to be overridden by subclasses; compute the bounding box and store into the argument.
Overrides:
recomputeBoundingBox in class Node
 o boundingBoxHasChanged
  protected boolean boundingBoxHasChanged(Field f)
Meant to be overridden by subclasses.
Overrides:
boundingBoxHasChanged in class Node
 o update
  public void update(DNXObservable o,
                     Object arg)

All Packages  Class Hierarchy  This Package  Previous  Next  Index