Medical Imaging Interaction Toolkit  2016.11.0
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,
6 Division of Medical and Biological Informatics.
7 All rights reserved.
8 
9 This software is distributed WITHOUT ANY WARRANTY; without
10 even the implied warranty of MERCHANTABILITY or FITNESS FOR
11 A PARTICULAR PURPOSE.
12 
13 See LICENSE.txt or http://www.mitk.org for details.
14 
15 ===================================================================*/
16 
17 #ifndef MITKUSTelemedBModeControls_H_HEADER_INCLUDED_
18 #define MITKUSTelemedBModeControls_H_HEADER_INCLUDED_
19 
20 #include "mitkUSTelemedSDKHeader.h"
22 
23 #include <itkObjectFactory.h>
24 
25 namespace mitk {
26  class USTelemedDevice;
27 
33  {
34  public:
37 
42  virtual void SetIsActive( bool );
43 
47  virtual bool GetIsActive( );
48 
49  virtual double GetScanningFrequency( );
50  virtual void OnSetScanningFrequency( double frequency );
51  virtual std::vector<double> GetScanningFrequencyValues( );
52 
53  virtual double GetScanningPower( );
54  virtual void OnSetScanningPower( double power );
55  virtual double GetScanningPowerMin( );
56  virtual double GetScanningPowerMax( );
57  virtual double GetScanningPowerTick( );
58 
59  virtual double GetScanningDepth( );
60  virtual void OnSetScanningDepth( double );
61  virtual std::vector<double> GetScanningDepthValues( );
62 
63  virtual double GetScanningGain( );
64  virtual void OnSetScanningGain( double );
65  virtual double GetScanningGainMin( );
66  virtual double GetScanningGainMax( );
67  virtual double GetScanningGainTick( );
68 
69  virtual double GetScanningRejection( );
70  virtual void OnSetScanningRejection( double );
71  virtual double GetScanningRejectionMin( );
72  virtual double GetScanningRejectionMax( );
73  virtual double GetScanningRejectionTick( );
74 
75  virtual double GetScanningDynamicRange( );
76  virtual void OnSetScanningDynamicRange( double );
77  virtual double GetScanningDynamicRangeMin( );
78  virtual double GetScanningDynamicRangeMax( );
79  virtual double GetScanningDynamicRangeTick( );
80 
85  void SetUsgDataView( Usgfw2Lib::IUsgDataView* );
86 
87  void ReinitializeControls( );
88 
89  protected:
91  virtual ~USTelemedBModeControls();
92 
93  void CreateControls( );
94  void ReleaseControls( );
95 
96  double GetScanningFrequencyAPI( );
97 
98  Usgfw2Lib::IUsgDataView* m_UsgDataView; // main SDK object for comminucating with the Telemed API
99  Usgfw2Lib::IUsgPower* m_PowerControl; // control for scanning power
100  Usgfw2Lib::IUsgProbeFrequency2* m_FrequencyControl; // control for scanning frequency
101  Usgfw2Lib::IUsgDepth* m_DepthControl; // control for B mode scanning depth
102  Usgfw2Lib::IUsgGain* m_GainControl; // control for B mode scanning gain
103  Usgfw2Lib::IUsgRejection2* m_RejectionControl; // control for B mode scanning rejection
104  Usgfw2Lib::IUsgDynamicRange* m_DynamicRangeControl; // control for B mode dynamic range
105 
106  bool m_Active;
107 
108  double* m_PowerSteps; // array holding possible power values: [min, max, tick]
109  double* m_GainSteps; // array holding possible gains: [min, max, tick]
110  double* m_RejectionSteps; // array holding possible rejections: [min, max, tick]
111  double* m_DynamicRangeSteps; // array holding possible dynamic range values: [min, max, tick]
112  };
113 } // namespace mitk
114 
115 #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 ...