#include <Grid.h>
Public Types | |
enum | eDegenerateHandling |
Enumeration for degenerate handling methods. | |
Public Member Functions | |
CGrid (void) | |
Constructor. | |
~CGrid (void) | |
Destructor. | |
Static Public Member Functions | |
static void | SetGridSize (double dGridSize) |
Sets the size of the grid. | |
static double | GetGridSize (void) |
Gets the grid size. | |
static double | GetMinGridSize (const C2DRect &cRect, bool bRoundToNearestDecimalFactor=false) |
Finds a recommended minimum grid size to avoid point equality problems. | |
static void | SetToMinGridSize (const C2DRect &cRect, bool bRoundToNearestDecimalFactor=false) |
Sets to the minimum recommended size for degenerate handling. | |
static void | ResetDegenerateErrors (void) |
Resets the degenerate count. | |
static unsigned int | GetDegenerateErrors (void) |
Gets the degenerate errors. | |
static void | LogDegenerateError (void) |
Used to log a degenerate error. |
The grid is simply a spacing between allowable points. When objects are "Snapped" to the grid, all points must then lie on the grid lines. This is used within GeoLib to manage degenerate cases but has other applications. Also used to record degenerate errors. All functions are static.
---------------------------------------------------------------------------
|
Gets the degenerate errors.
-------------------------------------------------------------------------- --------------------------------------------------------------------------- |
|
Gets the grid size.
-------------------------------------------------------------------------- --------------------------------------------------------------------------- |
|
Finds a recommended minimum grid size to avoid point equality problems.
-------------------------------------------------------------------------- --------------------------------------------------------------------------- |
|
Used to log a degenerate error.
-------------------------------------------------------------------------- --------------------------------------------------------------------------- |
|
Resets the degenerate count.
-------------------------------------------------------------------------- --------------------------------------------------------------------------- |
|
Sets the size of the grid.
-------------------------------------------------------------------------- --------------------------------------------------------------------------- |
|
Sets to the minimum recommended size for degenerate handling.
-------------------------------------------------------------------------- --------------------------------------------------------------------------- |