| Package | away3d.containers |
| Class | public class Scene3D |
| Inheritance | Scene3D flash.events.EventDispatcher |
| Property | Defined By | ||
|---|---|---|---|
| numChildren : uint [read-only]
The amount of children directly contained by the scene. | Scene3D | ||
| partition : Partition3D
The root partition to be used by the Scene3D. | Scene3D | ||
| Method | Defined By | ||
|---|---|---|---|
Scene3D()
Creates a new Scene3D object. | Scene3D | ||
Adds a child to the scene's root. | Scene3D | ||
contains(child:ObjectContainer3D):Boolean | Scene3D | ||
getChildAt(index:uint):ObjectContainer3D
Retrieves the child with the given index
| Scene3D | ||
removeChild(child:ObjectContainer3D):void
Removes a child from the scene's root. | Scene3D | ||
removeChildAt(index:uint):void
Removes a child from the scene's root. | Scene3D | ||
traversePartitions(traverser:PartitionTraverser):void
Sends a PartitionTraverser object down the scene partitions
| Scene3D | ||
| Method | Defined By | ||
|---|---|---|---|
addPartitionUnique(partition:Partition3D):void
Add a partition if it's not in the list
| Scene3D | ||
| _sceneGraphRoot | property |
arcane var _sceneGraphRoot:ObjectContainer3D| numChildren | property |
numChildren:uint [read-only] The amount of children directly contained by the scene.
public function get numChildren():uint| partition | property |
partition:Partition3DThe root partition to be used by the Scene3D.
public function get partition():Partition3D public function set partition(value:Partition3D):void| Scene3D | () | Constructor |
public function Scene3D()Creates a new Scene3D object.
| addChild | () | method |
public function addChild(child:ObjectContainer3D):ObjectContainer3DAdds a child to the scene's root.
Parameters
child:ObjectContainer3D — The child to be added to the scene
|
ObjectContainer3D — A reference to the added child.
|
| addPartitionUnique | () | method |
protected function addPartitionUnique(partition:Partition3D):voidAdd a partition if it's not in the list
Parameters
partition:Partition3D |
| contains | () | method |
public function contains(child:ObjectContainer3D):BooleanParameters
child:ObjectContainer3D |
Boolean |
| getChildAt | () | method |
public function getChildAt(index:uint):ObjectContainer3DRetrieves the child with the given index
Parameters
index:uint — The index for the child to be retrieved.
|
ObjectContainer3D — The child with the given index
|
| invalidateEntityBounds | () | method |
arcane function invalidateEntityBounds(entity:Entity):voidWhen an entity has moved or changed size, update its position in its partition tree.
Parameters
entity:Entity |
| registerPartition | () | method |
arcane function registerPartition(entity:Entity):voidWhen a partition is assigned to an object somewhere in the scene graph, add the partition to the list if it isn't in there yet
Parameters
entity:Entity |
| removeChild | () | method |
public function removeChild(child:ObjectContainer3D):voidRemoves a child from the scene's root.
Parameters
child:ObjectContainer3D — The child to be removed from the scene.
|
| removeChildAt | () | method |
public function removeChildAt(index:uint):voidRemoves a child from the scene's root.
Parameters
index:uint — Index of child to be removed from the scene.
|
| traversePartitions | () | method |
public function traversePartitions(traverser:PartitionTraverser):voidSends a PartitionTraverser object down the scene partitions
Parameters
traverser:PartitionTraverser — The traverser which will pass through the partitions.
|
See also
| unregisterPartition | () | method |
arcane function unregisterPartition(entity:Entity):voidWhen a partition is removed from an object somewhere in the scene graph, remove the partition from the list
Parameters
entity:Entity |