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 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
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 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, 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:ColladaAbstractObject
Returns this renderable's model coordinate extent.- Specified by:
getLocalExtent
in interfaceColladaRenderable
- Overrides:
getLocalExtent
in 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:
preRender
in 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:
render
in interfaceColladaRenderable
- Parameters:
tc
- the current COLLADA traversal context.dc
- the current draw context.
-
-