Medical Imaging Interaction Toolkit  2018.4.99-3e3f1a6e
Medical Imaging Interaction Toolkit
mitkUSTelemedBModeControls.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 MITKUSTelemedBModeControls_H_HEADER_INCLUDED_
14 #define MITKUSTelemedBModeControls_H_HEADER_INCLUDED_
15 
16 #include "mitkUSTelemedSDKHeader.h"
18 
19 #include <itkObjectFactory.h>
20 
21 namespace mitk {
22  class USTelemedDevice;
23 
29  {
30  public:
33 
38  virtual void SetIsActive( bool );
39 
43  virtual bool GetIsActive( );
44 
45  virtual double GetScanningFrequency( );
46  virtual void OnSetScanningFrequency( double frequency );
47  virtual std::vector<double> GetScanningFrequencyValues( );
48 
49  virtual double GetScanningPower( );
50  virtual void OnSetScanningPower( double power );
51  virtual double GetScanningPowerMin( );
52  virtual double GetScanningPowerMax( );
53  virtual double GetScanningPowerTick( );
54 
55  virtual double GetScanningDepth( );
56  virtual void OnSetScanningDepth( double );
57  virtual std::vector<double> GetScanningDepthValues( );
58 
59  virtual double GetScanningGain( );
60  virtual void OnSetScanningGain( double );
61  virtual double GetScanningGainMin( );
62  virtual double GetScanningGainMax( );
63  virtual double GetScanningGainTick( );
64 
65  virtual double GetScanningRejection( );
66  virtual void OnSetScanningRejection( double );
67  virtual double GetScanningRejectionMin( );
68  virtual double GetScanningRejectionMax( );
69  virtual double GetScanningRejectionTick( );
70 
71  virtual double GetScanningDynamicRange( );
72  virtual void OnSetScanningDynamicRange( double );
73  virtual double GetScanningDynamicRangeMin( );
74  virtual double GetScanningDynamicRangeMax( );
75  virtual double GetScanningDynamicRangeTick( );
76 
81  void SetUsgDataView( Usgfw2Lib::IUsgDataView* );
82 
83  void ReinitializeControls( );
84 
85  protected:
87  virtual ~USTelemedBModeControls();
88 
89  void CreateControls( );
90  void ReleaseControls( );
91 
92  double GetScanningFrequencyAPI( );
93 
94  Usgfw2Lib::IUsgDataView* m_UsgDataView; // main SDK object for comminucating with the Telemed API
95  Usgfw2Lib::IUsgPower* m_PowerControl; // control for scanning power
96  Usgfw2Lib::IUsgProbeFrequency2* m_FrequencyControl; // control for scanning frequency
97  Usgfw2Lib::IUsgDepth* m_DepthControl; // control for B mode scanning depth
98  Usgfw2Lib::IUsgGain* m_GainControl; // control for B mode scanning gain
99  Usgfw2Lib::IUsgRejection2* m_RejectionControl; // control for B mode scanning rejection
100  Usgfw2Lib::IUsgDynamicRange* m_DynamicRangeControl; // control for B mode dynamic range
101 
102  bool m_Active;
103 
104  double* m_PowerSteps; // array holding possible power values: [min, max, tick]
105  double* m_GainSteps; // array holding possible gains: [min, max, tick]
106  double* m_RejectionSteps; // array holding possible rejections: [min, max, tick]
107  double* m_DynamicRangeSteps; // array holding possible dynamic range values: [min, max, tick]
108  };
109 } // namespace mitk
110 
111 #endif // MITKUSTelemedBModeControls_H_HEADER_INCLUDED_
virtual void OnSetScanningGain(double)
Virtual method which is called inside mitk::USControlInterfaceBMode::SetScanningGain. Implement this method to handle the actual setting of the value at the device api.
USTelemedBModeControls(itk::SmartPointer< USTelemedDevice > device)
virtual void OnSetScanningPower(double power)
Virtual method which is called inside mitk::USControlInterfaceBMode::SetScanningPower. Implement this method to handle the actual setting of the value at the device api.
virtual std::vector< double > GetScanningFrequencyValues()
Usgfw2Lib::IUsgDynamicRange * m_DynamicRangeControl
DataCollection - Class to facilitate loading/accessing structured data.
virtual void OnSetScanningRejection(double)
Virtual method which is called inside mitk::USControlInterfaceBMode::SetScanningRejection. Implement this method to handle the actual setting of the value at the device api.
virtual void OnSetScanningDynamicRange(double)
Virtual method which is called inside mitk::USControlInterfaceBMode::SetScanningDynamicRange. Implement this method to handle the actual setting of the value at the device api.
Usgfw2Lib::IUsgDataView * m_UsgDataView
virtual void OnSetScanningFrequency(double frequency)
Virtual method which is called inside mitk::USControlInterfaceBMode::SetScanningFrequency.
Interface defining methods for scanning mode b of ultrasound devices. It consists of methods for scan...
virtual std::vector< double > GetScanningDepthValues()
Usgfw2Lib::IUsgRejection2 * m_RejectionControl
Usgfw2Lib::IUsgProbeFrequency2 * m_FrequencyControl
void SetUsgDataView(Usgfw2Lib::IUsgDataView *)
Setter for the IUsgDataView necesary for communicating with the Telemed API. This method is just for ...
mitkClassMacro(USTelemedBModeControls, USControlInterfaceBMode)
virtual void OnSetScanningDepth(double)
Virtual method which is called inside mitk::USControlInterfaceBMode::SetScanningDepth. Implement this method to handle the actual setting of the value at the device api.
mitkNewMacro1Param(Self, itk::SmartPointer< USTelemedDevice >)
Implementation of mitk::USControlInterfaceBMode for Telemed ultrasound devices. See documentation of ...