Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members

CGrid Class Reference

Class which is used to hold information about the grid. More...

#include <Grid.h>

List of all members.

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.


Detailed Description

Class which is used to hold information about the grid.

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.

---------------------------------------------------------------------------


Member Function Documentation

unsigned int CGrid::GetDegenerateErrors void   )  [static]
 

Gets the degenerate errors.

--------------------------------------------------------------------------
CGeoLatLong::GetDegenerateErrors

---------------------------------------------------------------------------

double CGrid::GetGridSize void   )  [static]
 

Gets the grid size.

--------------------------------------------------------------------------
CGeoLatLong::GetGridSize

---------------------------------------------------------------------------

double CGrid::GetMinGridSize const C2DRect cRect,
bool  bRoundToNearestDecimalFactor = false
[static]
 

Finds a recommended minimum grid size to avoid point equality problems.

--------------------------------------------------------------------------
CGeoLatLong::GetMinGridSize

---------------------------------------------------------------------------

void CGrid::LogDegenerateError void   )  [static]
 

Used to log a degenerate error.

--------------------------------------------------------------------------
CGeoLatLong::GetDegenerateErrors

---------------------------------------------------------------------------

void CGrid::ResetDegenerateErrors void   )  [static]
 

Resets the degenerate count.

--------------------------------------------------------------------------
CGeoLatLong::ResetDegenerateErrors

---------------------------------------------------------------------------

void CGrid::SetGridSize double  dGridSize  )  [static]
 

Sets the size of the grid.

--------------------------------------------------------------------------
CGeoLatLong::SetGridSize

---------------------------------------------------------------------------

void CGrid::SetToMinGridSize const C2DRect cRect,
bool  bRoundToNearestDecimalFactor = false
[static]
 

Sets to the minimum recommended size for degenerate handling.

--------------------------------------------------------------------------
CGeoLatLong::SetToMinGridSize

---------------------------------------------------------------------------


The documentation for this class was generated from the following files:
Generated on Mon Apr 21 11:43:52 2008 for GeoLib by  doxygen 1.4.4