Package gov.nasa.worldwind.ogc.collada
Class ColladaScene
- java.lang.Object
-
- gov.nasa.worldwind.util.xml.AbstractXMLEventParser
-
- gov.nasa.worldwind.ogc.collada.ColladaAbstractObject
-
- 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
Fields Modifier and Type Field Description protected ColladaInstanceVisualSceneinstanceVisualSceneCached value of the instance_visual_scene field.protected booleansceneFetchedFlag 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
Constructors Constructor Description ColladaScene(java.lang.String ns)Construct an instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected ColladaInstanceVisualScenegetInstanceVisualScene()Indicates the value of the instance_visual_scene field.BoxgetLocalExtent(ColladaTraversalContext tc)Returns this renderable's model coordinate extent.voidpreRender(ColladaTraversalContext tc, DrawContext dc)Pre-Render this element.voidrender(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, setNamespaceURI, setParent
-
-
-
-
Field Detail
-
sceneFetched
protected boolean sceneFetched
Flag to indicate that the scene has been fetched from the hash map.
-
instanceVisualScene
protected ColladaInstanceVisualScene instanceVisualScene
Cached value of the instance_visual_scene field.
-
-
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:ColladaAbstractObjectReturns this renderable's model coordinate extent.- Specified by:
getLocalExtentin interfaceColladaRenderable- Overrides:
getLocalExtentin classColladaAbstractObject- 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:
preRenderin interfaceColladaRenderable- 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:
renderin interfaceColladaRenderable- Parameters:
tc- the current COLLADA traversal context.dc- the current draw context.
-
-