Constructor
new Node(segmentPrototype, planet, partId, parent, id, tileZoom, extent)
Parameters:
Name | Type | Description |
---|---|---|
segmentPrototype | Segment | Planet segment node constructor. |
planet | Planet | Planet scene instance. |
partId | number | NorthEast, SouthWest etc. |
parent | 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. |
- Source
Methods
addToRender()
Picking up current node to render processing.
- Source
getCommonSide(node) → {number}
Checking if current node has a common side with input node and return side index N, E, S or W. Otherwise returns -1.
Parameters:
Name | Type | Description |
---|---|---|
node | Node | Input node |
- Source
Returns:
- Node side index
- Type:
- number
getEqualNeighbor(side) → {Node}
Returns the same deep existent neighbour node.
Parameters:
Name | Type | Description |
---|---|---|
side | number | Neighbour side index e.g. og.quadTree.N, og.quadTree.W etc. |
- Source
Returns:
- Type:
- Node
getRenderedNodesNeighbors()
Searching current node for its neighbours.
- Source