Packageaway3dlite.loaders
Classpublic class Collada
InheritanceCollada Inheritance AbstractParser Inheritance flash.events.EventDispatcher

File loader for the Collada file format with animation.

Public Properties
 PropertyDefined by
  bothsides : Boolean = true
Collada
  centerMeshes : Boolean
Controls the automatic centering of geometry data in the model, improving culling and the accuracy of bounding dimension values.
Collada
 Inheritedcontainer : Object3D
Retuns a 3d container object used for storing the parsed 3d object.
AbstractParser
  containerData : ContainerData
Container data object used for storing the parsed collada data structure.
Collada
 InheritedgeometryLibrary : GeometryLibrary
Retuns a geometryLibrary object used for storing the parsed geometry data.
AbstractParser
 Inheritedmaterial : Material
Overrides all materials in the model.
AbstractParser
 InheritedmaterialLibrary : MaterialLibrary
Retuns a materialLibrary object used for storing the parsed material objects.
AbstractParser
 Inheritedmaterials : Object
Overides materials in the model using name:value pairs.
AbstractParser
 InheritedparsedChunks : int
Returns the total number of data chunks parsed
AbstractParser
 InheritedparseTimeout : int = 40000
Defines a timeout period for file parsing (in milliseconds).
AbstractParser
  scaling : Number
A scaling factor for all geometry in the model.
Collada
  shading : Boolean
Controls the use of shading materials when color textures are encountered.
Collada
 InheritedtotalChunks : int
Returns the total number of data chunks available
AbstractParser
  useIDAsName : Boolean = true
Collada
Public Methods
 MethodDefined by
  
Creates a new Collada object.
Collada
 Inherited
addOnError(listener:Function):void
Default method for adding a parseError event listener
AbstractParser
 Inherited
addOnProgress(listener:Function):void
Default method for adding a parseProgress event listener
AbstractParser
 Inherited
addOnSuccess(listener:Function):void
Default method for adding a parseSuccess event listener
AbstractParser
  
array2matrix(ar:Array, yUp:Boolean, scaling:Number):Vector
Fills the 3d matrix object with values from an array with 3d matrix values ordered from right to left and up to down.
Collada
 Inherited
Parses 3d file data.
AbstractParser
 Inherited
removeOnError(listener:Function):void
Default method for removing a parseError event listener
AbstractParser
 Inherited
removeOnProgress(listener:Function):void
Default method for removing a parseProgress event listener
AbstractParser
 Inherited
removeOnSuccess(listener:Function):void
Default method for removing a parseSuccess event listener
AbstractParser
Events
 EventSummaryDefined by
 Inherited Dispatched when the 3d object parser fails to parse a file.AbstractParser
 Inherited Dispatched when the 3d object parser progresses by one chunk.AbstractParser
 Inherited Dispatched when the 3d object parser completes a file parse successfully.AbstractParser
Property detail
bothsidesproperty
public var bothsides:Boolean = true
centerMeshesproperty 
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.

containerDataproperty 
public var containerData:ContainerData

Container data object used for storing the parsed collada data structure.

scalingproperty 
public var scaling:Number

A scaling factor for all geometry in the model. Defaults to 1.

shadingproperty 
public var shading:Boolean

Controls the use of shading materials when color textures are encountered. Defaults to false.

useIDAsNameproperty 
public var useIDAsName:Boolean = true
Constructor detail
Collada()constructor
public function Collada() Init Parameters
Method detail
array2matrix()method
public function array2matrix(ar:Array, yUp:Boolean, scaling:Number):Vector

Fills the 3d matrix object with values from an array with 3d matrix values ordered from right to left and up to down.

Parameters
ar:Array
 
yUp:Boolean
 
scaling:Number

Returns
Vector
Wiki link
Click to go to the wiki page for 'away3dlite.loaders.Collada'

Code examples

Comments