13 #ifndef MITKUSVideoDevice_H_HEADER_INCLUDED_ 14 #define MITKUSVideoDevice_H_HEADER_INCLUDED_ 16 #include <MitkUSExports.h> 21 #include <itkObjectFactory.h> 24 template<
class T>
class SmartPointer;
28 class USVideoDeviceCustomControls;
29 class USAbstractControlInterface;
56 std::string GetDeviceClass()
override;
65 static std::string GetDeviceClassStatic();
81 void UnregisterOnService();
86 USImageSource::Pointer GetUSImageSource()
override;
93 std::vector<mitk::USProbe::Pointer> GetAllProbes()
override;
98 void DeleteAllProbes()
override;
105 mitk::USProbe::Pointer GetCurrentProbe()
override;
110 void AddNewProbe(mitk::USProbe::Pointer probe)
override;
116 mitk::USProbe::Pointer GetProbeByName(std::string name)
override;
121 void RemoveProbeByName(std::string name)
override;
126 bool GetIsSourceFile();
132 void SetDefaultProbeAsCurrentProbe()
override;
137 void SetCurrentProbe( std::string probename )
override;
142 void SetSpacing(
double xSpacing,
double ySpacing )
override;
144 itkGetMacro(ImageVector, std::vector<mitk::Image::Pointer>);
145 itkGetMacro(DeviceID,
int);
146 itkGetMacro(FilePath, std::string);
154 USVideoDevice(
int videoDeviceNumber, std::string manufacturer, std::string model);
158 USVideoDevice(std::string videoFilePath, std::string manufacturer, std::string model);
164 USVideoDevice(
int videoDeviceNumber, mitk::USImageMetadata::Pointer metadata);
168 USVideoDevice(std::string videoFilePath, mitk::USImageMetadata::Pointer metadata);
181 bool OnInitialization()
override;
187 bool OnConnection()
override;
193 bool OnDisconnection()
override;
198 bool OnActivation()
override;
203 bool OnDeactivation()
override;
209 void GenerateData()
override;
248 #endif // MITKUSVideoDevice_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.
itk::SmartPointer< USVideoDeviceCustomControls > m_ControlInterfaceCustom
custom control interface for us video device
int m_DeviceID
The device id to connect to. Undefined, if m_SourceIsFile == true;.
#define mitkNewMacro2Param(classname, typea, typeb)
#define mitkClassMacro(className, SuperClassName)
bool m_SourceIsFile
True, if this source plays back a file, false if it recieves data from a device.
mitk::USProbe::Pointer m_CurrentProbe
probe that is currently in use
std::string m_FilePath
The Filepath id to connect to. Undefined, if m_SourceIsFile == false;.
std::vector< mitk::USProbe::Pointer > m_Probes
probes for this USVideoDevice
#define mitkNewMacro3Param(classname, typea, typeb, typec)
A mitk::USVideoDevice is the common class for video only devices. They capture video input either fro...
mitk::USImageVideoSource::Pointer m_Source
The image source that we use to aquire data.