MyXda class implementation. More...
#include <myxda.h>
Public Types | |
| enum | DisplayMode { DM_None, DM_OrientationEuler, DM_OrientationQuaternion, DM_Sdi, DM_OrientationMatrix } |
Public Member Functions | |
| int | getUserUpdateRate () |
| MyXda () | |
| constructor, creates the XsControl object and registers the callbacks | |
| void | openPorts () |
| Opens all COM ports with either a station or an MTw conneted. | |
| void | setDisplayMode (DisplayMode displayMode) |
| Sets the display mode of incoming data. | |
| void | setUpdateRate (int updateRate) |
| XsControl * | xsControl () const |
| virtual | ~MyXda () |
| destructor, unregisters the callbacks and cleans up the XsControl object | |
Protected Member Functions | |
| virtual void | onDataAvailable (XsDevice *, const XsDataPacket *packet) |
| Callback function called if there is new data available from the device. | |
Private Member Functions | |
| void | clearMeasurementScreen () |
| Repaints the screen to an empty measurement screen. | |
| void | printDisplayMode () |
| Prints the current display mode on the screen. | |
Private Attributes | |
| int | m_connectCount |
| std::map< uint32_t, int > | m_connectedDevices |
| DisplayMode | m_displayMode |
| DisplayMode | m_previousDisplayMode |
| volatile bool | m_stationReady |
| XsControl * | m_xsControl |
MyXda class implementation.
The MyXda class is derived from the XsControl class and indirectly from the CmtCallback class. It is thereby able to overload the callback functions defined in CmtCallback
| enum MyXda::DisplayMode |
| MyXda::MyXda | ( | ) |
| MyXda::~MyXda | ( | ) | [virtual] |
| void MyXda::clearMeasurementScreen | ( | ) | [private] |
| int MyXda::getUserUpdateRate | ( | ) |
| void MyXda::onDataAvailable | ( | XsDevice * | , |
| const XsDataPacket * | packet | ||
| ) | [protected, virtual] |
| void MyXda::openPorts | ( | ) |
| void MyXda::printDisplayMode | ( | ) | [private] |
| void MyXda::setDisplayMode | ( | MyXda::DisplayMode | displayMode | ) |
| void MyXda::setUpdateRate | ( | int | updateRate | ) |
| XsControl* MyXda::xsControl | ( | ) | const [inline] |
int MyXda::m_connectCount [private] |
std::map<uint32_t, int> MyXda::m_connectedDevices [private] |
DisplayMode MyXda::m_displayMode [private] |
DisplayMode MyXda::m_previousDisplayMode [private] |
volatile bool MyXda::m_stationReady [private] |
XsControl* MyXda::m_xsControl [private] |