26#ifndef __TERRALIB_SAM_RTREE_INTERNAL_NODE_H 
   27#define __TERRALIB_SAM_RTREE_INTERNAL_NODE_H 
   45      template<
class DATATYPE, 
int MAXNODES = 8, 
int MINNODES = MAXNODES / 2> 
class Node 
   82            for(
unsigned int i = 0; i < MAXNODES; ++i)
 
A struct that represents a node-branch in an R-tree.
 
An Envelope defines a 2D rectangular region.
 
A class that represents an R-tree node.
 
BranchType m_branch[MAXNODES]
Branches.
 
bool isInternalNode() const
It returns true if this is a internal node.
 
te::sam::rtree::Branch< Node, DATATYPE > BranchType
 
void init()
This method is used during split when a node retained and used again (beeing re-filled).
 
int m_count
The number of elements in the node (count).
 
Node & operator=(const Node &rhs)
No assignment operator allowed.
 
bool isLeaf() const
It returns true if this is a leaf node.
 
Node(const Node &rhs)
No copy constructor allowed.
 
int m_level
Leaf is zero, others positive.
 
It represents a node-branch of a Rtree.
 
NODE * m_child
A pointer to the child node.
 
te::gm::Envelope m_mbr
Bounding box containing all the objects under the branch or an object bounding box.