Packagealternativa.engine3d.loaders
Classpublic class ParserA3D
InheritanceParserA3D Inheritance Parser Inheritance Object

A parser for loading models of A3D binary format. A3D format reference you can find here.



Public Properties
 PropertyDefined By
 Inheritedanimations : Vector.<AnimationClip>
Array of animations.
Parser
 Inheritedhierarchy : Vector.<Object3D>
List of root objects.
Parser
 Inheritedmaterials : Vector.<ParserMaterial>
List of all materials assigned to objects, that are got after parsing.
Parser
 Inheritedobjects : Vector.<Object3D>
List of objects, that are got after parsing.
Parser
Public Methods
 MethodDefined By
  
Creates a new instance of ParserA3D.
ParserA3D
 Inherited
clean():void
Erases all links to external objects.
Parser
 Inherited
getLayerByObject(object:Object3D):String
Returns name of layer for specified object.
Parser
 Inherited
Returns object from array objects by name.
Parser
  
parse(input:ByteArray):void
Parses model of a3d format, that is passed as byteArray to input parameter, then fills the arrays objects and hierarchy by the instances of three-dimensional objects.
ParserA3D
Protected Methods
 MethodDefined By
 Inherited
complete(a3d:Object):void
Parser
Constructor Detail
ParserA3D()Constructor
public function ParserA3D()

Creates a new instance of ParserA3D.

Method Detail
parse()method
public function parse(input:ByteArray):void

Parses model of a3d format, that is passed as byteArray to input parameter, then fills the arrays objects and hierarchy by the instances of three-dimensional objects.

Parameters

input:ByteArrayByteArray consists of A3D data.