Medical Imaging Interaction Toolkit  2018.4.99-87d68d9f
Medical Imaging Interaction Toolkit
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 
14 #include "mitkUSDevice.h"
15 
18 {
19 }
20 
22 {
23 }
24 
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 }
Superclass for all ultrasound device control interfaces. Defines an interface for activating and deac...
DataCollection - Class to facilitate loading/accessing structured data.
static mitk::USDevice::PropertyKeys GetPropertyKeys()
virtual USProbe::Pointer GetSelectedProbe()=0
USControlInterfaceProbes(itk::SmartPointer< USDevice > device)
static std::string GetName(std::string fileName, std::string suffix)
virtual void OnSelectProbe(unsigned int index)=0
Virtual method which is called inside mitk::USControlInterfaceProbes::SelectProbe(). Implement this method to handle the actual selecting of the probe at the device api.