Jafar
|
Leaf node of the quadtree T is the data type. More...
Leaf node of the quadtree T is the data type.
Definition at line 300 of file Quadtree.hpp.
#include <Quadtree.hpp>
Public Member Functions | |
QuadNodeLeaf (Quadtree< T, RasterT > *_tree, QuadNodeInternal< T, RasterT > *_parent, int _nodePos, RasterRect _rect, T _data=RasterT::DEFAULT_DATA_VALUE()) | |
X,Y coordinates of the raster top-left corner cell. | |
~QuadNodeLeaf () | |
Destructor. | |
QuadNode< T, RasterT >::NODE_TYPE | getType () const |
bool | hasManyClusters () const |
bool | isAtomic () const |
QuadNodeLeaf< T, RasterT > * | getLeafForCell (const RasterCellIndex &cell) |
bool | getClusterForCell (const RasterCellIndex &cell, RasterRect &cluster) |
T | getData (const RasterCellIndex &clusterRoot) |
Private Attributes | |
int | nodePos |
Node position inside the parent node (0,1,2,3) | |
T | data |
The associaed data to the quadtree leaf. |
jafar::lgl::QuadNodeLeaf< T, RasterT >::QuadNodeLeaf | ( | Quadtree< T, RasterT > * | _tree, |
QuadNodeInternal< T, RasterT > * | _parent, | ||
int | _nodePos, | ||
RasterRect | _rect, | ||
T | _data = RasterT::DEFAULT_DATA_VALUE() |
||
) |
X,Y coordinates of the raster top-left corner cell.
(x,y)------ | | Constructor - 2 parameters. It builds a cell according to its parent and the position it will take as a child to this parent.
_parent | Parent cell of the newly created cell. |
_nodePos | Number of the position as a child. |
_data | the associated data of the leaf |
Definition at line 1004 of file Quadtree.hpp.
References jafar::lgl::QuadNodeLeaf< T, RasterT >::data, and jafar::lgl::QuadNode< T, RasterT >::tree.
T jafar::lgl::QuadNodeLeaf< T, RasterT >::data [private] |
The associaed data to the quadtree leaf.
Each big leaf cluster holds a datum of type T, else the data variable is set to the default value returned by DEFAULT_DATA_VALUE().
Definition at line 316 of file Quadtree.hpp.
Referenced by jafar::lgl::QuadNodeLeaf< T, RasterT >::QuadNodeLeaf().
int jafar::lgl::QuadNodeLeaf< T, RasterT >::nodePos [private] |
Node position inside the parent node (0,1,2,3)
(0,1,2,3) correspond to the enumeration defining QUADTREE_TOP_LEFT_CELL=0, QUADTREE_TOP_RIGHT_CELL=1, QUADTREE_BOTTOM_LEFT_CELL=2, QUADTREE_BOTTOM_RIGHT_CELL=3
Definition at line 309 of file Quadtree.hpp.
Generated on Wed Oct 15 2014 00:37:41 for Jafar by doxygen 1.7.6.1 |