MITK-IGT
IGT Extension of MITK
Loading...
Searching...
No Matches
mitkUSControlInterfaceProbes.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
13
#include "
mitkUSControlInterfaceProbes.h
"
14
#include "
mitkUSDevice.h
"
15
16
mitk::USControlInterfaceProbes::USControlInterfaceProbes
(
itk::SmartPointer<USDevice>
device)
17
:
mitk
::
USAbstractControlInterface
(device)
18
{
19
}
20
21
mitk::USControlInterfaceProbes::~USControlInterfaceProbes
()
22
{
23
}
24
25
void
mitk::USControlInterfaceProbes::SelectProbe
(
unsigned
int
index )
26
{
27
this->OnSelectProbe(index);
28
m_Device->UpdateServiceProperty(
mitk::USDevice::GetPropertyKeys
().US_PROPKEY_PROBES_SELECTED,
29
this->GetSelectedProbe()->GetName());
30
31
}
32
33
void
mitk::USControlInterfaceProbes::SelectProbe
( USProbe::Pointer probe )
34
{
35
this->OnSelectProbe(probe);
36
m_Device->UpdateServiceProperty(
mitk::USDevice::GetPropertyKeys
().US_PROPKEY_PROBES_SELECTED,
37
this->GetSelectedProbe()->GetName());
38
}
itk::SmartPointer
Definition
QmitkUSZoneManagementWidget.h:19
mitk::USAbstractControlInterface
Superclass for all ultrasound device control interfaces. Defines an interface for activating and deac...
Definition
mitkUSAbstractControlInterface.h:33
mitk::USControlInterfaceProbes::~USControlInterfaceProbes
~USControlInterfaceProbes() override
Definition
mitkUSControlInterfaceProbes.cpp:21
mitk::USControlInterfaceProbes::SelectProbe
void SelectProbe(unsigned int index)
Definition
mitkUSControlInterfaceProbes.cpp:25
mitk::USControlInterfaceProbes::USControlInterfaceProbes
USControlInterfaceProbes(itk::SmartPointer< USDevice > device)
Definition
mitkUSControlInterfaceProbes.cpp:16
mitk::USDevice::GetPropertyKeys
static mitk::USDevice::PropertyKeys GetPropertyKeys()
Definition
mitkUSDevice.cpp:27
mitkUSControlInterfaceProbes.h
mitkUSDevice.h
mitk
IGT Exceptions.
Definition
mitkAlgorithm.h:16
Modules
US
USControlInterfaces
mitkUSControlInterfaceProbes.cpp
Generated by
1.12.0