Class: Node

og/quadTree/Node~Node

new Node(segmentPrototype, planet, partId, parent, id, tileZoom, extent)

Quad tree planet segment node.
Name Type Description
segmentPrototype og.planetSegment.Segment | og.planetSegment.SegmentLonLat Planet segment node constructor.
planet og.scene.RenderNode Planet render node.
partId number NorthEast, SouthWest etc.
parent og.quadTree.Node Parent of this node.
id number Tree node identifier (id * 4 + 1);
tileZoom number Deep index of the quad tree.
extent og.Extent Planet segment extent.

Methods

addToRender()

Seraching for neighbours and pickup current node to render processing.

getEqualNeighbor(side){og.quadTree.Node}

Returns the same deep existent neighbour node.
Name Type Description
side Number Neighbour side index e.g. og.quadTree.N, og.quadTree.W etc.
Returns:
Type Description
og.quadTree.Node -