#include <Grid.h>
karto::Grid< T >::Grid | ( | kt_int32s | width, |
kt_int32s | height | ||
) | [inline, protected] |
karto::Grid< T >::Grid | ( | const Grid< T > & | ) | [private] |
void karto::Grid< T >::Clear | ( | ) | [inline] |
Grid* karto::Grid< T >::Clone | ( | ) | [inline] |
static Grid* karto::Grid< T >::CreateGrid | ( | kt_int32s | width, |
kt_int32s | height, | ||
kt_double | resolution | ||
) | [inline, static] |
BoundingBox2 karto::Grid< T >::GetBoundingBox | ( | ) | const [inline] |
CoordinateConverter* karto::Grid< T >::GetCoordinateConverter | ( | ) | const [inline] |
T* karto::Grid< T >::GetDataPointer | ( | const Vector2i & | rGrid | ) | [inline] |
T* karto::Grid< T >::GetDataPointer | ( | const Vector2i & | rGrid | ) | const [inline] |
T* karto::Grid< T >::GetDataPointer | ( | ) | [inline] |
T* karto::Grid< T >::GetDataPointer | ( | ) | const [inline] |
kt_int32s karto::Grid< T >::GetDataSize | ( | ) | const [inline] |
kt_int32s karto::Grid< T >::GetHeight | ( | ) | const [inline] |
kt_double karto::Grid< T >::GetResolution | ( | ) | const [inline] |
const Size2<kt_int32s> karto::Grid< T >::GetSize | ( | ) | const [inline] |
T karto::Grid< T >::GetValue | ( | const Vector2i & | rGrid | ) | const [inline] |
kt_int32s karto::Grid< T >::GetWidth | ( | ) | const [inline] |
kt_int32s karto::Grid< T >::GetWidthStep | ( | ) | const [inline] |
virtual kt_int32s karto::Grid< T >::GridIndex | ( | const Vector2i & | rGrid, |
kt_bool | boundaryCheck = true |
||
) | const [inline, virtual] |
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.
Vector2d karto::Grid< T >::GridToWorld | ( | const Vector2i & | rGrid, |
kt_bool | flipY = false |
||
) | const [inline] |
Vector2i karto::Grid< T >::IndexToGrid | ( | kt_int32s | index | ) | const [inline] |
kt_bool karto::Grid< T >::IsValidGridIndex | ( | const Vector2i & | rGrid | ) | const [inline] |
karto::Grid< T >::KARTO_RTTI | ( | ) | [private] |
Reimplemented from karto::Object.
Reimplemented in karto::OccupancyGrid.
const Grid& karto::Grid< T >::operator= | ( | const Grid< T > & | ) | [private] |
virtual void karto::Grid< T >::Resize | ( | kt_int32s | width, |
kt_int32s | height | ||
) | [inline, virtual] |
Resizes the grid (deletes all old data)
width | new width |
height | new height |
Reimplemented in karto::OccupancyGrid.
void karto::Grid< T >::SetValue | ( | const Vector2i & | rGrid, |
T | rValue | ||
) | const [inline] |
Vector2i karto::Grid< T >::WorldToGrid | ( | const Vector2d & | rWorld, |
kt_bool | flipY = false |
||
) | const [inline] |
kt_int32s karto::Grid< T >::m_Height [private] |
CoordinateConverter* karto::Grid< T >::m_pCoordinateConverter [private] |
T* karto::Grid< T >::m_pData [private] |
kt_int32s karto::Grid< T >::m_Width [private] |
kt_int32s karto::Grid< T >::m_WidthStep [private] |