Package | org.papervision3d.core.proto |
Class | public class DisplayObjectContainer3D |
Inheritance | DisplayObjectContainer3D flash.events.EventDispatcher |
Subclasses | DisplayObject3D, SceneObject3D |
Property | Defined by | ||
---|---|---|---|
children : Object [read-only]
Returns the children object.
| DisplayObjectContainer3D | ||
numChildren : int [read-only]
Returns the number of children of this object.
| DisplayObjectContainer3D | ||
root : DisplayObjectContainer3D
[read-only] [read-only] The scene, which is the top-most displayObjectContainer3D in the tree structure.
| DisplayObjectContainer3D |
Property | Defined by | ||
---|---|---|---|
_children : Dictionary
[internal-use] Names indexed by children.
| DisplayObjectContainer3D | ||
_childrenByName : Object
[internal-use] Children indexed by name.
| DisplayObjectContainer3D |
Method | Defined by | ||
---|---|---|---|
Creates a new DisplayObjectContainer3D object.
| DisplayObjectContainer3D | ||
Adds a child DisplayObject3D instance to this DisplayObjectContainer instance.
| DisplayObjectContainer3D | ||
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 | ||
childrenList():String
Returns a string value with the list of objects.
| DisplayObjectContainer3D | ||
getChildByName(name:String):DisplayObject3D
Returns the child display object that exists with the specified name.
| DisplayObjectContainer3D | ||
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 | ||
toString():String
Returns a string value with the list of objects.
| DisplayObjectContainer3D |
_children | property |
protected var _children:Dictionary
[internal-use] Names indexed by children.
children | property |
children:Object
[read-only]Returns the children object.
Implementation public function get children():Object
_childrenByName | property |
protected var _childrenByName:Object
[internal-use] Children indexed by name.
numChildren | property |
numChildren:int
[read-only]Returns the number of children of this object.
Implementation public function get numChildren():int
root | property |
public var root:DisplayObjectContainer3D
[read-only] [read-only] The scene, which is the top-most displayObjectContainer3D in the tree structure.
DisplayObjectContainer3D | () | constructor |
public function DisplayObjectContainer3D()
Creates a new DisplayObjectContainer3D object.
addChild | () | method |
public function addChild(child:DisplayObject3D, name:String = null):DisplayObject3D
Adds a child DisplayObject3D instance to this DisplayObjectContainer instance. [TODO: If you add a child object that already has a different display object container as a parent, the object is removed from the child list of the other display object container.]
Parameterschild:DisplayObject3D — The DisplayObject3D instance to add as a child of this DisplayObjectContainer3D instance.
|
|
name:String (default = null ) — An optional name of the child to add or create. If no name is provided, the child name will be used.
|
DisplayObject3D —
The DisplayObject3D instance that you have added or created.
|
addChildren | () | method |
public function addChildren(parent:DisplayObject3D):DisplayObjectContainer3D
Adds all the children of a DisplayObject3D instance to this DisplayObjectContainer instance.
Parametersparent:DisplayObject3D — The DisplayObjectContainer3D instance that contains the children to add.
|
DisplayObjectContainer3D —
The DisplayObject3D instance that you have added or created.
|
addCollada | () | method |
public function addCollada(filename:String, materials:MaterialsList = null, scale:Number = 1):void
This method has been deprecated.
Parametersfilename:String |
|
materials:MaterialsList (default = null )
|
|
scale:Number (default = 1 )
|
childrenList | () | method |
public function childrenList():String
Returns a string value with the list of objects.
ReturnsString — A string.
|
getChildByName | () | method |
public function getChildByName(name:String):DisplayObject3D
Returns the child display object that exists with the specified name.
If more that one child display object has the specified name, the method returns the first object in the child list. Parametersname:String — The name of the child to return.
|
DisplayObject3D —
The child display object with the specified name.
|
removeChild | () | method |
public function removeChild(child:DisplayObject3D):DisplayObject3D
Removes the specified child DisplayObject3D instance from the child list of the DisplayObjectContainer3D instance.
[TODO: The parent property of the removed child is set to null, and the object is garbage collected if no other references to the child exist.] The garbage collector is the process by which Flash Player reallocates unused memory space. When a variable or object is no longer actively referenced or stored somewhere, the garbage collector sweeps through and wipes out the memory space it used to occupy if no other references to it exist. Parameterschild:DisplayObject3D — The DisplayObject3D instance to remove.
|
DisplayObject3D —
The DisplayObject3D instance that you pass in the child parameter.
|
removeChildByName | () | method |
public function removeChildByName(name:String):DisplayObject3D
Removes the child DisplayObject3D instance that exists with the specified name, from the child list of the DisplayObjectContainer3D instance.
If more that one child display object has the specified name, the method removes the first object in the child list. [TODO: The parent property of the removed child is set to null, and the object is garbage collected if no other references to the child exist.] The garbage collector is the process by which Flash Player reallocates unused memory space. When a variable or object is no longer actively referenced or stored somewhere, the garbage collector sweeps through and wipes out the memory space it used to occupy if no other references to it exist. Parametersname:String — The name of the child to remove.
|
DisplayObject3D —
The DisplayObject3D instance that was removed.
|
toString | () | method |
public override function toString():String
Returns a string value with the list of objects.
ReturnsString — A string.
|