AURobotServers
4
|
#include <umapgmk.h>
Public Member Functions | |
void | copy (UMapGmk *source) |
float | getBlockSize () |
unsigned long | getID () |
int | getSize () |
bool | load (Uxml3D *fxmap, char *name=NULL) |
void | print () |
bool | save (Uxml3D *fxmap, const char *name=NULL) |
void | setBlock (const float size) |
void | setFrame (const int size) |
void | setID (const unsigned long ID) |
UMapGmk () | |
UMapGmk (const unsigned long ID, const float size, const int frame) | |
~UMapGmk () | |
Private Attributes | |
float | blockSize |
unsigned long | code |
int | frameSize |
Class that holds additional information for a map object regarding guidemark information. size, number etc.
UMapGmk::UMapGmk | ( | ) |
Constructor
UMapGmk::UMapGmk | ( | const unsigned long | ID, |
const float | size, | ||
const int | frame | ||
) |
UMapGmk::~UMapGmk | ( | ) |
Destructor
|
inline |
Set guidemark info as a copy of the source data.
|
inline |
Get size of each block in GMK frame.
References blockSize.
|
inline |
Get code
References code.
|
inline |
Get number of blocks each side of GMK frame.
References frameSize.
bool UMapGmk::load | ( | Uxml3D * | fxmap, |
char * | name = NULL |
||
) |
Load guidemark info - ex position - from a xml-class object. Returns true if loaded. Errors are reported to UxmlFile-class.
Referenced by setFrame().
void UMapGmk::print | ( | ) |
Print guidemark information to console
Referenced by setFrame().
bool UMapGmk::save | ( | Uxml3D * | fxmap, |
const char * | name = NULL |
||
) |
Save guidemark infor in html-like format. Returns true if saved.
Referenced by setFrame().
|
inline |
Set block size (nformation only).
References blockSize.
|
inline |
|
inline |
Set (or change) ID
References code.
|
private |
Size of each frame block - im meter. e.g. 0.02 for 2 cm blocks
Referenced by UMapZGmk::getBlock(), getBlockSize(), and setBlock().
|
private |
Guidemark code (in short form (32 but integer))
Referenced by UMapZGmk::getBlock(), getID(), UMapZGmk::getID(), and setID().
|
private |
Number of blocks each side ofGMK
Referenced by UMapZGmk::getFrame(), getSize(), and setFrame().