NASA World Wind

gov.nasa.worldwind.ogc.collada
Class ColladaVisualScene

java.lang.Object
  extended by gov.nasa.worldwind.util.xml.AbstractXMLEventParser
      extended by gov.nasa.worldwind.ogc.collada.ColladaAbstractObject
          extended by gov.nasa.worldwind.ogc.collada.ColladaVisualScene
All Implemented Interfaces:
ColladaRenderable, XMLEventParser

public class ColladaVisualScene
extends ColladaAbstractObject
implements ColladaRenderable

Represents the COLLADA visual_scene element and provides access to its contents.


Field Summary
protected  List<ColladaNode> nodes
          Nodes in this scene.
 
Fields inherited from class gov.nasa.worldwind.util.xml.AbstractXMLEventParser
CHARACTERS_CONTENT, fields, namespaceURI, parent
 
Constructor Summary
ColladaVisualScene(String ns)
          Construct an instance.
 
Method Summary
 Box getLocalExtent(ColladaTraversalContext tc)
          Returns this renderable's model coordinate extent.
 List<ColladaNode> getNodes()
          Indicates the nodes in the scene.
 void preRender(ColladaTraversalContext tc, DrawContext dc)
          Pre-Render this element.
 void render(ColladaTraversalContext tc, DrawContext dc)
          Render this element.
 void setField(String keyName, Object value)
          
 
Methods inherited from class gov.nasa.worldwind.ogc.collada.ColladaAbstractObject
getRoot
 
Methods inherited from class gov.nasa.worldwind.util.xml.AbstractXMLEventParser
allocate, doAddCharacters, doAddEventAttribute, doAddEventContent, doParseEventAttributes, doParseEventContent, freeResources, getAConstructor, getCharacters, getField, getField, getFields, getNamespaceURI, getParent, hasField, hasField, hasFields, mergeFields, newInstance, overrideFields, parse, parseCharacterContent, removeField, setField, setFields, setParent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

nodes

protected List<ColladaNode> nodes
Nodes in this scene.

Constructor Detail

ColladaVisualScene

public ColladaVisualScene(String ns)
Construct an instance.

Parameters:
ns - the qualifying namespace URI. May be null to indicate no namespace qualification.
Method Detail

getLocalExtent

public Box getLocalExtent(ColladaTraversalContext tc)
Description copied from class: ColladaAbstractObject
Returns this renderable's model coordinate extent.

Specified by:
getLocalExtent in interface ColladaRenderable
Overrides:
getLocalExtent in class ColladaAbstractObject
Parameters:
tc - The traversal context to use when determining the extent.
Returns:
The model coordinate extent.

getNodes

public List<ColladaNode> getNodes()
Indicates the nodes in the scene.

Returns:
List of nodes. May return an empty list, but never returns null.

preRender

public void preRender(ColladaTraversalContext tc,
                      DrawContext dc)
Pre-Render this element. Renders all nodes in this scene.

Specified by:
preRender in interface ColladaRenderable
Parameters:
tc - the current COLLADA traversal context.
dc - the current draw context.

render

public void render(ColladaTraversalContext tc,
                   DrawContext dc)
Render this element. Renders all nodes in this scene.

Specified by:
render in interface ColladaRenderable
Parameters:
tc - the current COLLADA traversal context.
dc - the current draw context.

setField

public void setField(String keyName,
                     Object value)

Overrides:
setField in class AbstractXMLEventParser

NASA World Wind