Packageaway3d.loaders
Classpublic class Collada

File loader for the Collada file format.

Public Properties
 PropertyDefined by
  container : ObjectContainer3D
3d container object used for storing the parsed collada scene.
Collada
  containerData : ContainerData
Container data object used for storing the parsed collada data structure.
Collada
  materialLibrary : MaterialLibrary
Reference container for all materials used in the collada scene.
Collada
Public Methods
 MethodDefined by
  
Collada
(xml:XML, init:Object = null)
Creates a new Collada object.
Collada
  
load(url:String, init:Object = null):Object3DLoader
[static] Loads and parses a collada file into a 3d container object.
Collada
  
loadTextures(data:*, init:Object = null):Object3DLoader
[static] Loads and parses the textures for a collada file into a 3d container object.
Collada
  
parse(data:*, init:Object = null, loader:Object = null):ObjectContainer3D
[static] Creates a 3d container object from the raw xml data of a collada file.
Collada
Property detail
containerproperty
public var container:ObjectContainer3D

3d container object used for storing the parsed collada scene.

containerDataproperty 
public var containerData:ContainerData

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

materialLibraryproperty 
public var materialLibrary:MaterialLibrary

Reference container for all materials used in the collada scene.

Constructor detail
Collada()constructor
public function Collada(xml:XML, init:Object = null)Parameters
xml:XML — The xml data of a loaded file.
 
init:Object (default = null) — [optional] An initialisation object for specifying default instance properties.
####INIT####

See also

Method detail
load()method
public static function load(url:String, init:Object = null):Object3DLoader

Loads and parses a collada file into a 3d container object.

Parameters
url:String — The url location of the file to load.
 
init:Object (default = null) — [optional] An initialisation object for specifying default instance properties.

Returns
Object3DLoader — A 3d loader object that can be used as a placeholder in a scene while the file is loading.
loadTextures()method 
public static function loadTextures(data:*, init:Object = null):Object3DLoader

Loads and parses the textures for a collada file into a 3d container object.

Parameters
data:* — The xml data of a loaded file.
 
init:Object (default = null) — [optional] An initialisation object for specifying default instance properties.

Returns
Object3DLoader — A 3d loader object that can be used as a placeholder in a scene while the textures are loading.
parse()method 
public static function parse(data:*, init:Object = null, loader:Object = null):ObjectContainer3D

Creates a 3d container object from the raw xml data of a collada file.

Parameters
data:* — The xml data of a loaded file.
 
init:Object (default = null) — [optional] An initialisation object for specifying default instance properties.
 
loader:Object (default = null) — [optional] Not intended for direct use.

Returns
ObjectContainer3D — A 3d container object representation of the collada file.
Wiki link
Click to go to the wiki page for ####WIKI####

Code examples

Comments