Represents a position inside a grid. More...
Public Member Functions | |
GridCoord () | |
Initialize this GridCoord with the origin. Creates a 3-dimensional coord. | |
GridCoord (int x, int y) | |
Initialize a 2-dimensional GridCoord with x and y. | |
GridCoord (int x, int y, int z) | |
Initialize a 3-dimensional GridCoord with x, y and z. | |
GridCoord (const GridCoord &o) | |
Simple copy-constructor. | |
GridCoord (const Coord &c, const Coord &gridCellSize=Coord(1.0, 1.0, 1.0)) | |
Creates a GridCoord from a given Coord by dividing the x,y and z-values by "gridCellWidth". The dimension of the GridCoord depends on the Coord. | |
std::string | info () const |
Output string for this coordinate. | |
Public Attributes | |
bool | use2D |
Use 2D or 3D coordinates? | |
Coordinates in the grid. | |
int | x |
int | y |
int | z |
Static Public Attributes | |
static const int | UNDEFINED = 0 |
Constant for undefined coordinates. | |
Friends | |
bool | operator== (const GridCoord &a, const GridCoord &b) |
Comparison operator for coordinates. | |
bool | operator!= (const GridCoord &a, const GridCoord &b) |
Comparison operator for coordinates. |
Represents a position inside a grid.
Internal helper class of BaseConnectionManager. This class provides some converting functions from a Coord to a GridCoord.
Definition at line 34 of file BaseConnectionManager.h.