NASA World Wind

gov.nasa.worldwind.ogc.collada
Class ColladaScene

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.ColladaScene
All Implemented Interfaces:
ColladaRenderable, XMLEventParser

public class ColladaScene
extends ColladaAbstractObject
implements ColladaRenderable

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


Field Summary
protected  ColladaInstanceVisualScene instanceVisualScene
          Cached value of the instance_visual_scene field.
protected  boolean sceneFetched
          Flag to indicate that the scene has been fetched from the hash map.
 
Fields inherited from class gov.nasa.worldwind.util.xml.AbstractXMLEventParser
CHARACTERS_CONTENT, fields, namespaceURI, parent
 
Constructor Summary
ColladaScene(String ns)
          Construct an instance.
 
Method Summary
protected  ColladaInstanceVisualScene getInstanceVisualScene()
          Indicates the value of the instance_visual_scene field.
 Box getLocalExtent(ColladaTraversalContext tc)
          Returns this renderable's model coordinate extent.
 void preRender(ColladaTraversalContext tc, DrawContext dc)
          Pre-Render this element.
 void render(ColladaTraversalContext tc, DrawContext dc)
          Render this element.
 
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, setField, setFields, setParent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

instanceVisualScene

protected ColladaInstanceVisualScene instanceVisualScene
Cached value of the instance_visual_scene field.


sceneFetched

protected boolean sceneFetched
Flag to indicate that the scene has been fetched from the hash map.

Constructor Detail

ColladaScene

public ColladaScene(String ns)
Construct an instance.

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

getInstanceVisualScene

protected ColladaInstanceVisualScene getInstanceVisualScene()
Indicates the value of the instance_visual_scene field.

Returns:
The value of the instance_visual_scene field, or null if the field is not set.

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.

preRender

public void preRender(ColladaTraversalContext tc,
                      DrawContext dc)
Pre-Render this element.

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.

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

NASA World Wind