Medical Imaging Interaction Toolkit  2018.4.99-87d68d9f
Medical Imaging Interaction Toolkit
mitkUSVideoDeviceCustomControls.h
Go to the documentation of this file.
1 /*============================================================================
2 
3 The Medical Imaging Interaction Toolkit (MITK)
4 
5 Copyright (c) German Cancer Research Center (DKFZ)
6 All rights reserved.
7 
8 Use of this source code is governed by a 3-clause BSD license that can be
9 found in the LICENSE file.
10 
11 ============================================================================*/
12 
13 #ifndef MITKUSVideoDeviceCustomControls_H_HEADER_INCLUDED_
14 #define MITKUSVideoDeviceCustomControls_H_HEADER_INCLUDED_
15 
17 #include "mitkUSImageVideoSource.h"
18 #include "mitkUSVideoDevice.h"
19 
20 #include <itkObjectFactory.h>
21 
22 namespace mitk {
28  {
29  public:
32 
40  void SetIsActive(bool isActive) override;
41 
45  bool GetIsActive() override;
46 
51  void SetCropArea(USImageVideoSource::USImageCropping newArea);
52 
56  mitk::USProbe::USProbeCropping GetCropArea();
57 
62  void UpdateProbeCropping( mitk::USImageVideoSource::USImageCropping cropping );
63 
67  void SetNewDepth(double depth);
68 
72  void SetNewProbeIdentifier(std::string probename);
73 
77  std::vector<mitk::USProbe::Pointer> GetProbes();
78 
82  std::vector<int> GetDepthsForProbe(std::string name);
83 
88  void SetDefaultProbeAsCurrentProbe();
89 
90  protected:
96  ~USVideoDeviceCustomControls() override;
97 
98  bool m_IsActive;
99  USImageVideoSource::Pointer m_ImageSource;
100  };
101 } // namespace mitk
102 
103 #endif // MITKUSVideoDeviceCustomControls_H_HEADER_INCLUDED_
Superclass for all ultrasound device control interfaces. Defines an interface for activating and deac...
#define mitkNewMacro1Param(classname, type)
Definition: mitkCommon.h:72
Defines a region of interest by distances to the four image borders.
DataCollection - Class to facilitate loading/accessing structured data.
#define mitkClassMacro(className, SuperClassName)
Definition: mitkCommon.h:40
Custom controls for mitk::USVideoDevice. Controls image cropping of the corresponding mitk::USImageVi...
#define MITKUS_EXPORT
Definition: MitkUSExports.h:15
Struct to define a probe specific ultrasound image cropping.
Definition: mitkUSProbe.h:41