Jafar
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions | Private Attributes
jafar::lgl::QuadNodeLeaf< T, RasterT > Class Template Reference

Leaf node of the quadtree T is the data type. More...


Detailed Description

template<typename T, class RasterT>
class jafar::lgl::QuadNodeLeaf< T, RasterT >

Leaf node of the quadtree T is the data type.

Definition at line 300 of file Quadtree.hpp.

#include <Quadtree.hpp>

Inheritance diagram for jafar::lgl::QuadNodeLeaf< T, RasterT >:
Inheritance graph
[legend]

List of all members.

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)
getData (const RasterCellIndex &clusterRoot)

Private Attributes

int nodePos
 Node position inside the parent node (0,1,2,3)
data
 The associaed data to the quadtree leaf.

Constructor & Destructor Documentation

template<typename T, class RasterT>
jafar::lgl::QuadNodeLeaf< T, RasterT >::QuadNodeLeaf ( Quadtree< T, RasterT > *  _tree,
QuadNodeInternal< T, RasterT > *  _parent,
int  _nodePos,
RasterRect  _rect,
_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.

Parameters:
_parentParent cell of the newly created cell.
_nodePosNumber of the position as a child.
_datathe 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.


Member Data Documentation

template<typename T, class RasterT>
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().

template<typename T, class RasterT>
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.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on Wed Oct 15 2014 00:37:41 for Jafar by doxygen 1.7.6.1
LAAS-CNRS