|
NASA World Wind | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectgov.nasa.worldwind.util.xml.AbstractXMLEventParser
gov.nasa.worldwind.ogc.collada.ColladaAbstractObject
gov.nasa.worldwind.ogc.collada.ColladaNode
public class ColladaNode
Represents the COLLADA node element and provides access to its contents.
| Field Summary | |
|---|---|
protected List<ColladaRenderable> |
children
Children of this node. |
protected List<ColladaInstanceGeometry> |
geometries
Geometries defined in this node. |
protected Matrix |
matrix
Transform matrix for this node. |
protected List<ColladaMeshShape> |
shapes
Shape used to render geometry in this node. |
| Fields inherited from class gov.nasa.worldwind.util.xml.AbstractXMLEventParser |
|---|
CHARACTERS_CONTENT, fields, namespaceURI, parent |
| Constructor Summary | |
|---|---|
ColladaNode(String ns)
Construct an instance. |
|
| Method Summary | |
|---|---|
protected List<ColladaMeshShape> |
createShapes()
Create shapes to render this node. |
protected void |
createShapesForGeometry(ColladaInstanceGeometry geomInstance,
List<ColladaMeshShape> shapes)
Create shapes for a geometry. |
protected List<ColladaRenderable> |
getChildren()
Indicates the children of this node. |
Box |
getLocalExtent(ColladaTraversalContext tc)
Returns this renderable's model coordinate extent. |
protected Matrix |
getMatrix()
Indicates the transform matrix specified in this node. |
protected double[] |
parseDoubleArray(String doubleArrayString)
Parse a string of doubles into a double[]. |
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 |
|---|
protected List<ColladaRenderable> children
protected List<ColladaInstanceGeometry> geometries
protected Matrix matrix
protected List<ColladaMeshShape> shapes
| Constructor Detail |
|---|
public ColladaNode(String ns)
ns - the qualifying namespace URI. May be null to indicate no namespace qualification.| Method Detail |
|---|
protected List<ColladaMeshShape> createShapes()
protected void createShapesForGeometry(ColladaInstanceGeometry geomInstance,
List<ColladaMeshShape> shapes)
geomInstance - Geometry for which to create shapes.shapes - List to collect the new shapes.protected List<ColladaRenderable> getChildren()
public Box getLocalExtent(ColladaTraversalContext tc)
ColladaAbstractObject
getLocalExtent in interface ColladaRenderablegetLocalExtent in class ColladaAbstractObjecttc - The traversal context to use when determining the extent.
protected Matrix getMatrix()
protected double[] parseDoubleArray(String doubleArrayString)
doubleArrayString - String of doubles, separated by whitespace.
public void preRender(ColladaTraversalContext tc,
DrawContext dc)
preRender in interface ColladaRenderabletc - the current COLLADA traversal context.dc - the current draw context.
public void render(ColladaTraversalContext tc,
DrawContext dc)
render in interface ColladaRenderabletc - the current COLLADA traversal context.dc - the current draw context.
public void setField(String keyName,
Object value)
setField in class AbstractXMLEventParser
|
NASA World Wind | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||