13 #ifndef MITKIGTLDevice_H_HEADER_INCLUDED_ 14 #define MITKIGTLDevice_H_HEADER_INCLUDED_ 17 #include <MitkUSExports.h> 29 template<
class T>
class SmartPointer;
34 class USVideoDeviceCustomControls;
35 class USAbstractControlInterface;
51 std::string GetDeviceClass()
override;
52 USImageSource::Pointer GetUSImageSource()
override;
54 USIGTLDevice(std::string manufacturer, std::string model, std::string host,
55 int port,
bool server);
68 void UnregisterOnService();
76 std::vector<mitk::USProbe::Pointer> GetAllProbes()
override;
81 void DeleteAllProbes()
override;
88 mitk::USProbe::Pointer GetCurrentProbe()
override;
93 void AddNewProbe(mitk::USProbe::Pointer probe)
override;
99 mitk::USProbe::Pointer GetProbeByName(std::string name)
override;
104 void RemoveProbeByName(std::string name)
override;
110 void SetDefaultProbeAsCurrentProbe()
override;
115 void SetCurrentProbe(std::string probename)
override;
120 void SetSpacing(
double xSpacing,
double ySpacing)
override;
124 bool OnInitialization()
override;
125 bool OnConnection()
override;
126 bool OnDisconnection()
override;
127 bool OnActivation()
override;
128 bool OnDeactivation()
override;
134 void GenerateData()
override;
139 mitk::IGTLDevice::Pointer m_Device;
140 mitk::IGTL2DImageDeviceSource::Pointer m_DeviceSource;
141 mitk::IGTLTrackingDataDeviceSource::Pointer m_TransformDeviceSource;
142 mitk::IGTLMessageToUSImageFilter::Pointer m_Filter;
152 std::vector < mitk::USProbe::Pointer > m_Probes;
157 mitk::USProbe::Pointer m_CurrentProbe;
161 #endif // MITKIGTLDevice_H_HEADER_INCLUDED_
A device holds information about it's model, make and the connected probes. It is the common super cl...
Superclass of all classes generating some kind of mitk::BaseData.
DataCollection - Class to facilitate loading/accessing structured data.
#define mitkClassMacro(className, SuperClassName)
A mitk::USIGTLDevice is a USDevice to receive images over an OpenIGTLink connection. It registers an OIGTL device as a Microservice to receive image messages and transforms them to mitk::Images. It can act both as a server (listening for incoming connections) and as a client (connecting to an existing OIGTL server).
#define mitkNewMacro5Param(classname, typea, typeb, typec, typed, typee)