Medical Imaging Interaction Toolkit
2023.04.99-859410e3
Medical Imaging Interaction Toolkit
|
Go to the documentation of this file.
14 #ifndef mitkIGTLMessage_h
15 #define mitkIGTLMessage_h
17 #include <itkDataObject.h>
22 #include "igtlMessageBase.h"
39 itkFactorylessNewMacro(Self);
51 void SetMessage(igtl::MessageBase::Pointer msg);
55 itkGetConstMacro(
Message, igtl::MessageBase::Pointer);
59 virtual bool IsDataValid()
const;
64 itkSetMacro(DataValid,
bool);
72 itkSetStringMacro(Name);
76 itkGetStringMacro(Name);
88 void Graft(
const DataObject *data)
override;
95 void CopyInformation(
const DataObject* data)
override;
102 void PrintSelf(std::ostream& os, itk::Indent indent)
const override;
104 std::string ToString()
const;
116 void Compose(
const mitk::IGTLMessage::Pointer n,
const bool pre =
false);
120 const char* GetIGTLMessageType()
const;
122 template <
typename IGTLMessageType > IGTLMessageType* GetMessage()
const;
162 static mitk::IGTLMessage::Pointer getComposition(
163 const mitk::IGTLMessage::Pointer nd1,
164 const mitk::IGTLMessage::Pointer nd2);
192 bool verbose =
false );
const MITKCORE_EXPORT ScalarType eps
Time stamp in milliseconds.
bool m_DataValid
defines if the object contains valid values
igtl::MessageBase::Pointer m_Message
holds the actual OpenIGTLink message
#define mitkNewMacro1Param(classname, type)
MITKNEWMODULE_EXPORT bool Equal(mitk::ExampleDataStructure *leftHandSide, mitk::ExampleDataStructure *rightHandSide, mitk::ScalarType eps, bool verbose)
Returns true if the example data structures are considered equal.
TimeStampType m_IGTTimeStamp
contains the time at which the tracking data was recorded
#define mitkClassMacroItkParent(className, SuperClassName)
A wrapper for the OpenIGTLink message type.
Find image slices visible on a given plane.
std::string m_Name
name of the navigation data
#define MITKOPENIGTLINK_EXPORT
double TimeStampType
type that holds the time at which the data was recorded in milliseconds
#define mitkCloneMacro(classname)
Event/message/notification class.