DAE

Kind of class:public class
Package:org.papervision3d.objects.parsers
Inherits from:DisplayObject3D < DisplayObjectContainer3D < EventDispatcher
Author:Tim Knip
Classpath:org.papervision3d.objects.parsers.DAE
File last modified:Sunday, 02 March 2008, 15:23:44

Summary


Constructor
  • DAE (async:Boolean = false, animate:Boolean = true) : void
Class properties
  • DEFAULT_SCALE : Number
    • Default scale, used when no scale was set.
Instance methods

Constructor

DAE

public function DAE (
async:Boolean = false, animate:Boolean = true) : void

Parameters:
asset:
 
async:
 

Class properties

DEFAULT_SCALE

public static DEFAULT_SCALE:Number = 100
(read,write)

Default scale, used when no scale was set.

Instance properties

animate

public animate:Boolean
(read,write)

baseUrl

public baseUrl:String
(read,write)

Base url.

document

public document:DaeDocument
(read,write)

ASCollada document. @see org.ascollada.core.DaeDocument

filename

public filename:String
(read,write)

Full filename.

fileTitle

public fileTitle:String
(read,write)

File title.

hasAnimations

public hasAnimations:Boolean = false
(read,write)

Does the collada contain animations?

skins

public skins:Array
(read,write)

An Array of Skin3D.

texturePath

public texturePath:String
(read,write)

Path where the textures should be loaded from.

yUp

public yUp:Boolean
(read)

Instance methods

clone

public function clone (
) : DAE

Clones this DAE.
Returns:
  • The clone DAE.

getChildByName

override public function getChildByName (
name:String) : DisplayObject3D

Gets a child by name recursively.
Parameters:
name:
 
Overrides:
  • DisplayObject3D.getChildByName

load

public function load (
asset:*, materials:MaterialsList = null) : void

Loads a Collada file from url, xml or bytearray.
Parameters:
asset :
Url, XML or ByteArray
materials:
Optional MaterialsList.

replaceMaterialByName

public function replaceMaterialByName (
material:MaterialObject3D, name:String) : void

Replaces a material by its name.
Parameters:
material:
 
name :
 

setChildMaterial

public function setChildMaterial (
child:DisplayObject3D, material:MaterialObject3D) : void

Sets the material for a child DisplayObject3D.
Parameters:
child :
A child DisplayObject3D of this DAE.
material:
The new material for the child.

setChildMaterialByName

public function setChildMaterialByName (
childName:String, material:MaterialObject3D) : void

Sets the material for a child DisplayObject3D by the child's name.
Parameters:
childName:
The name of the DisplayObject3D.
material :
The new material for the child.