karto::CoordinateConverter Class Reference
#include <Karto.h>
List of all members.
Detailed Description
The CoordinateConverter class is used to convert coordinates between world and grid coordinates In world coordinates 1.0 = 1 meter where 1 in grid coordinates = 1 pixel! Default scale for coordinate converter is 20 that converters to 1 pixel = 0.05 meter
Definition at line 4011 of file Karto.h.
Constructor & Destructor Documentation
karto::CoordinateConverter::CoordinateConverter |
( |
|
) |
[inline] |
Default constructor
Definition at line 4017 of file Karto.h.
Member Function Documentation
BoundingBox2 karto::CoordinateConverter::GetBoundingBox |
( |
|
) |
const [inline] |
Gets the bounding box
- Returns:
- bounding box
Definition at line 4153 of file Karto.h.
const Vector2<kt_double>& karto::CoordinateConverter::GetOffset |
( |
|
) |
const [inline] |
Gets the offset
- Returns:
- offset
Definition at line 4099 of file Karto.h.
kt_double karto::CoordinateConverter::GetResolution |
( |
|
) |
const [inline] |
Gets the resolution
- Returns:
- resolution
Definition at line 4135 of file Karto.h.
kt_double karto::CoordinateConverter::GetScale |
( |
|
) |
const [inline] |
Gets the scale
- Returns:
- scale
Definition at line 4081 of file Karto.h.
const Size2<kt_int32s>& karto::CoordinateConverter::GetSize |
( |
|
) |
const [inline] |
Gets the size
- Returns:
- size
Definition at line 4126 of file Karto.h.
Converts the point from grid coordinates to world coordinates
- Parameters:
-
- Returns:
- world coordinate
Definition at line 4060 of file Karto.h.
void karto::CoordinateConverter::SetOffset |
( |
const Vector2< kt_double > & |
rOffset |
) |
[inline] |
Sets the offset
- Parameters:
-
Definition at line 4108 of file Karto.h.
void karto::CoordinateConverter::SetResolution |
( |
kt_double |
resolution |
) |
[inline] |
Sets the resolution
- Parameters:
-
Definition at line 4144 of file Karto.h.
void karto::CoordinateConverter::SetScale |
( |
kt_double |
scale |
) |
[inline] |
Sets the scale
- Parameters:
-
Definition at line 4090 of file Karto.h.
void karto::CoordinateConverter::SetSize |
( |
const Size2< kt_int32s > & |
rSize |
) |
[inline] |
Sets the size
- Parameters:
-
Definition at line 4117 of file Karto.h.
Scales the value
- Parameters:
-
- Returns:
- scaled value
Definition at line 4028 of file Karto.h.
Converts the point from world coordinates to grid coordinates
- Parameters:
-
- Returns:
- grid coordinate
Definition at line 4038 of file Karto.h.
Member Data Documentation
The documentation for this class was generated from the following file: