Packagecom.yogurt3d.core.scenetree.quad
Classpublic class QuadTree
InheritanceQuadTree Inheritance Object



Public Properties
 PropertyDefined By
  list : Vector.<SceneObjectRenderable>
QuadTree
  listlength : int = 0
QuadTree
  m_maxDepth : int
QuadTree
  m_root : QuadNode
QuadTree
  preAllocateNodes : Boolean
QuadTree
  sceneObjectToQuadrant : Dictionary
QuadTree
Public Methods
 MethodDefined By
  
QuadTree(_bound:AxisAlignedBoundingBox, _maxDepth:int = 3, _preAllocateNodes:Boolean = true)
QuadTree
  
QuadTree
  
QuadTree
  
updateTree(childrenDynamic:Vector.<SceneObjectRenderable>):void
QuadTree
  
QuadTree
  
visibilityProcessLight(light:Light, lightIndex:int, _scene:IScene):void
QuadTree
Property Detail
listproperty
public var list:Vector.<SceneObjectRenderable>

listlengthproperty 
public var listlength:int = 0

m_maxDepthproperty 
public var m_maxDepth:int

m_rootproperty 
public var m_root:QuadNode

preAllocateNodesproperty 
public var preAllocateNodes:Boolean

sceneObjectToQuadrantproperty 
public var sceneObjectToQuadrant:Dictionary

Constructor Detail
QuadTree()Constructor
public function QuadTree(_bound:AxisAlignedBoundingBox, _maxDepth:int = 3, _preAllocateNodes:Boolean = true)



Parameters
_bound:AxisAlignedBoundingBox
 
_maxDepth:int (default = 3)
 
_preAllocateNodes:Boolean (default = true)
Method Detail
insert()method
public function insert(quadrant:SceneObjectRenderable):void

Parameters

quadrant:SceneObjectRenderable

removeFromNode()method 
public function removeFromNode(sceneObject:SceneObjectRenderable):void

Parameters

sceneObject:SceneObjectRenderable

updateTree()method 
public function updateTree(childrenDynamic:Vector.<SceneObjectRenderable>):void

Parameters

childrenDynamic:Vector.<SceneObjectRenderable>

visibilityProcess()method 
public function visibilityProcess(camera:Camera):void

Parameters

camera:Camera

visibilityProcessLight()method 
public function visibilityProcessLight(light:Light, lightIndex:int, _scene:IScene):void

Parameters

light:Light
 
lightIndex:int
 
_scene:IScene