Package | Description |
---|---|
vona.dae.util |
COLLADA 1.5.0 import/export utilities.
|
Modifier and Type | Field and Description |
---|---|
DAEObject |
DAEObject.parent
Reference to the parent of this object in the COLLADA document, if
any.
|
Modifier and Type | Field and Description |
---|---|
protected java.util.Map<java.lang.String,DAEObject> |
DAEObject.idIndex
Index mapping XML ID to the corresponding element.
|
Modifier and Type | Method and Description |
---|---|
DAEObject |
DAEObject.dereferenceInstance()
If
isInstanceRef() , try to resolve the referenced entity. |
DAEObject |
DAEObject.getDAERoot()
Get the root element of the enclosing COLLADA document by following
parent pointers. |
DAEObject |
DAEObject.getScopedChild(java.lang.String sid)
Look for a child element of this DAE object which has an attribute
named "sid" whose value matches the passed sid.
|
DAEObject |
DAEObject.resolveIDRef(java.lang.String idref)
Resolve an XML IDREF within the enclosing COLLADA document.
|
DAEObject |
DAEObject.resolveSidRef(java.lang.String sidref)
Resolve sidref globally in the enclosing COLLADA document.
|
DAEObject |
DAEObject.resolveSidRefFromHere(java.lang.String sidref)
resolveSidRefFromHere(String, int) , always process all
segments. |
DAEObject |
DAEObject.resolveSidRefFromHere(java.lang.String sidref,
int maxSegments)
Walk down the DAE element tree using
getScopedChild(java.lang.String) , resolving
sidref as if its first path element corresponded to this
element. |
Modifier and Type | Method and Description |
---|---|
java.util.List<DAEObject> |
DAEObject.getDAEChildElements()
Get a list of all XML child elements.
|
Modifier and Type | Method and Description |
---|---|
vona.dae.jaxb.dae.FxCommonColorOrTextureType |
DAEUtils.consDAEFXColor(float r,
float g,
float b,
DAEObject parent)
cons a new DAE FX color entity
|
vona.dae.jaxb.dae.FxCommonFloatOrParamType |
DAEUtils.consDAEFXFloat(float o,
DAEObject parent)
cons a new DAE FX float entity
|
JOGLGeometry |
DAEUtils.daePrimsToJOGLGeometry(DAEObject prims)
Convert a DAE geometric primitives object (e.g.
|
protected void |
DAEUtils.dbg(java.lang.String msg,
DAEObject context)
|
protected void |
DAEUtils.error(java.lang.String msg,
DAEObject context)
|
vona.dae.jaxb.dae.FxCommonColorOrTextureType |
DAEUtils.j3dColorToDAEFX(javax.vecmath.Color3f c,
DAEObject parent)
Convert a Java3D color to DAE FX via
DAEUtils.consDAEFXColor(float,
float, float, DAEObject) . |
vona.dae.jaxb.dae.MeshType |
DAEUtils.joglGeometryToDAEMesh(JOGLGeometry geometry,
RX rx,
DAEObject context)
Convert a
JOGLGeometry into a corresponding COLLADA "mesh". |
protected void |
DAEUtils.message(java.lang.String msg,
DAEObject context,
int level)
Either throw an IllegalArgumentException, if level is
DAEUtils.MSG_ERROR and DAEUtils.strict , or emit a message on DAEUtils.msgStream ,
if any, and if level <= DAEUtils.msgLevel . |
java.lang.String |
DAEUtils.nextUID(java.lang.String base,
DAEObject context)
Find the
DAEUtils.nextUID(String) that is unique int the COLLADA
document containing context. |
DAEUtils.FloatBlockAccessor |
DAEUtils.resolveDAEFloatSource(java.lang.String ref,
int b,
DAEObject context)
Attempt to resolve a reference to a "source" (from an "input").
|
javax.vecmath.Color3f |
DAEUtils.resolveDAEFXColor(DAEObject obj,
java.lang.String fieldName)
|
java.lang.Float |
DAEUtils.resolveDAEFXFloat(DAEObject obj,
java.lang.String fieldName)
Similar to
DAEUtils.resolveDAEFXColor(DAEObject, String) . |
protected void |
DAEUtils.warning(java.lang.String msg,
DAEObject context)
|
Modifier and Type | Method and Description |
---|---|
DAEUtils.RXAndScale |
DAEUtils.daeTransformsToRXAndScale(java.util.List<? extends DAEObject> transforms)
Distill a sequence of DAE transform entities into a single equivalent
RX and scale factor. |
protected int |
DAEObject.reIndexIDs(java.util.Map<java.lang.String,DAEObject> index)
recursive impl of
reIndexIDs() |
DAEUtils.DAERigidTransform |
DAEUtils.rxToDAERigidTransform(RX rx,
java.util.List<DAEObject> rotatesAndTranslates)
DAEUtils.rxToDAERigidTransform(RX) , then add the generated DAE "rotate"
and "translate" to rotatesAndTranslates. |