NorMIT-nav
16.5
An IGT application
|
Reader class for the position file. More...
#include <cxPositionStorageFile.h>
Public Member Functions | |
PositionStorageReader (QString filename) | |
~PositionStorageReader () | |
bool | read (Transform3D *matrix, double *timestamp, int *toolIndex) |
bool | read (Transform3D *matrix, double *timestamp, QString *toolUid) |
bool | atEnd () const |
int | version () |
Static Public Member Functions | |
static QString | timestampToString (double timestamp) |
Reader class for the position file.
Each call to read() gives the next position entry from the file. When atEnd() returns true, all positions have been read.
Binary file format description
Header: "SNWPOS"<version> Entries, can be one of: * Change tool. All position entries following this one belongs to the given tool <type=2><size><toolUid> * Position. integer-format tool id are appended. <type=1><size><timestamp><position><int toolid> * Position. Requires change tool to have been called. <type=3><size><timestamp><position> The position field is <position> = <thetaXY><thetaZ><phi><x><y><z> Where the parameters are found from a matrix using the class CGFrame.
Definition at line 78 of file cxPositionStorageFile.h.
cx::PositionStorageReader::PositionStorageReader | ( | QString | filename | ) |
Definition at line 44 of file cxPositionStorageFile.cpp.
cx::PositionStorageReader::~PositionStorageReader | ( | ) |
Definition at line 70 of file cxPositionStorageFile.cpp.
bool cx::PositionStorageReader::atEnd | ( | ) | const |
Definition at line 187 of file cxPositionStorageFile.cpp.
bool cx::PositionStorageReader::read | ( | Transform3D * | matrix, |
double * | timestamp, | ||
int * | toolIndex | ||
) |
Definition at line 80 of file cxPositionStorageFile.cpp.
bool cx::PositionStorageReader::read | ( | Transform3D * | matrix, |
double * | timestamp, | ||
QString * | toolUid | ||
) |
Definition at line 106 of file cxPositionStorageFile.cpp.
|
static |
convert a timestamp to a string. Input format is 64 bit millisecond time.
Definition at line 195 of file cxPositionStorageFile.cpp.
int cx::PositionStorageReader::version | ( | ) |
Definition at line 75 of file cxPositionStorageFile.cpp.