13 #ifndef mitkUSIGTLDevice_h
14 #define mitkUSIGTLDevice_h
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;