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
Namespaces
Constants
Constants inherited from DisplayObject3D
Class properties
- DEFAULT_SCALE : Number
- Default scale, used when no scale was set.
Class properties inherited from DisplayObject3D
Instance properties
- filename : String
- Full filename.
- fileTitle : String
- File title.
- baseUrl : String
- Base url.
- texturePath : String
- Path where the textures should be loaded from.
- document : DaeDocument
- ASCollada document.
- hasAnimations : Boolean
- Does the collada contain animations?
- skins : Array
- An Array of Skin3D.
- animate : Boolean
- yUp : Boolean
Instance properties inherited from DisplayObject3D
_containerBlendMode _containerSortMode _filters _material _rotationDirty _rotationX _rotationY _rotationZ _scaleDirty _scaleX _scaleY _scaleZ _scene _sorted _transformDirty _useOwnContainer _userData containerBlendMode containerSortMode culled extra faces filters geometry id material materials meshSort name parent rotationX rotationY rotationZ scale scaleX scaleY scaleZ scene sceneX sceneY sceneZ screen screenZ transform useOwnContainer userData view visible world x y z
Instance properties inherited from DisplayObjectContainer3D
Instance methods
- clone : DAE
- Clones this DAE.
- load (asset:*, materials:MaterialsList = null) : void
- Loads a Collada file from url, xml or bytearray.
- getChildByName (name:String) : DisplayObject3D
- Gets a child by name recursively.
- replaceMaterialByName (material:MaterialObject3D, name:String) : void
- Replaces a material by its name.
- setChildMaterial (child:DisplayObject3D) : void
- Sets the material for a child DisplayObject3D.
- setChildMaterialByName (childName:String, material:MaterialObject3D) : void
- Sets the material for a child DisplayObject3D by the child's name.
Instance methods inherited from DisplayObject3D
Instance methods inherited from DisplayObjectContainer3D
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
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
getChildByName
Gets a child by name recursively.
Parameters:
name:
Overrides:
- DisplayObject3D.getChildByName
load
Loads a Collada file from url, xml or bytearray.
Parameters:
asset :
Url, XML or ByteArray
materials:
Optional MaterialsList.
replaceMaterialByName
Replaces a material by its name.
Parameters:
material:
name :
setChildMaterial
Sets the material for a child DisplayObject3D.
Parameters:
child :
A child DisplayObject3D of this DAE.
material:
The new material for the child.
setChildMaterialByName
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.