Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
mitkUSTelemedProbesControls.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 MITKUSTelemedProbesControls_H_HEADER_INCLUDED_
18 #define MITKUSTelemedProbesControls_H_HEADER_INCLUDED_
19 
20 #include "mitkUSTelemedSDKHeader.h"
21 #include "mitkUSTelemedProbe.h"
23 
24 #include <itkObjectFactory.h>
25 
26 namespace mitk {
27  class USTelemedDevice;
28 
34  {
35  public:
38 
42  virtual void SetIsActive(bool);
43 
44  virtual bool GetIsActive();
45 
46  virtual std::vector<USProbe::Pointer> GetProbeSet();
47  virtual void OnSelectProbe(unsigned int index);
48  virtual void OnSelectProbe(USProbe::Pointer probe);
50  virtual unsigned int GetProbesCount() const;
51 
52  void ProbeRemoved(unsigned int index);
53  void ProbeAdded(unsigned int index);
54 
55  protected:
63  virtual ~USTelemedProbesControls();
64 
69 
76  void CreateProbesSet();
77 
78  bool m_IsActive;
79  unsigned int m_SelectedProbeIndex;
80  std::vector<USTelemedProbe::Pointer> m_ProbesSet;
82 
83  Usgfw2Lib::IUsgCollection* m_ProbesCollection;
84  Usgfw2Lib::IProbe* m_Probe;
85  };
86 }
87 
88 #endif // MITKUSTelemedProbesControls_H_HEADER_INCLUDED_
virtual void OnSelectProbe(unsigned int index)
Virtual method which is called inside mitk::USControlInterfaceProbes::SelectProbe(). Implement this method to handle the actual selecting of the probe at the device api.
std::vector< USTelemedProbe::Pointer > m_ProbesSet
Usgfw2Lib::IUsgCollection * m_ProbesCollection
itk::SmartPointer< Self > Pointer
Interface defining methods for probe selection of ultrasound devices. It consists of methods for gett...
virtual std::vector< USProbe::Pointer > GetProbeSet()
DataCollection - Class to facilitate loading/accessing structured data.
Implementation of mitk::USControlInterfaceProbes for Telemed ultrasound devices. See documentation of...
itk::SmartPointer< USTelemedDevice > m_TelemedDevice
USTelemedProbesControls(itk::SmartPointer< USTelemedDevice > device)
virtual USProbe::Pointer GetSelectedProbe()
mitkClassMacro(USTelemedProbesControls, USControlInterfaceProbes)
mitkNewMacro1Param(Self, itk::SmartPointer< USTelemedDevice >)
virtual unsigned int GetProbesCount() const