Medical Imaging Interaction Toolkit  2018.4.99-389bf124
Medical Imaging Interaction Toolkit
mitkUSDiPhASDeviceCustomControls.cpp
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 
14 
16  : mitk::USAbstractControlInterface(device.GetPointer()), m_IsActive(false), silentUpdate(false)
17 {
18 }
19 
21 {
22 }
23 
25 {
26  m_IsActive = isActive;
27 }
28 
30 {
31  return m_IsActive;
32 }
33 
34 void mitk::USDiPhASDeviceCustomControls::passGUIOut(std::function<void(QString)> /*callback*/) {}
35 
37 {
38  silentUpdate = silent;
39 }
40 
42 {
43  return silentUpdate;
44 }
45 
46 //Set Functions
47 
49 {
50  this->OnSetCompensateEnergy(compensate);
51 }
52 
54 {
55  this->OnSetUseBModeFilter(isSet);
56 }
57 
59 {
60  this->OnSetRecord(record);
61 }
62 
64 {
65  this->OnSetVerticalSpacing(mm);
66 }
67 
69 {
70  this->OnSetScatteringCoefficient(coeff);
71 }
73 {
74  this->OnSetCompensateScattering(compensate);
75 }
76 
78 {
79  this->OnSetSavingSettings(settings);
80 }
81 
82 //Transmit
84 {
85  this->OnSetTransmitPhaseLength(us);
86 }
87 
89 {
90  this->OnSetExcitationFrequency(MHz);
91 }
92 
94 {
95  this->OnSetTransmitEvents(events);
96 }
97 
99 {
100  this->OnSetVoltage(voltage);
101 }
102 
104 {
105  this->OnSetMode(interleaved);
106 }
107 
108 //Receive
110 {
111  this->OnSetScanDepth(mm);
112 }
113 
115 {
116  this->OnSetAveragingCount(count);
117 }
118 
120 {
121  this->OnSetTGCMin(min);
122 }
123 
125 {
126  this->OnSetTGCMax(max);
127 
128 }
129 
131 {
132  this->OnSetDataType(type);
133 }
134 
135 //Beamforming
137 {
138  this->OnSetPitch(mm);
139 }
140 
142 {
143  this->OnSetReconstructedSamples(samples);
144 }
145 
147 {
148  this->OnSetReconstructedLines(lines);
149 }
150 
152 {
153  this->OnSetSpeedOfSound(mps);
154 }
155 
156 //Bandpass
158 {
159  this->OnSetBandpassEnabled(bandpass);
160 }
161 
163 {
164  this->OnSetLowCut(MHz);
165 }
166 
168 {
169  this->OnSetHighCut(MHz);
170 }
171 
172 
173 //OnSetDummies
174 
182 //Transmit
188 //Receive
194 //Beamforming
199 //Bandpass
Superclass for all ultrasound device control interfaces. Defines an interface for activating and deac...
DataCollection - Class to facilitate loading/accessing structured data.
USDiPhASDeviceCustomControls(itk::SmartPointer< USDevice > device)
virtual void passGUIOut(std::function< void(QString)>)
static T max(T x, T y)
Definition: svm.cpp:56
static T min(T x, T y)
Definition: svm.cpp:53
virtual void SetSavingSettings(SavingSettings settings)