TerraLib 4.1
CloserCells Class Reference

Keep a number (given by MAXCLOSECELLS) of closest neighbour cells of a cell. Its an ordered array of closest neighbour cells of a cell. The contents of array are sorted in ascending order by the euclidian distance between the cell and its neighbour cell. More...

#include <TePDIRegGrowSeg.hpp>

List of all members.

Public Member Functions

 CloserCells ()
 Defalt constructor.
void Insert (TePDIRGSCell *cell, float dist)
 New cell insertion.
void Update (TePDIRGSCell *cell, float dist)
 Cell update.
TePDIRGSCellMinimum (float &dist)
 Undocumented.
void Adjust ()
 Undocumented.
void Reset ()
 Undocumented.

Public Attributes

TePDIRGSCellcmin [MAXCLOSECELLS]
 Array of closest cells.
float dmin [MAXCLOSECELLS]
 Array of euclidian distances between the cell containing this object (CloserCells) and cmin[i].

Detailed Description

Keep a number (given by MAXCLOSECELLS) of closest neighbour cells of a cell. Its an ordered array of closest neighbour cells of a cell. The contents of array are sorted in ascending order by the euclidian distance between the cell and its neighbour cell.

The class cell hold some of the closest neighbour cells in this class. Every time the cell wants to the closest neighbour cell it calls methods of this class to retrieve closest neighbour.


Constructor & Destructor Documentation

CloserCells::CloserCells ( ) [inline]

Defalt constructor.


Member Function Documentation

void CloserCells::Adjust ( ) [inline]

Undocumented.

void CloserCells::Insert ( TePDIRGSCell cell,
float  dist 
) [inline]

New cell insertion.

Parameters:
cellCell pointer.
distDistance.
TePDIRGSCell* CloserCells::Minimum ( float &  dist) [inline]

Undocumented.

Parameters:
distDistance.
Returns:
Cell pointer.
void CloserCells::Reset ( ) [inline]

Undocumented.

void CloserCells::Update ( TePDIRGSCell cell,
float  dist 
) [inline]

Cell update.

Parameters:
cellCell pointer.
distDistance.

Member Data Documentation

Array of closest cells.

float CloserCells::dmin[MAXCLOSECELLS]

Array of euclidian distances between the cell containing this object (CloserCells) and cmin[i].


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