14#ifndef mitkNDIProtocol_h
15#define mitkNDIProtocol_h
18#include <itkObjectFactory.h>
20#include <MitkIGTExports.h>
26 class NDITrackingDevice;
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);
131 unsigned int ByteToNbBitsOn(
char& c)
const;
151 NDIErrorCode GenericCommand(
const std::string command,
const std::string* parameter =
nullptr);
The NDI Protocol class provides building and parsing of command strings and answers to and from a NDI...
mitk::SerialCommunication::DataBits DataBits
Number of data bits used in the serial connection.
itkSetMacro(UseCRC, bool)
Set whether to append a CRC16 checksum to each message.
itkSetObjectMacro(TrackingDevice, NDITrackingDevice)
mitkClassMacroItkParent(NDIProtocol, itk::Object)
itkBooleanMacro(UseCRC)
Set whether to append a CRC16 checksum to each message.
mitk::SerialCommunication::StopBits StopBits
Number of stop bits used in the serial connection.
NDITrackingDevice * m_TrackingDevice
tracking device to which the commands will be send
itkGetConstMacro(UseCRC, bool)
Get whether to append a CRC16 checksum to each message.
bool m_UseCRC
whether to append a CRC16 checksum to each message
mitk::SerialCommunication::Parity Parity
Parity mode used in the serial connection.
mitk::SerialCommunication::PortNumber PortNumber
Port number of the serial connection.
mitk::SerialCommunication::BaudRate BaudRate
Baud rate of the serial connection.
mitk::NDIPassiveTool::TrackingPriority TrackingPriority
Tracking priority used for tracking a tool.
itkFactorylessNewMacro(Self)
mitk::SerialCommunication::HardwareHandshake HardwareHandshake
Hardware handshake mode of the serial connection.
superclass for specific NDI tracking Devices that use serial communication.
Interface for all Tracking Devices.
IlluminationActivationRate
activation rate of IR illuminator for NDI Polaris tracking device
std::vector< MarkerPointType > MarkerPointContainerType
std::string TrackingDeviceType
NDIErrorCode
Error codes of NDI tracking devices.
@ NDICANTINITIRDIAGNOSTICS
@ NDIINCORRECTNUMBEROFPARAMETERS
@ NDIINVALIDOPERATIONFORDEVICE
@ NDIINVALIDPORTDESCRIPTION
@ NDIINVALIDVOLUMEPARAMETERS
@ NDICOMMANDPARAMETEROUTOFRANGE
@ NDISYSTEMNOTINITIALIZED
@ NDIINCOMPATIBLEFIRMWAREVERSIONS
@ NDICANTSTARTDIAGNOSTICMODE
@ NDIINITIALIZATIONFAILED
@ NDIUNABLETOSTARTTRACKING
@ NDIUNABLETOSETNEWCOMMPARAMETERS
@ NDIUNABLETOSTOPTRACKING
@ NDIPORTHASBECOMEUNOCCUPIED
@ NDICOMMANDINVALIDINCURRENTMODE
@ NDIPORTHANDLENOTALLOCATED
@ NDIENABLEDTOOLSNOTSUPPORTED
@ NDIINVALIDTRACKINGPRIORITY
PHSRQueryType
Query mode for NDI tracking devices.