7 #ifndef __vtkPlusOpenIGTLinkDevice_h 8 #define __vtkPlusOpenIGTLinkDevice_h 10 #include "vtkPlusDataCollectionExport.h" 11 #include "PlusConfigure.h" 15 #include <igtlClientSocket.h> 16 #include <igtlMessageBase.h> 51 bool SendMessage(igtl::MessageBase::Pointer packedMessage);
54 vtkSetStdStringMacro(MessageType);
56 vtkGetStdStringMacro(MessageType);
59 vtkSetMacro(ImageMessageEmbeddedTransformName, igsioTransformName);
60 vtkSetMacro(ImageMessageEmbeddedTransformName, std::string);
63 vtkGetMacro(ImageMessageEmbeddedTransformName, igsioTransformName);
66 vtkSetStdStringMacro(ServerAddress);
68 vtkGetStdStringMacro(ServerAddress);
71 vtkSetMacro(ServerPort,
int);
73 vtkGetMacro(ServerPort,
int);
76 vtkSetMacro(ReceiveTimeoutSec,
double);
78 vtkGetMacro(ReceiveTimeoutSec,
double);
81 vtkSetMacro(SendTimeoutSec,
double);
83 vtkGetMacro(SendTimeoutSec,
double);
86 vtkSetMacro(IgtlMessageCrcCheckEnabled,
int);
88 vtkGetMacro(IgtlMessageCrcCheckEnabled,
int);
91 vtkGetMacro(ReconnectOnReceiveTimeout,
bool);
101 virtual PlusStatus SendRequestedMessageTypes();
107 void OnReceiveTimeout();
112 void ReceiveMessageHeaderWithErrorHandling(igtl::MessageHeader::Pointer& headerMsg);
119 virtual PlusStatus ReceiveMessageHeader(igtl::MessageHeader::Pointer& headerMsg);
122 vtkSetMacro(ReconnectOnReceiveTimeout,
bool);
124 vtkSetMacro(UseReceivedTimestamps,
bool);
virtual void PrintSelf(ostream &os, vtkIndent indent) VTK_OVERRIDE
Abstract interface for tracker and video devices.
virtual PlusStatus InternalConnect()
vtkSmartPointer< vtkPlusIgtlMessageFactory > MessageFactory
std::string ServerAddress
vtkSmartPointer< vtkIGSIORecursiveCriticalSection > SocketMutex
igsioTransformName ImageMessageEmbeddedTransformName
virtual std::string GetSdkVersion()
virtual PlusStatus Probe()
int NumberOfRetryAttempts
virtual PlusStatus ReadConfiguration(vtkXMLDataElement *)
Common base class for OpenIGTLink-based tracking and video devices.
virtual PlusStatus WriteConfiguration(vtkXMLDataElement *)
Factory class of supported OpenIGTLink message types.
bool UseReceivedTimestamps
igtl::ClientSocket::Pointer ClientSocket
virtual PlusStatus InternalDisconnect()
double DelayBetweenRetryAttemptsSec
int IgtlMessageCrcCheckEnabled
bool ReconnectOnReceiveTimeout