karto::Grid< T > Class Template Reference
#include <Karto.h>
List of all members.
Public Member Functions |
void | Clear () |
Grid * | Clone () |
BoundingBox2 | GetBoundingBox () const |
CoordinateConverter * | GetCoordinateConverter () const |
T * | GetDataPointer () const |
T * | GetDataPointer () |
T * | GetDataPointer (const Vector2< kt_int32s > &rGrid) const |
T * | GetDataPointer (const Vector2< kt_int32s > &rGrid) |
kt_int32s | GetDataSize () const |
kt_int32s | GetHeight () const |
kt_double | GetResolution () const |
const Size2< kt_int32s > | GetSize () const |
T | GetValue (const Vector2< kt_int32s > &rGrid) const |
kt_int32s | GetWidth () const |
kt_int32s | GetWidthStep () const |
virtual kt_int32s | GridIndex (const Vector2< kt_int32s > &rGrid, kt_bool boundaryCheck=true) const |
Vector2< kt_double > | GridToWorld (const Vector2< kt_int32s > &rGrid, kt_bool flipY=false) const |
Vector2< kt_int32s > | IndexToGrid (kt_int32s index) const |
kt_bool | IsValidGridIndex (const Vector2< kt_int32s > &rGrid) const |
virtual void | Resize (kt_int32s width, kt_int32s height) |
void | TraceLine (kt_int32s x0, kt_int32s y0, kt_int32s x1, kt_int32s y1, Functor *f=NULL) |
Vector2< kt_int32s > | WorldToGrid (const Vector2< kt_double > &rWorld, kt_bool flipY=false) const |
virtual | ~Grid () |
Static Public Member Functions |
static Grid * | CreateGrid (kt_int32s width, kt_int32s height, kt_double resolution) |
Protected Member Functions |
| Grid (kt_int32s width, kt_int32s height) |
Private Attributes |
kt_int32s | m_Height |
CoordinateConverter * | m_pCoordinateConverter |
T * | m_pData |
kt_int32s | m_Width |
kt_int32s | m_WidthStep |
Detailed Description
template<typename T>
class karto::Grid< T >
Defines a grid class
Definition at line 4182 of file Karto.h.
Constructor & Destructor Documentation
Constructs grid of given size
- Parameters:
-
Definition at line 4547 of file Karto.h.
Member Function Documentation
Clear out the grid data
Definition at line 4214 of file Karto.h.
Returns a clone of this grid
- Returns:
- grid clone
Definition at line 4223 of file Karto.h.
Creates a grid of given size and resolution
- Parameters:
-
- Returns:
- grid pointer
Definition at line 4192 of file Karto.h.
Gets the grids bounding box
- Returns:
- bounding box
Definition at line 4460 of file Karto.h.
Gets the coordinate converter for this grid
- Returns:
- coordinate converter
Definition at line 4442 of file Karto.h.
Gets const grid data pointer
- Returns:
- data pointer
Definition at line 4413 of file Karto.h.
Gets the grid data pointer
- Returns:
- data pointer
Definition at line 4404 of file Karto.h.
Gets pointer to data at given grid coordinate
- Parameters:
-
- Returns:
- grid point
Definition at line 4362 of file Karto.h.
Gets pointer to data at given grid coordinate
- Parameters:
-
- Returns:
- grid point
Definition at line 4351 of file Karto.h.
Gets the allocated grid size in bytes
- Returns:
- data size
Definition at line 4422 of file Karto.h.
Gets the height of the grid
- Returns:
- height of the grid
Definition at line 4381 of file Karto.h.
Gets the resolution
- Returns:
- resolution
Definition at line 4451 of file Karto.h.
Get value at given grid coordinate
- Parameters:
-
- Returns:
- value
Definition at line 4432 of file Karto.h.
Gets the width of the grid
- Returns:
- width of the grid
Definition at line 4372 of file Karto.h.
Gets the width step in bytes
- Returns:
- width step
Definition at line 4395 of file Karto.h.
Gets the index into the data pointer of the given grid coordinate
- Parameters:
-
| rGrid | |
| boundaryCheck | default value is true |
- Returns:
- grid index
Reimplemented in karto::CorrelationGrid.
Definition at line 4289 of file Karto.h.
Converts the point from grid coordinates to world coordinates
- Parameters:
-
- Returns:
- world coordinate
Definition at line 4341 of file Karto.h.
Gets the grid coordinate from an index
- Parameters:
-
- Returns:
- grid coordinate
Definition at line 4316 of file Karto.h.
Checks whether the given coordinates are valid grid indices
- Parameters:
-
Definition at line 4278 of file Karto.h.
Increments all the grid cells from (x0, y0) to (x1, y1); if applicable, apply f to each cell traced
- Parameters:
-
Definition at line 4474 of file Karto.h.
Converts the point from world coordinates to grid coordinates
- Parameters:
-
- Returns:
- grid coordinate
Definition at line 4331 of file Karto.h.
Member Data Documentation
The documentation for this class was generated from the following file: