31 m_IsActive = isActive;
42 <<
" T:" << newArea.
top <<
" B:" << newArea.
bottom;
44 if (m_ImageSource.IsNotNull())
47 if ((newArea.
bottom == 0) && (newArea.
top == 0) &&
48 (newArea.
left == 0) && (newArea.
right == 0))
50 m_ImageSource->RemoveRegionOfInterest();
54 m_ImageSource->SetCropping(newArea);
59 MITK_WARN <<
"Cannot set crop are, source is not initialized!";
65 m_Device->DepthChanged(depth);
70 m_Device->ProbeChanged(probename);
76 return m_ImageSource->GetCropping();
82 return device->GetAllProbes();
89 std::map<int, mitk::Vector3D> depthsAndSpacings = probe->GetDepthsAndSpacing();
90 std::vector<int> depths;
91 for (std::map<int, mitk::Vector3D>::iterator it = depthsAndSpacings.begin(); it != depthsAndSpacings.end(); it++)
93 depths.push_back((it->first));
Superclass for all ultrasound device control interfaces. Defines an interface for activating and deac...
itk::SmartPointer< Self > Pointer
virtual bool GetIsActive() override
void SetCropArea(USImageVideoSource::USImageCropping newArea)
Sets the area that will be cropped from the US image. Set [0,0,0,0] to disable it, which is also default.
Defines a region of interest by distances to the four image borders.
void SetNewDepth(double depth)
Sets new depth value.
DataCollection - Class to facilitate loading/accessing structured data.
std::vector< mitk::USProbe::Pointer > GetProbes()
Get all the probes for the current device.
std::vector< int > GetDepthsForProbe(std::string name)
Get the scanning dephts of the given probe.
This class can be pointed to a video file or a videodevice and delivers USImages. ...
mitk::USImageVideoSource::USImageCropping GetCropArea()
virtual void SetIsActive(bool isActive) override
void SetNewProbeIdentifier(std::string probename)
USImageVideoSource::Pointer m_ImageSource
USVideoDeviceCustomControls(itk::SmartPointer< USVideoDevice > device)
virtual ~USVideoDeviceCustomControls()
itk::SmartPointer< USDevice > m_Device
A mitk::USVideoDevice is the common class for video only devices. They capture video input either fro...