14 #ifndef MITKNDIPROTOCOL_H_HEADER_INCLUDED_ 15 #define MITKNDIPROTOCOL_H_HEADER_INCLUDED_ 17 #include <itkObject.h> 18 #include <itkObjectFactory.h> 20 #include <MitkIGTExports.h> 26 class NDITrackingDevice;
90 itkFactorylessNewMacro(Self);
105 NDIErrorCode PHINF(std::string portHandle, std::string* portInfo);
106 NDIErrorCode PSOUT(std::string portHandle, std::string state);
116 NDIErrorCode PVWR(std::string* portHandle,
const unsigned char* sromData,
unsigned int sromDataLength);
118 NDIErrorCode PENA(std::string* portHandle, TrackingPriority prio);
131 unsigned int ByteToNbBitsOn(
char& c)
const;
132 itkGetConstMacro(UseCRC,
bool);
133 itkSetMacro(UseCRC,
bool);
134 itkBooleanMacro(UseCRC);
151 NDIErrorCode GenericCommand(
const std::string command,
const std::string* parameter =
nullptr);
mitk::SerialCommunication::StopBits StopBits
Number of stop bits used in the serial connection.
mitk::SerialCommunication::DataBits DataBits
Number of data bits used in the serial connection.
mitk::SerialCommunication::HardwareHandshake HardwareHandshake
Hardware handshake mode of the serial connection.
IlluminationActivationRate
activation rate of IR illuminator for NDI Polaris tracking device
DataCollection - Class to facilitate loading/accessing structured data.
PHSRQueryType
Query mode for NDI tracking devices.
static void info(const char *fmt,...)
mitk::NDIPassiveTool::TrackingPriority TrackingPriority
Tracking priority used for tracking a tool.
mitk::SerialCommunication::Parity Parity
Parity mode used in the serial connection.
#define mitkClassMacroItkParent(className, SuperClassName)
NDITrackingDevice * m_TrackingDevice
tracking device to which the commands will be send
Interface for all Tracking Devices.
mitk::SerialCommunication::BaudRate BaudRate
Baud rate of the serial connection.
std::vector< MarkerPointType > MarkerPointContainerType
std::string TrackingDeviceType
superclass for specific NDI tracking Devices that use serial communication.
NDIErrorCode
Error codes of NDI tracking devices.
bool m_UseCRC
whether to append a CRC16 checksum to each message
The NDI Protocol class provides building and parsing of command strings and answers to and from a NDI...
mitk::SerialCommunication::PortNumber PortNumber
Port number of the serial connection.