18 #ifndef MITKIGTLMESSAGEH_HEADER_INCLUDED_
19 #define MITKIGTLMESSAGEH_HEADER_INCLUDED_
21 #include <itkDataObject.h>
22 #include "MitkOpenIGTLinkExports.h"
26 #include "igtlMessageBase.h"
39 class MITKOPENIGTLINK_EXPORT
IGTLMessage :
public itk::DataObject
43 itkFactorylessNewMacro(Self);
63 virtual bool IsDataValid()
const;
68 itkSetMacro(DataValid,
bool);
76 itkSetStringMacro(Name);
80 itkGetStringMacro(Name);
92 virtual void Graft(
const DataObject *data)
override;
99 virtual void CopyInformation(
const DataObject* data)
override;
106 void PrintSelf(std::ostream& os, itk::Indent indent)
const override;
122 const char* GetIGTLMessageType()
const;
124 template <
typename IGTLMessageType > IGTLMessageType* GetMessage()
const;
194 bool verbose =
false );
std::string m_Name
name of the navigation data
itk::SmartPointer< Self > Pointer
DataCollection - Class to facilitate loading/accessing structured data.
bool m_DataValid
defines if the object contains valid values
Time stamp in milliseconds.
#define mitkNewMacro2Param(classname, typea, typeb)
A wrapper for the OpenIGTLink message type.
#define mitkClassMacroItkParent(className, SuperClassName)
Event/message/notification class.
#define mitkCloneMacro(classname)
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.
MITKCORE_EXPORT const ScalarType eps
TimeStampType m_IGTTimeStamp
contains the time at which the tracking data was recorded
igtl::MessageBase::Pointer m_Message
holds the actual OpenIGTLink message
double TimeStampType
type that holds the time at which the data was recorded