Package | away3d.loaders |
Class | public class AbstractParser |
Inheritance | AbstractParser flash.events.EventDispatcher |
Subclasses | Ase, AWData, Collada, Kmz, Max3DS, Md2, Obj, Swf |
Property | Defined by | ||
---|---|---|---|
centerMeshes : Boolean
Controls the automatic centering of geometry data in the model, improving culling and the accuracy of bounding dimension values.
| AbstractParser | ||
container : Object3D
[read-only]
Retuns a 3d container object used for storing the parsed 3d object.
| AbstractParser | ||
geometryLibrary : GeometryLibrary
[read-only]
Retuns a geometryLibrary object used for storing the parsed geometry data.
| AbstractParser | ||
material : Material
Overrides all materials in the model.
| AbstractParser | ||
materialLibrary : MaterialLibrary
[read-only]
Retuns a materialLibrary object used for storing the parsed material objects.
| AbstractParser | ||
materials : Object
Overides materials in the model using name:value pairs.
| AbstractParser | ||
parsedChunks : int [read-only]
Returns the total number of data chunks parsed
| AbstractParser | ||
parseTimeout : int
Defines a timeout period for file parsing (in milliseconds).
| AbstractParser | ||
totalChunks : int [read-only]
Returns the total number of data chunks available
| AbstractParser |
Property | Defined by | ||
---|---|---|---|
ini : Init
Instance of the Init object used to hold and parse default property values
specified by the initialiser object in the parser constructor.
| AbstractParser | ||
_symbolLibrary : Dictionary | AbstractParser |
Method | Defined by | ||
---|---|---|---|
AbstractParser
(init:Object = null)
Creates a new
AbstractParser object. | AbstractParser | ||
addOnError(listener:Function):void
Default method for adding a parseError event listener
| AbstractParser | ||
addOnProgress(listener:Function):void
Default method for adding a parseProgress event listener
| AbstractParser | ||
addOnSuccess(listener:Function):void
Default method for adding a parseSuccess event listener
| AbstractParser | ||
Parses 3d file data.
| AbstractParser | ||
removeOnError(listener:Function):void
Default method for removing a parseError event listener
| AbstractParser | ||
removeOnProgress(listener:Function):void
Default method for removing a parseProgress event listener
| AbstractParser | ||
removeOnSuccess(listener:Function):void
Default method for removing a parseSuccess event listener
| AbstractParser |
Method | Defined by | ||
---|---|---|---|
AbstractParser | |||
buildMaterials():void
| AbstractParser | ||
AbstractParser |
Event | Summary | Defined by | ||
---|---|---|---|---|
Dispatched when the 3d object parser fails to parse a file. | AbstractParser | |||
Dispatched when the 3d object parser progresses by one chunk. | AbstractParser | |||
Dispatched when the 3d object parser completes a file parse successfully. | AbstractParser |
centerMeshes | property |
public var centerMeshes:Boolean
Controls the automatic centering of geometry data in the model, improving culling and the accuracy of bounding dimension values. Defaults to false.
container | property |
container:Object3D
[read-only]Retuns a 3d container object used for storing the parsed 3d object.
Implementation public function get container():Object3D
geometryLibrary | property |
geometryLibrary:GeometryLibrary
[read-only]Retuns a geometryLibrary object used for storing the parsed geometry data.
Implementation public function get geometryLibrary():GeometryLibrary
ini | property |
protected var ini:Init
Instance of the Init object used to hold and parse default property values specified by the initialiser object in the parser constructor.
material | property |
public var material:Material
Overrides all materials in the model.
materialLibrary | property |
materialLibrary:MaterialLibrary
[read-only]Retuns a materialLibrary object used for storing the parsed material objects.
Implementation public function get materialLibrary():MaterialLibrary
materials | property |
materials:Object
[read-write]Overides materials in the model using name:value pairs.
Implementation public function get materials():Object
public function set materials(value:Object):void
parsedChunks | property |
parsedChunks:int
[read-only]Returns the total number of data chunks parsed
Implementation public function get parsedChunks():int
parseTimeout | property |
public var parseTimeout:int
Defines a timeout period for file parsing (in milliseconds).
_symbolLibrary | property |
protected var _symbolLibrary:Dictionary
totalChunks | property |
totalChunks:int
[read-only]Returns the total number of data chunks available
Implementation public function get totalChunks():int
AbstractParser | () | constructor |
public function AbstractParser(init:Object = null)
Parameters
init:Object (default = null ) — [optional] An initialisation object for specifying default instance properties.
|
parseTimeout:Number (default = 40000) | |
material:Material | |
materials:Object | |
centerMeshes:Boolean (default = false) |
addOnError | () | method |
public function addOnError(listener:Function):void
Default method for adding a parseError event listener
Parameterslistener:Function — The listener function
|
addOnProgress | () | method |
public function addOnProgress(listener:Function):void
Default method for adding a parseProgress event listener
Parameterslistener:Function — The listener function
|
addOnSuccess | () | method |
public function addOnSuccess(listener:Function):void
Default method for adding a parseSuccess event listener
Parameterslistener:Function — The listener function
|
buildContainers | () | method |
protected function buildContainers(containerData:ContainerData, parent:ObjectContainer3D):void
Parameters
containerData:ContainerData |
|
parent:ObjectContainer3D |
buildMaterials | () | method |
protected function buildMaterials():void
buildMesh | () | method |
protected function buildMesh(_meshData:MeshData, parent:ObjectContainer3D):Mesh
Parameters
_meshData:MeshData |
|
parent:ObjectContainer3D |
Mesh |
parseGeometry | () | method |
public function parseGeometry(data:*):Object3D
Parses 3d file data.
Parametersdata:* — The file data to be parsed. Can be in text or binary form.
|
Object3D —
The parsed 3d object.
|
removeOnError | () | method |
public function removeOnError(listener:Function):void
Default method for removing a parseError event listener
Parameterslistener:Function — The listener function
|
removeOnProgress | () | method |
public function removeOnProgress(listener:Function):void
Default method for removing a parseProgress event listener
Parameterslistener:Function — The listener function
|
removeOnSuccess | () | method |
public function removeOnSuccess(listener:Function):void
Default method for removing a parseSuccess event listener
Parameterslistener:Function — The listener function
|
parseError | event |
away3d.events.ParserEvent
Dispatched when the 3d object parser fails to parse a file.
parseProgress | event |
away3d.events.ParserEvent
Dispatched when the 3d object parser progresses by one chunk.
parseSuccess | event |
away3d.events.ParserEvent
Dispatched when the 3d object parser completes a file parse successfully.