Public Member Functions |
void | Clear () |
Grid * | Clone () |
BoundingBox2 | GetBoundingBox () const |
CoordinateConverter * | GetCoordinateConverter () const |
T * | GetDataPointer (const Vector2< kt_int32s > &rGrid) |
T * | GetDataPointer (const Vector2< kt_int32s > &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 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 |
template<typename T>
class karto::Grid< T >
Defines a grid class
Definition at line 4352 of file Karto.h.