#include <Grid.h>

Static Public Member Functions | |
| static Grid * | CreateGrid (kt_int32s width, kt_int32s height, kt_double resolution) |
Protected Member Functions | |
| void | Clear () |
| Grid * | Clone () |
| BoundingBox2 | GetBoundingBox () const |
| CoordinateConverter * | GetCoordinateConverter () const |
| T * | GetDataPointer (const Vector2i &rGrid) |
| T * | GetDataPointer (const Vector2i &rGrid) const |
| T * | GetDataPointer () |
| T * | GetDataPointer () const |
| kt_int32s | GetDataSize () const |
| kt_int32s | GetHeight () const |
| kt_double | GetResolution () const |
| const Size2< kt_int32s > | GetSize () const |
| T | GetValue (const Vector2i &rGrid) const |
| kt_int32s | GetWidth () const |
| kt_int32s | GetWidthStep () const |
| Grid (kt_int32s width, kt_int32s height) | |
| virtual kt_int32s | GridIndex (const Vector2i &rGrid, kt_bool boundaryCheck=true) const |
| Vector2d | GridToWorld (const Vector2i &rGrid, kt_bool flipY=false) const |
| Vector2i | IndexToGrid (kt_int32s index) const |
| kt_bool | IsValidGridIndex (const Vector2i &rGrid) const |
| virtual void | Resize (kt_int32s width, kt_int32s height) |
| void | SetValue (const Vector2i &rGrid, T rValue) const |
| void | TraceLine (kt_int32s x0, kt_int32s y0, kt_int32s x1, kt_int32s y1, Functor *f=NULL) |
| Vector2i | WorldToGrid (const Vector2d &rWorld, kt_bool flipY=false) const |
Protected Member Functions inherited from karto::Object | |
| const Identifier & | GetIdentifier () const |
| AbstractParameter * | GetParameter (const String &rParameterName) const |
| template<typename T > | |
| Parameter< T > * | GetParameter (const String &rParameterName) const |
| ParameterList | GetParameters () |
| ParameterSet * | GetParameterSet () |
| template<typename T > | |
| void | SetParameters (const karto::String &rParameterName, const T &rValue) |
Protected Member Functions inherited from karto::Referenced | |
| kt_int32s | GetReferenceCount () |
| kt_int32s | Reference () const |
| kt_int32s | Unreference () const |
| kt_int32s | UnreferenceNoDelete () const |
Private Member Functions | |
| Grid (const Grid &) | |
| KARTO_RTTI () | |
| const Grid & | operator= (const Grid &) |
Private Attributes | |
| kt_int32s | m_Height |
| CoordinateConverter * | m_pCoordinateConverter |
| T * | m_pData |
| kt_int32s | m_Width |
| kt_int32s | m_WidthStep |
Additional Inherited Members | |
Public Member Functions inherited from karto::Object | |
| Object () | |
| Object (const Identifier &rIdentifier) | |
Public Member Functions inherited from karto::Referenced | |
| Referenced () | |
|
inlineprotected |
|
private |
|
inlineprotected |
|
inlineprotected |
|
inlinestatic |
|
inlineprotected |
|
inlineprotected |
|
inlineprotected |
|
inlineprotected |
|
inlineprotected |
|
inlineprotected |
|
inlineprotected |
|
inlineprotected |
|
inlineprotected |
|
inlineprotected |
|
inlineprotected |
|
inlineprotected |
|
inlineprotected |
|
inlineprotectedvirtual |
Gets the index into the data pointer of the given grid coordinate
| rGrid | grid index |
| boundaryCheck | whether to check if the grid index is in the grid boundaries |
| Exception | if boundaryCheck is true and the grid index falls outside the grid boundaries |
Reimplemented in karto::CorrelationGrid.
|
inlineprotected |
|
inlineprotected |
|
inlineprotected |
|
private |
|
private |
|
inlineprotectedvirtual |
Resizes the grid (deletes all old data)
| width | new width |
| height | new height |
Reimplemented in karto::OccupancyGrid.
|
inlineprotected |
|
inlineprotected |
|
private |
|
private |
|
private |
|
private |
|
private |