MITK-IGT
IGT Extension of MITK
Loading...
Searching...
No Matches
mitkUSControlInterfaceBMode.cpp
Go to the documentation of this file.
1/*============================================================================
2
3The Medical Imaging Interaction Toolkit (MITK)
4
5Copyright (c) German Cancer Research Center (DKFZ)
6All rights reserved.
7
8Use of this source code is governed by a 3-clause BSD license that can be
9found in the LICENSE file.
10
11============================================================================*/
12
14#include "mitkUSDevice.h"
15
18{
19 if (device.IsNull())
20 {
21 MITK_ERROR << "USDevice must not be null for USControlInterfaceBMode.";
22 mitkThrow() << "USDevice must not be null for USControlInterfaceBMode.";
23 }
24}
25
29
31{
32 m_Device->UpdateServiceProperty(
33 mitk::USDevice::GetPropertyKeys().US_PROPKEY_BMODE_FREQUENCY,
34 this->GetScanningFrequency());
35
36 m_Device->UpdateServiceProperty(
37 mitk::USDevice::GetPropertyKeys().US_PROPKEY_BMODE_POWER,
38 this->GetScanningPower());
39
40 m_Device->UpdateServiceProperty(
41 mitk::USDevice::GetPropertyKeys().US_PROPKEY_BMODE_DEPTH,
42 this->GetScanningDepth());
43
44 m_Device->UpdateServiceProperty(
45 mitk::USDevice::GetPropertyKeys().US_PROPKEY_BMODE_GAIN,
46 this->GetScanningGain());
47
48 m_Device->UpdateServiceProperty(
49 mitk::USDevice::GetPropertyKeys().US_PROPKEY_BMODE_REJECTION,
50 this->GetScanningRejection());
51
52 m_Device->UpdateServiceProperty(
53 mitk::USDevice::GetPropertyKeys().US_PROPKEY_BMODE_DYNAMIC_RANGE,
54 this->GetScanningDynamicRange());
55}
56
58{
59 this->OnSetScanningFrequency(frequency);
60 m_Device->UpdateServiceProperty(mitk::USDevice::GetPropertyKeys().US_PROPKEY_BMODE_FREQUENCY, frequency);
61}
62
64{
65 this->OnSetScanningPower(power);
66 m_Device->UpdateServiceProperty(mitk::USDevice::GetPropertyKeys().US_PROPKEY_BMODE_POWER, power);
67}
68
70{
71 this->OnSetScanningDepth(depth);
72 m_Device->UpdateServiceProperty(mitk::USDevice::GetPropertyKeys().US_PROPKEY_BMODE_DEPTH, depth);
73}
74
76{
77 this->OnSetScanningGain(gain);
78 m_Device->UpdateServiceProperty(mitk::USDevice::GetPropertyKeys().US_PROPKEY_BMODE_GAIN, gain);
79}
80
82{
83 this->OnSetScanningRejection(rejection);
84 m_Device->UpdateServiceProperty(mitk::USDevice::GetPropertyKeys().US_PROPKEY_BMODE_REJECTION, rejection);
85}
86
88{
89 this->OnSetScanningDynamicRange(dynamicRange);
90 m_Device->UpdateServiceProperty(mitk::USDevice::GetPropertyKeys().US_PROPKEY_BMODE_DYNAMIC_RANGE, dynamicRange);
91}
Superclass for all ultrasound device control interfaces. Defines an interface for activating and deac...
void Initialize()
Initializes the microservice properties with the current values from the device. This method must be ...
USControlInterfaceBMode(itk::SmartPointer< USDevice > device)
virtual void SetScanningDynamicRange(double dynamicRange)
static mitk::USDevice::PropertyKeys GetPropertyKeys()
IGT Exceptions.