Medical Imaging Interaction Toolkit
2023.04.00
Medical Imaging Interaction Toolkit
|
Go to the documentation of this file.
14 #ifndef mitkNDIProtocol_h
15 #define mitkNDIProtocol_h
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);
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);
@ NDIUNABLETOSTOPTRACKING
@ NDICOMMANDPARAMETEROUTOFRANGE
mitk::SerialCommunication::StopBits StopBits
Number of stop bits used in the serial connection.
@ NDIINVALIDTRACKINGPRIORITY
@ NDIINITIALIZATIONFAILED
@ NDIINVALIDVOLUMEPARAMETERS
@ NDIPORTHANDLENOTALLOCATED
mitk::SerialCommunication::DataBits DataBits
Number of data bits used in the serial connection.
@ NDICANTINITIRDIAGNOSTICS
mitk::SerialCommunication::HardwareHandshake HardwareHandshake
Hardware handshake mode of the serial connection.
PHSRQueryType
Query mode for NDI tracking devices.
NDIErrorCode
Error codes of NDI tracking devices.
@ NDISYSTEMNOTINITIALIZED
#define mitkClassMacroItkParent(className, SuperClassName)
std::vector< MarkerPointType > MarkerPointContainerType
DataCollection - Class to facilitate loading/accessing structured data.
The NDI Protocol class provides building and parsing of command strings and answers to and from a NDI...
Interface for all Tracking Devices.
IlluminationActivationRate
activation rate of IR illuminator for NDI Polaris tracking device
mitk::SerialCommunication::Parity Parity
Parity mode used in the serial connection.
@ NDICANTSTARTDIAGNOSTICMODE
NDITrackingDevice * m_TrackingDevice
tracking device to which the commands will be send
@ NDIUNABLETOSETNEWCOMMPARAMETERS
@ NDIUNABLETOSTARTTRACKING
superclass for specific NDI tracking Devices that use serial communication.
bool m_UseCRC
whether to append a CRC16 checksum to each message
@ NDICOMMANDINVALIDINCURRENTMODE
@ NDIINVALIDPORTDESCRIPTION
@ NDIPORTHASBECOMEUNOCCUPIED
@ NDIINCORRECTNUMBEROFPARAMETERS
mitk::SerialCommunication::BaudRate BaudRate
Baud rate of the serial connection.
mitk::SerialCommunication::PortNumber PortNumber
Port number of the serial connection.
std::string TrackingDeviceType
mitk::NDIPassiveTool::TrackingPriority TrackingPriority
Tracking priority used for tracking a tool.
@ NDIINVALIDOPERATIONFORDEVICE
@ NDIENABLEDTOOLSNOTSUPPORTED
@ NDIINCOMPATIBLEFIRMWAREVERSIONS