| Package | alternativa.engine3d.loaders |
| Class | public class ParserCollada |
| Property | Defined by | ||
|---|---|---|---|
| animations : Vector List of animations.
| ParserCollada | ||
| hierarchy : Vector List of root objects.
| ParserCollada | ||
| materials : Vector List of materials.
| ParserCollada | ||
| objects : Vector List of objects.
| ParserCollada | ||
| parents : Vector List of objects parents.
| ParserCollada | ||
| textureMaterials : Vector List of texture materials.
| ParserCollada | ||
| Method | Defined by | ||
|---|---|---|---|
|
Creates a new instance.
| ParserCollada | ||
|
clean():void
Cleans all references to outer objects.
| ParserCollada | ||
|
getAnimationByObject(object:Object):AnimationClip
Returns animation from the list of animations by object.
| ParserCollada | ||
|
getBspContainerChildType(object:Object3D):uint
Returns type of object using inside BSP-container.
| ParserCollada | ||
|
getObjectByName(name:String):Object3D
Returns object from the object list by name.
| ParserCollada | ||
|
getObjectLayer(object:Object3D):String
Returns object layer.
| ParserCollada | ||
|
parse(data:XML, baseURL:String = null):void
Parses
xml Collada and fill lists: objects, parents, hierarchy, cameras, materials, textureMaterials, animations. | ParserCollada | ||
|
parseAnimation(data:XML):AnimationClip
[static]
| ParserCollada | ||
| Constant | Defined by | ||
|---|---|---|---|
| SPLITTER : uint = 2 [static]
| ParserCollada | ||
| STATIC_GEOMETRY : uint = 1 [static]
| ParserCollada | ||
| STATIC_OBJECT : uint = 0 [static]
| ParserCollada | ||
| animations | property |
public var animations:VectorList of animations.
| hierarchy | property |
public var hierarchy:VectorList of root objects.
| materials | property |
| objects | property |
public var objects:VectorList of objects.
| parents | property |
| textureMaterials | property |
public var textureMaterials:VectorList of texture materials. You can use MaterialLoader class to load texture materials.
See also
| ParserCollada | () | constructor |
public function ParserCollada()Creates a new instance.
| clean | () | method |
public function clean():voidCleans all references to outer objects.
| getAnimationByObject | () | method |
public function getAnimationByObject(object:Object):AnimationClipReturns animation from the list of animations by object.
Parametersobject:Object |
AnimationClip |
| getBspContainerChildType | () | method |
public function getBspContainerChildType(object:Object3D):uintReturns type of object using inside BSP-container. The following values are acceptable: ParserCollada.STATIC_GEOMETRY, ParserCollada.STATIC_OBJECT, ParserCollada.SPLITTER.
object:Object3D — Object. |
uint — Child object type. |
| getObjectByName | () | method |
public function getObjectByName(name:String):Object3DReturns object from the object list by name.
Parametersname:String |
Object3D |
| getObjectLayer | () | method |
public function getObjectLayer(object:Object3D):StringReturns object layer.
Parametersobject:Object3D — Object. |
String — Layer. |
| parse | () | method |
public function parse(data:XML, baseURL:String = null):voidParses xml Collada and fill lists: objects, parents, hierarchy, cameras, materials, textureMaterials, animations.
data:XML — Collada xml. |
|
baseURL:String (default = null) — Base URL to texture files. URL should correspond to URI specification. For example, file:///C:/test.dae or /C:/test.dae or test.dae or ./test.dae. |
See also
| parseAnimation | () | method |
public static function parseAnimation(data:XML):AnimationClipParameters
data:XML |
AnimationClip |
| SPLITTER | constant |
public static const SPLITTER:uint = 2
| STATIC_GEOMETRY | constant |
public static const STATIC_GEOMETRY:uint = 1
| STATIC_OBJECT | constant |
public static const STATIC_OBJECT:uint = 0