![]() |
TerraLib 4.1
|
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>
Public Member Functions | |
| CloserCells () | |
| Defalt constructor. | |
| void | Insert (TePDIRGSCell *cell, float dist) |
| New cell insertion. | |
| void | Update (TePDIRGSCell *cell, float dist) |
| Cell update. | |
| TePDIRGSCell * | Minimum (float &dist) |
| Undocumented. | |
| void | Adjust () |
| Undocumented. | |
| void | Reset () |
| Undocumented. | |
Public Attributes | |
| TePDIRGSCell * | cmin [MAXCLOSECELLS] |
| Array of closest cells. | |
| float | dmin [MAXCLOSECELLS] |
| Array of euclidian distances between the cell containing this object (CloserCells) and cmin[i]. | |
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.
| CloserCells::CloserCells | ( | ) | [inline] |
Defalt constructor.
| void CloserCells::Adjust | ( | ) | [inline] |
Undocumented.
| void CloserCells::Insert | ( | TePDIRGSCell * | cell, |
| float | dist | ||
| ) | [inline] |
New cell insertion.
| cell | Cell pointer. |
| dist | Distance. |
| TePDIRGSCell* CloserCells::Minimum | ( | float & | dist | ) | [inline] |
Undocumented.
| dist | Distance. |
| void CloserCells::Reset | ( | ) | [inline] |
Undocumented.
| void CloserCells::Update | ( | TePDIRGSCell * | cell, |
| float | dist | ||
| ) | [inline] |
Cell update.
| cell | Cell pointer. |
| dist | Distance. |
| TePDIRGSCell* CloserCells::cmin[MAXCLOSECELLS] |
Array of closest cells.
| float CloserCells::dmin[MAXCLOSECELLS] |
Array of euclidian distances between the cell containing this object (CloserCells) and cmin[i].