Package | away3d.core.traverse |
Class | public class EntityCollector |
Inheritance | EntityCollector PartitionTraverser |
Subclasses | ShadowCasterCollector |
See also
Property | Defined by | ||
---|---|---|---|
blendedRenderables : Vector
The list of IRenderable objects that require blending and are considered potentially visible.
| EntityCollector | ||
camera : Camera3D
The camera that provides the visible frustum.
| EntityCollector | ||
lights : Vector [read-only]
The lights of which the affecting area intersects the camera's frustum.
| EntityCollector | ||
numMouseEnableds : uint [read-only]
The amount of IRenderable objects that are mouse-enabled.
| EntityCollector | ||
numTriangles : uint [read-only]
The total number of triangles collected, and which will be pushed to the render engine.
| EntityCollector | ||
opaqueRenderables : Vector
The list of opaque IRenderable objects that are considered potentially visible.
| EntityCollector | ||
scene : Scene3D
The scene being traversed.
| PartitionTraverser | ||
skyBox : IRenderable
[read-only]
The sky box object if encountered.
| EntityCollector |
Property | Defined by | ||
---|---|---|---|
_blendedRenderables : Vector | EntityCollector | ||
_camera : Camera3D | EntityCollector | ||
_entities : Vector | EntityCollector | ||
_lights : Vector | EntityCollector | ||
_numBlended : uint | EntityCollector | ||
_numEntities : uint | EntityCollector | ||
_numLights : uint | EntityCollector | ||
_numMouseEnableds : uint | EntityCollector | ||
_numOpaques : uint | EntityCollector | ||
_numTriangles : uint | EntityCollector | ||
_opaqueRenderables : Vector | EntityCollector | ||
_skyBox : IRenderable | EntityCollector |
Method | Defined by | ||
---|---|---|---|
Creates a new EntityCollector object.
| EntityCollector | ||
Registers an entity for use.
| EntityCollector | ||
Adds a light to the potentially visible objects.
| EntityCollector | ||
Adds an IRenderable object to the potentially visible objects.
| EntityCollector | ||
Adds a skybox to the potentially visible objects.
| EntityCollector | ||
cleanUp():void
Cleans up any data at the end of a frame.
| EntityCollector | ||
clear():void
Clears all objects in the entity collector.
| EntityCollector | ||
Returns true if the current node is at least partly in the frustum.
| EntityCollector | ||
Called when the traverser leaves a node.
| PartitionTraverser |
_blendedRenderables | property |
protected var _blendedRenderables:Vector
blendedRenderables | property |
blendedRenderables:Vector
[read-write]The list of IRenderable objects that require blending and are considered potentially visible.
Implementation public function get blendedRenderables():Vector
public function set blendedRenderables(value:Vector):void
_camera | property |
protected var _camera:Camera3D
camera | property |
camera:Camera3D
[read-write]The camera that provides the visible frustum.
Implementation public function get camera():Camera3D
public function set camera(value:Camera3D):void
_entities | property |
protected var _entities:Vector
_lights | property |
protected var _lights:Vector
lights | property |
lights:Vector
[read-only]The lights of which the affecting area intersects the camera's frustum.
Implementation public function get lights():Vector
_numBlended | property |
protected var _numBlended:uint
_numEntities | property |
protected var _numEntities:uint
_numLights | property |
protected var _numLights:uint
_numMouseEnableds | property |
protected var _numMouseEnableds:uint
numMouseEnableds | property |
numMouseEnableds:uint
[read-only]The amount of IRenderable objects that are mouse-enabled.
Implementation public function get numMouseEnableds():uint
_numOpaques | property |
protected var _numOpaques:uint
_numTriangles | property |
protected var _numTriangles:uint
numTriangles | property |
numTriangles:uint
[read-only]The total number of triangles collected, and which will be pushed to the render engine.
Implementation public function get numTriangles():uint
_opaqueRenderables | property |
protected var _opaqueRenderables:Vector
opaqueRenderables | property |
opaqueRenderables:Vector
[read-write]The list of opaque IRenderable objects that are considered potentially visible.
Implementation public function get opaqueRenderables():Vector
public function set opaqueRenderables(value:Vector):void
_skyBox | property |
protected var _skyBox:IRenderable
skyBox | property |
skyBox:IRenderable
[read-only]The sky box object if encountered.
Implementation public function get skyBox():IRenderable
EntityCollector | () | constructor |
public function EntityCollector()
Init Parameters
applyEntity | () | method |
public override function applyEntity(entity:Entity):void
Registers an entity for use.
Parametersentity:Entity |
applyLight | () | method |
public override function applyLight(light:LightBase):void
Adds a light to the potentially visible objects.
Parameterslight:LightBase — The light to add.
|
applyRenderable | () | method |
public override function applyRenderable(renderable:IRenderable):void
Adds an IRenderable object to the potentially visible objects.
Parametersrenderable:IRenderable — The IRenderable object to add.
|
applySkyBox | () | method |
public override function applySkyBox(renderable:IRenderable):void
Adds a skybox to the potentially visible objects.
Parametersrenderable:IRenderable — The skybox to add.
|
cleanUp | () | method |
public function cleanUp():void
Cleans up any data at the end of a frame.
clear | () | method |
public function clear():void
Clears all objects in the entity collector.
enterNode | () | method |
public override function enterNode(node:NodeBase):Boolean
Returns true if the current node is at least partly in the frustum. If so, the partition node knows to pass on the traverser to its children.
Parametersnode:NodeBase — The Partition3DNode object to frustum-test.
|
Boolean |