Vis::PointGrid Class Reference
#include <VisPointGrid.h>
List of all members.
|
Public Member Functions |
| PointGrid (int dimX, int dimY, float gridSize) |
| ~PointGrid () |
void | ReCreate (int dimX, int dimY, float gridSize) |
void | Insert (V2f &point) |
bool | Test (V2f &point, float dist) |
bool | Test (V2f &point, float dist, list< V2f > &ignore) |
float | GetThicknessCoeff (V2f &point, float dist, list< V2f > &ignore) |
Detailed Description
PointGrid Datastructure for efficient point distance lookup
Constructor & Destructor Documentation
Vis::PointGrid::PointGrid |
( |
int |
dimX, |
|
|
int |
dimY, |
|
|
float |
gridSize | |
|
) |
| | |
ctor.
- Parameters:
-
| dimX | value range the point coordinates are supposed to be at max in X |
| dimY | value range the point coordinates are supposed to be at max in Y |
| gridSize | the distance for which to Test |
Vis::PointGrid::~PointGrid |
( |
|
) |
|
Member Function Documentation
float Vis::PointGrid::GetThicknessCoeff |
( |
V2f & |
point, |
|
|
float |
dist, |
|
|
list< V2f > & |
ignore | |
|
) |
| | |
GetThicknessCoeff based on distance to other points
- Parameters:
-
| point | the point to test for |
| dist | the distance used for the comparison |
| ignore | a list of points not to take into account during the test |
void Vis::PointGrid::Insert |
( |
V2f & |
point |
) |
|
Insert a point
- Parameters:
-
| point | the point to be inserted |
void Vis::PointGrid::ReCreate |
( |
int |
dimX, |
|
|
int |
dimY, |
|
|
float |
gridSize | |
|
) |
| | |
Recreates the point grid
- Parameters:
-
| dimX | value range the point coordinates are supposed to be at max in X |
| dimY | value range the point coordinates are supposed to be at max in Y |
| gridSize | the distance for which to Test |
bool Vis::PointGrid::Test |
( |
V2f & |
point, |
|
|
float |
dist, |
|
|
list< V2f > & |
ignore | |
|
) |
| | |
Test if a point is close to another
- Parameters:
-
| point | the point to test for |
| dist | the distance used for the comparison |
| ignore | a list of points not to take into account during the test |
bool Vis::PointGrid::Test |
( |
V2f & |
point, |
|
|
float |
dist | |
|
) |
| | |
Test if a point is close to another
- Parameters:
-
| point | the point to test for |
| dist | the distance used for the comparison |
The documentation for this class was generated from the following files:
- E:/Studium/vislu/abgabe2/visproj/src/flow/VisPointGrid.h
- E:/Studium/vislu/abgabe2/visproj/src/flow/impl/VisPointGrid.cpp