Package | org.papervision3d.objects.parsers |
Class | public class DAE |
Inheritance | DAE DisplayObject3D DisplayObjectContainer3D flash.events.EventDispatcher |
Property | Defined by | ||
---|---|---|---|
baseUrl : String Base url.
| DAE | ||
children : Object
Returns the children object.
| DisplayObjectContainer3D | ||
containerBlendMode : int | DisplayObject3D | ||
containerSortMode : int | DisplayObject3D | ||
culled : Boolean
[internal use] Is this object culled by camera frustum?
| DisplayObject3D | ||
DEFAULT_SCALE : Number = 100 [static] Default scale, used when no scale was set.
| DAE | ||
document : DaeDocument
ASCollada document.
| DAE | ||
extra : Object
An object that contains user defined properties.
| DisplayObject3D | ||
faceLevelMode : Boolean [static]
This allows objects faces to have their own containers.
| DisplayObject3D | ||
faces : Array
[internal-use]
| DisplayObject3D | ||
filename : String Full filename.
| DAE | ||
fileTitle : String File title.
| DAE | ||
filters : Array | DisplayObject3D | ||
geometry : GeometryObject3D
The GeometryObject3D object that contains the 3D definition of this instance.
| DisplayObject3D | ||
hasAnimations : Boolean = false Does the collada contain animations?
| DAE | ||
id : int
[read-only] Unique id of this instance.
| DisplayObject3D | ||
material : MaterialObject3D | DisplayObject3D | ||
materials : MaterialsList
The list of materials for this instance.
| DisplayObject3D | ||
meshSort : uint = 1
tells Mesh3D's render() method to compare the measurement choice of the user for a triangle's sorting
| DisplayObject3D | ||
name : String
An optional object name.
| DisplayObject3D | ||
numChildren : int
Returns the number of children of this object.
| DisplayObjectContainer3D | ||
parent : DisplayObjectContainer3D
[read-only] Indicates the DisplayObjectContainer3D object that contains this display object.
| DisplayObject3D | ||
root : DisplayObjectContainer3D
[read-only] [read-only] The scene, which is the top-most displayObjectContainer3D in the tree structure.
| DisplayObjectContainer3D | ||
rotationX : Number
Specifies the rotation around the X axis from its original orientation.
| DisplayObject3D | ||
rotationY : Number
Specifies the rotation around the Y axis from its original orientation.
| DisplayObject3D | ||
rotationZ : Number
Specifies the rotation around the Z axis from its original orientation.
| DisplayObject3D | ||
scale : Number
Gets the 3D scale as applied from the registration point of the object.
| DAE | ||
scaleX : Number
Sets the scale along the local X axis as applied from the registration point of the object.
| DisplayObject3D | ||
scaleY : Number
Sets the scale along the local Y axis as applied from the registration point of the object.
| DisplayObject3D | ||
scaleZ : Number
Gets the scale along the local Z axis as applied from the registration point of the object.
| DAE | ||
scene : SceneObject3D | DisplayObject3D | ||
sceneX : Number
The X coordinate of a object relative to the scene coordinate system.
| DisplayObject3D | ||
sceneY : Number
The Y coordinate of a object relative to the scene coordinate system.
| DisplayObject3D | ||
sceneZ : Number
The Z coordinate of a object relative to the scene coordinate system.
| DisplayObject3D | ||
screen : Number3D
[read-only] The coordinate of the object on screen.
| DisplayObject3D | ||
screenZ : Number
[internal-use] The average depth of the object faces center.
| DisplayObject3D | ||
skin : Skin3D
The first skin found in the file.
| DAE | ||
sortedArray : Array [static]
| DisplayObject3D | ||
transform : Matrix3D
A Matrix3D object containing values that affect the scaling, rotation, and translation of the display object.
| DisplayObject3D | ||
useOwnContainer : Boolean | DisplayObject3D | ||
view : Matrix3D
[internal-use] A camera transformed Matrix3D object.
| DisplayObject3D | ||
visible : Boolean
Whether or not the display object is visible.
| DisplayObject3D | ||
world : Matrix3D
World transformation.
| DisplayObject3D | ||
x : Number
An Number that sets the X coordinate of a object relative to the origin of its parent.
| DisplayObject3D | ||
y : Number
An Number that sets the Y coordinate of a object relative to the origin of its parent.
| DisplayObject3D | ||
z : Number
An Number that sets the Z coordinate of a object relative to the origin of its parent.
| DisplayObject3D | ||
ZERO : DisplayObject3D
[static]
Returns an empty DiplayObject3D object positioned in the center of the 3D coordinate system (0, 0 ,0).
| DisplayObject3D |
Method | Defined by | ||
---|---|---|---|
DAE(async:Boolean = false)
| DAE | ||
Adds a child DisplayObject3D instance to this DisplayObjectContainer instance.
| DisplayObject3D | ||
Adds all the children of a DisplayObject3D instance to this DisplayObjectContainer instance.
| DisplayObjectContainer3D | ||
addCollada(filename:String, materials:MaterialsList = null, scale:Number = 1):void
This method has been deprecated.
| DisplayObjectContainer3D | ||
addGeometry(geometry:GeometryObject3D = null):void
Adds a geometry definition to the instance.
| DisplayObject3D | ||
childrenList():String
Returns a string value with the list of objects.
| DisplayObjectContainer3D | ||
Clones this DAE.
| DAE | ||
copyPosition(reference:*):void
Copies the position information (x, y and z coordinates) from another object or Matrix3D.
| DisplayObject3D | ||
copyTransform(reference:*):void
Copies the transformation information (position, rotation and scale) from another object or Matrix3D.
| DisplayObject3D | ||
distanceTo(obj:DisplayObject3D):Number
Gets the distance to the position of the given object.
| DisplayObject3D | ||
getChildByName(name:String):DisplayObject3D
Gets a child by name recursively.
| DAE | ||
getMaterialByName(name:String):MaterialObject3D
Returns the material that exists with the specified name in the materials list.
| DisplayObject3D | ||
hitTestObject(obj:DisplayObject3D, multiplier:Number = 1):Boolean
Evaluates the display object to see if it overlaps or intersects with the obj display object.
| DisplayObject3D | ||
hitTestPoint(x:Number, y:Number, z:Number):Boolean
Evaluates the display object to see if it overlaps or intersects with the point specified by the x, y and z parameters.
| DisplayObject3D | ||
load(asset:*, materials:MaterialsList = null):void
Loads a Collada file from url, xml or bytearray.
| DAE | ||
Make the object look at a specific position.
| DisplayObject3D | ||
materialsList():String
Returns a string value with the list of material names of the materials list.
| DisplayObject3D | ||
moveBackward(distance:Number):void
Translate the display object in the opposite direction it is facing, i.e.
| DisplayObject3D | ||
moveDown(distance:Number):void
Translate the display object downwards, with respect to the direction it is facing, i.e.
| DisplayObject3D | ||
moveForward(distance:Number):void
Translate the display object in the direction it is facing, i.e.
| DisplayObject3D | ||
moveLeft(distance:Number):void
Translate the display object lateraly, to the left of the direction it is facing, i.e.
| DisplayObject3D | ||
moveRight(distance:Number):void
Translate the display object lateraly, to the right of the direction it is facing, i.e.
| DisplayObject3D | ||
moveUp(distance:Number):void
Translate the display object upwards, with respect to the direction it is facing, i.e.
| DisplayObject3D | ||
pitch(angle:Number):void
Rotate the display object around its lateral or transverse axis —an axis running from the pilot's left to right in piloted aircraft, and parallel to the wings of a winged aircraft; thus the nose pitches up and the tail down, or vice-versa.
| DisplayObject3D | ||
[internal-use] Projects three dimensional coordinates onto a two dimensional plane to simulate the relationship of the camera to subject.
| DisplayObject3D | ||
Removes the specified child DisplayObject3D instance from the child list of the DisplayObjectContainer3D instance.
| DisplayObjectContainer3D | ||
removeChildByName(name:String):DisplayObject3D
Removes the child DisplayObject3D instance that exists with the specified name, from the child list of the DisplayObjectContainer3D instance.
| DisplayObjectContainer3D | ||
replaceMaterialByName(material:MaterialObject3D, name:String):void
Replaces a material by its name.
| DAE | ||
roll(angle:Number):void
Rotate the display object around the longitudinal axis —an axis drawn through the body of the vehicle from tail to nose in the normal direction of flight, or the direction the object is facing.
| DisplayObject3D | ||
toString():String
Returns a string value representing the three-dimensional position values of the display object instance.
| DisplayObject3D | ||
Move the object along a given direction.
| DisplayObject3D | ||
yaw(angle:Number):void
Rotate the display object around about the vertical axis —an axis drawn from top to bottom.
| DisplayObject3D |
Method | Defined by | ||
---|---|---|---|
doLoad(url:String):void
| DAE | ||
updateTransform():void
[internal-use] Updates the transform Matrix3D with the current rotation and scale values.
| DisplayObject3D |
baseUrl | property |
public var baseUrl:String
Base url.
DEFAULT_SCALE | property |
public static var DEFAULT_SCALE:Number = 100
Default scale, used when no scale was set.
document | property |
filename | property |
public var filename:String
Full filename.
fileTitle | property |
public var fileTitle:String
File title.
hasAnimations | property |
public var hasAnimations:Boolean = false
Does the collada contain animations?
scale | property |
scale:Number
[read-write]Gets the 3D scale as applied from the registration point of the object.
Implementation public function get scale():Number
public function set scale(value:Number):void
scaleZ | property |
scaleZ:Number
[read-write]Gets the scale along the local Z axis as applied from the registration point of the object.
Implementation public function get scaleZ():Number
public function set scaleZ(value:Number):void
skin | property |
public var skin:Skin3D
The first skin found in the file.
DAE | () | constructor |
public function DAE(async:Boolean = false)
Parameters
async:Boolean (default = false )
|
clone | () | method |
public function clone():DAE
Clones this DAE. NOTE: only works for simple dae's. Skinning, animation, etc. is still unsupported.
ReturnsDAE —
The clone DAE.
|
doLoad | () | method |
protected function doLoad(url:String):void
Parameters
url:String |
getChildByName | () | method |
public override function getChildByName(name:String):DisplayObject3D
Gets a child by name recursively.
Parametersname:String |
DisplayObject3D |
load | () | method |
public function load(asset:*, materials:MaterialsList = null):void
Loads a Collada file from url, xml or bytearray.
Parametersasset:* — Url, XML or ByteArray
|
|
materials:MaterialsList (default = null ) — Optional MaterialsList.
|
replaceMaterialByName | () | method |
public function replaceMaterialByName(material:MaterialObject3D, name:String):void
Replaces a material by its name.
Parametersmaterial:MaterialObject3D |
|
name:String |