Packagelaya.d3.core.scene
Classpublic class OctreeNode
InheritanceOctreeNode Inheritance Object
Implements ITreeNode



Public Properties
 PropertyDefined By
  _children : Vector.<OctreeNode>
OctreeNode
  debugMode : Boolean = false
[static] 是否开启四/八叉树调试模式。
OctreeNode
  exactBox : BoundBox
OctreeNode
  relaxBox : BoundBox
OctreeNode
Public Methods
 MethodDefined By
  
OctreeNode(scene:Scene, currentDepth:int)
OctreeNode
  
addChild(index:int):OctreeNode
OctreeNode
  
addNodeDown(render:BaseRender, depth:int):void
OctreeNode
  
addNodeUp(render:BaseRender, depth:int):void
OctreeNode
  
addObject(object:BaseRender):void
OctreeNode
  
addTreeNode(render:BaseRender):void
OctreeNode
  
buildAllChild(depth:int):void
OctreeNode
  
OctreeNode
  
cullingObjects(boundFrustum:BoundFrustum, testVisible:Boolean, flags:int, cameraPosition:Vector3, projectionView:Matrix4x4):void
OctreeNode
  
inChildIndex(objectCenter:Vector3):int
OctreeNode
  
init(center:Vector3, treeSize:Vector3):void
OctreeNode
  
removeObject(object:BaseRender):Boolean
OctreeNode
  
renderBoudingBox(linePhasor:PhasorSpriter3D):void
OctreeNode
  
OctreeNode
Property Detail
_childrenproperty
public var _children:Vector.<OctreeNode>

debugModeproperty 
public static var debugMode:Boolean = false

是否开启四/八叉树调试模式。

exactBoxproperty 
exactBox:BoundBox


Implementation
    public function get exactBox():BoundBox
    public function set exactBox(value:BoundBox):void
relaxBoxproperty 
relaxBox:BoundBox


Implementation
    public function get relaxBox():BoundBox
    public function set relaxBox(value:BoundBox):void
Constructor Detail
OctreeNode()Constructor
public function OctreeNode(scene:Scene, currentDepth:int)



Parameters
scene:Scene
 
currentDepth:int
Method Detail
addChild()method
public function addChild(index:int):OctreeNode

Parameters

index:int

Returns
OctreeNode
addNodeDown()method 
public function addNodeDown(render:BaseRender, depth:int):void

Parameters

render:BaseRender
 
depth:int

addNodeUp()method 
public function addNodeUp(render:BaseRender, depth:int):void

Parameters

render:BaseRender
 
depth:int

addObject()method 
public function addObject(object:BaseRender):void

Parameters

object:BaseRender

addTreeNode()method 
public function addTreeNode(render:BaseRender):void

Parameters

render:BaseRender

buildAllChild()method 
public function buildAllChild(depth:int):void

Parameters

depth:int

clearObject()method 
public function clearObject():void

cullingObjects()method 
public function cullingObjects(boundFrustum:BoundFrustum, testVisible:Boolean, flags:int, cameraPosition:Vector3, projectionView:Matrix4x4):void

Parameters

boundFrustum:BoundFrustum
 
testVisible:Boolean
 
flags:int
 
cameraPosition:Vector3
 
projectionView:Matrix4x4

inChildIndex()method 
public function inChildIndex(objectCenter:Vector3):int

Parameters

objectCenter:Vector3

Returns
int
init()method 
public function init(center:Vector3, treeSize:Vector3):void

Parameters

center:Vector3
 
treeSize:Vector3

removeObject()method 
public function removeObject(object:BaseRender):Boolean

Parameters

object:BaseRender

Returns
Boolean
renderBoudingBox()method 
public function renderBoudingBox(linePhasor:PhasorSpriter3D):void

Parameters

linePhasor:PhasorSpriter3D

updateObject()method 
public function updateObject(render:BaseRender):void

Parameters

render:BaseRender