Class: Node

Node

Quad tree planet segment node.

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

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

Methods

addToRender()

Seraching for neighbours and pickup current node to render processing.

getEqualNeighbor(side){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
quadTree.Node -