Packageaway3d.loaders.parsers
Classpublic class DAEParser
InheritanceDAEParser Inheritance ParserBase Inheritance flash.events.EventDispatcher

DAEParser provides a parser for the DAE data type.



Public Properties
 PropertyDefined By
 InheriteddataFormat : String
[read-only] The data format of the file data to be parsed.
ParserBase
 Inheriteddependencies : Vector.<ResourceDependency>
[read-only] A list of dependencies that need to be loaded and resolved for the object being parsed.
ParserBase
  effects : Object
[read-only]
DAEParser
  geometries : Vector.<Geometry>
[read-only]
DAEParser
  images : Object
[read-only]
DAEParser
  isAnimated : Boolean
[read-only]
DAEParser
  materials : Object
[read-only]
DAEParser
 InheritedparsingComplete : Boolean
[read-only]
ParserBase
 InheritedparsingFailure : Boolean
ParserBase
 InheritedparsingPaused : Boolean
[read-only]
ParserBase
Protected Properties
 PropertyDefined By
 Inherited_data : *
ParserBase
 Inherited_dataFormat : String
ParserBase
 Inherited_frameLimit : Number
ParserBase
 Inherited_lastFrameTime : Number
ParserBase
Public Methods
 MethodDefined By
  
DAEParser(configFlags:uint = 0)
DAEParser
  
getGeometryByName(name:String, clone:Boolean = false):Geometry
DAEParser
 Inherited
isBitmapDataValid(bitmapData:BitmapData):Boolean
Validates a bitmapData loaded before assigning to a default BitmapMaterial
ParserBase
 Inherited
parseAsync(data:*, frameLimit:Number = 30):void
Parse data (possibly containing bytearry, plain text or BitmapAsset) asynchronously, meaning that the parser will periodically stop parsing so that the AVM may proceed to the next frame.
ParserBase
  
supportsData(data:*):Boolean
[static] Tests whether a data block can be parsed by the parser.
DAEParser
  
supportsType(extension:String):Boolean
[static] Indicates whether or not a given file extension is supported by the parser.
DAEParser
Protected Methods
 MethodDefined By
 Inherited
addDependency(id:String, req:URLRequest, retrieveAsRawData:Boolean = false, data:* = null, suppressErrorEvents:Boolean = false):void
ParserBase
 Inherited
dieWithError(message:String = Unknown parsing error):void
ParserBase
 Inherited
finalizeAsset(asset:IAsset, name:String = null):void
ParserBase
 Inherited
Finish parsing the data.
ParserBase
 Inherited
getByteData():ByteArray
ParserBase
 Inherited
getTextData():String
ParserBase
 Inherited
hasTime():Boolean
Tests whether or not there is still time left for parsing within the maximum allowed time frame per session.
ParserBase
 Inherited
onInterval(event:TimerEvent = null):void
Called when the parsing pause interval has passed and parsing can proceed.
ParserBase
 Inherited
ParserBase
  
proceedParsing():Boolean
[override]
DAEParser
Events
 Event Summary Defined By
 InheritedDispatched when an animation node has been constructed from a resource.ParserBase
 InheritedDispatched when an animation set has been constructed from a group of animation state resources.ParserBase
 InheritedDispatched when an animation state has been constructed from a group of animation node resources.ParserBase
 InheritedDispatched when a animator asset has been constructed from a resource.ParserBase
 InheritedDispatched when any asset finishes parsing.ParserBase
 InheritedDispatched when a container asset has been constructed from a resource.ParserBase
 InheritedDispatched when a geometry asset has been constructed from a resource.ParserBase
 InheritedDispatched when a material asset has been constructed from a resource.ParserBase
 InheritedDispatched when the parsing finishes.ParserBase
 InheritedDispatched if an error was caught during parsing.ParserBase
 InheritedDispatched when parser pauses to wait for dependencies, used internally to trigger loading of dependencies which are then returned to the parser through it's interface in the arcane namespace.ParserBase
 InheritedDispatched when a skeleton asset has been constructed from a resource.ParserBase
 InheritedDispatched when a skeleton pose asset has been constructed from a resource.ParserBase
 InheritedDispatched when an animation state transition has been constructed from a group of animation node resources.ParserBase
 InheritedDispatched when a texture asset has been constructed from a resource.ParserBase
Public Constants
 ConstantDefined By
  CONFIG_DEFAULT : uint = 1
[static]
DAEParser
  CONFIG_USE_GPU : uint = 1
[static]
DAEParser
  PARSE_DEFAULT : uint
[static]
DAEParser
  PARSE_GEOMETRIES : uint = 1
[static]
DAEParser
  PARSE_IMAGES : uint = 2
[static]
DAEParser
  PARSE_MATERIALS : uint = 4
[static]
DAEParser
  PARSE_VISUAL_SCENES : uint = 8
[static]
DAEParser
Protected Constants
 ConstantDefined By
 InheritedMORE_TO_PARSE : Boolean = false
[static] Returned by proceedParsing to indicate more parsing is needed, allowing asynchronous parsing.
ParserBase
 InheritedPARSING_DONE : Boolean = true
[static] Returned by proceedParsing to indicate no more parsing is needed.
ParserBase
Property Detail
effectsproperty
effects:Object  [read-only]


Implementation
    public function get effects():Object
geometriesproperty 
geometries:Vector.<Geometry>  [read-only]


Implementation
    public function get geometries():Vector.<Geometry>
imagesproperty 
images:Object  [read-only]


Implementation
    public function get images():Object
isAnimatedproperty 
isAnimated:Boolean  [read-only]


Implementation
    public function get isAnimated():Boolean
materialsproperty 
materials:Object  [read-only]


Implementation
    public function get materials():Object
Constructor Detail
DAEParser()Constructor
public function DAEParser(configFlags:uint = 0)

Parameters
configFlags:uint (default = 0) — Bitfield to configure the parser.

See also

etc.
Method Detail
getGeometryByName()method
public function getGeometryByName(name:String, clone:Boolean = false):Geometry

Parameters

name:String
 
clone:Boolean (default = false)

Returns
Geometry
proceedParsing()method 
override protected function proceedParsing():Boolean

Returns
Boolean
resolveDependency()method 
override arcane function resolveDependency(resourceDependency:ResourceDependency):void

Parameters

resourceDependency:ResourceDependency

resolveDependencyFailure()method 
override arcane function resolveDependencyFailure(resourceDependency:ResourceDependency):void

Parameters

resourceDependency:ResourceDependency

supportsData()method 
public static function supportsData(data:*):Boolean

Tests whether a data block can be parsed by the parser.

Parameters

data:* — The data block to potentially be parsed.

Returns
Boolean — Whether or not the given data is supported.
supportsType()method 
public static function supportsType(extension:String):Boolean

Indicates whether or not a given file extension is supported by the parser.

Parameters

extension:String — The file extension of a potential file to be parsed.

Returns
Boolean — Whether or not the given file type is supported.
Constant Detail
CONFIG_DEFAULTConstant
public static const CONFIG_DEFAULT:uint = 1

CONFIG_USE_GPUConstant 
public static const CONFIG_USE_GPU:uint = 1

PARSE_DEFAULTConstant 
public static const PARSE_DEFAULT:uint

PARSE_GEOMETRIESConstant 
public static const PARSE_GEOMETRIES:uint = 1

PARSE_IMAGESConstant 
public static const PARSE_IMAGES:uint = 2

PARSE_MATERIALSConstant 
public static const PARSE_MATERIALS:uint = 4

PARSE_VISUAL_SCENESConstant 
public static const PARSE_VISUAL_SCENES:uint = 8