Package | away3d.loaders.parsers |
Class | public class DAEParser |
Inheritance | DAEParser ParserBase flash.events.EventDispatcher |
Property | Defined By | ||
---|---|---|---|
dataFormat : String [read-only]
The data format of the file data to be parsed. | ParserBase | ||
dependencies : 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 | ||
parsingComplete : Boolean [read-only] | ParserBase | ||
parsingFailure : Boolean | ParserBase | ||
parsingPaused : Boolean [read-only] | ParserBase |
Method | Defined By | ||
---|---|---|---|
DAEParser(configFlags:uint = 0) | DAEParser | ||
getGeometryByName(name:String, clone:Boolean = false):Geometry | DAEParser | ||
isBitmapDataValid(bitmapData:BitmapData):Boolean
Validates a bitmapData loaded before assigning to a default BitmapMaterial
| ParserBase | ||
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 |
Method | Defined By | ||
---|---|---|---|
addDependency(id:String, req:URLRequest, retrieveAsRawData:Boolean = false, data:* = null, suppressErrorEvents:Boolean = false):void | ParserBase | ||
dieWithError(message:String = Unknown parsing error):void | ParserBase | ||
finalizeAsset(asset:IAsset, name:String = null):void | ParserBase | ||
finishParsing():void
Finish parsing the data. | ParserBase | ||
getByteData():ByteArray | ParserBase | ||
getTextData():String | ParserBase | ||
hasTime():Boolean
Tests whether or not there is still time left for parsing within the maximum allowed time frame per session. | ParserBase | ||
onInterval(event:TimerEvent = null):void
Called when the parsing pause interval has passed and parsing can proceed. | ParserBase | ||
pauseAndRetrieveDependencies():void | ParserBase | ||
proceedParsing():Boolean [override] | DAEParser |
Constant | Defined 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 |
effects | property |
effects:Object
[read-only] public function get effects():Object
geometries | property |
geometries:Vector.<Geometry>
[read-only] public function get geometries():Vector.<Geometry>
images | property |
images:Object
[read-only] public function get images():Object
isAnimated | property |
isAnimated:Boolean
[read-only] public function get isAnimated():Boolean
materials | property |
materials:Object
[read-only] public function get materials():Object
DAEParser | () | Constructor |
public function DAEParser(configFlags:uint = 0)
Parameters
configFlags:uint (default = 0 ) — Bitfield to configure the parser. |
See also
getGeometryByName | () | method |
public function getGeometryByName(name:String, clone:Boolean = false):Geometry
Parameters
name:String | |
clone:Boolean (default = false )
|
Geometry |
proceedParsing | () | method |
override protected function proceedParsing():Boolean
ReturnsBoolean |
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.
|
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.
|
Boolean — Whether or not the given file type is supported.
|
CONFIG_DEFAULT | Constant |
public static const CONFIG_DEFAULT:uint = 1
CONFIG_USE_GPU | Constant |
public static const CONFIG_USE_GPU:uint = 1
PARSE_DEFAULT | Constant |
public static const PARSE_DEFAULT:uint
PARSE_GEOMETRIES | Constant |
public static const PARSE_GEOMETRIES:uint = 1
PARSE_IMAGES | Constant |
public static const PARSE_IMAGES:uint = 2
PARSE_MATERIALS | Constant |
public static const PARSE_MATERIALS:uint = 4
PARSE_VISUAL_SCENES | Constant |
public static const PARSE_VISUAL_SCENES:uint = 8