Medical Imaging Interaction Toolkit
2018.4.99-389bf124
Medical Imaging Interaction Toolkit
|
Implementation of mitk::USControlInterfaceProbes for DiPhAS ultrasound devices. See documentation of mitk::USControlInterfaceProbes for a description of the interface methods. This class has to be implemented for the USDevice but the DiPhAS API does not support multiple devices. Therefore there will be just one probe at all times. More...
#include <mitkUSDiPhASProbesControls.h>
Public Member Functions | |
mitkClassMacro (USDiPhASProbesControls, USControlInterfaceProbes) | |
mitkNewMacro1Param (Self, itk::SmartPointer< USDiPhASDevice >) | |
virtual void | SetIsActive (bool) |
virtual bool | GetIsActive () |
virtual std::vector< USProbe::Pointer > | GetProbeSet () |
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. More... | |
virtual void | OnSelectProbe (USProbe::Pointer probe) |
Virtual method which is called inside mitk::USControlInterfaceProbes::SelectProbe(). Implement this method to handle the actual selecting of the probe at the device api. More... | |
virtual USProbe::Pointer | GetSelectedProbe () |
virtual unsigned int | GetProbesCount () const |
void | ProbeRemoved (unsigned int index) |
void | ProbeAdded (unsigned int index) |
![]() | |
mitkClassMacro (USControlInterfaceProbes, USAbstractControlInterface) | |
void | SelectProbe (unsigned int index) |
void | SelectProbe (USProbe::Pointer probe) |
![]() | |
mitkClassMacroItkParent (USAbstractControlInterface, itk::Object) | |
Protected Member Functions | |
USDiPhASProbesControls (itk::SmartPointer< USDiPhASDevice > device) | |
virtual | ~USDiPhASProbesControls () |
bool | CreateProbesCollection () |
void | CreateProbesSet () |
![]() | |
USControlInterfaceProbes (itk::SmartPointer< USDevice > device) | |
~USControlInterfaceProbes () override | |
![]() | |
USAbstractControlInterface (itk::SmartPointer< USDevice > device) | |
~USAbstractControlInterface () override | |
Protected Attributes | |
bool | m_IsActive |
unsigned int | m_SelectedProbeIndex |
std::vector< USDiPhASProbe::Pointer > | m_ProbesSet |
itk::SmartPointer< USDiPhASDevice > | m_DiPhASDevice |
![]() | |
itk::WeakPointer< USDevice > | m_Device |
Implementation of mitk::USControlInterfaceProbes for DiPhAS ultrasound devices. See documentation of mitk::USControlInterfaceProbes for a description of the interface methods. This class has to be implemented for the USDevice but the DiPhAS API does not support multiple devices. Therefore there will be just one probe at all times.
Definition at line 31 of file mitkUSDiPhASProbesControls.h.
|
protected |
Constructs an empty object. DiPhAS device has to be set after constructing by calling mitk::USDiPhASProbesControls::SetDiPhASDevice before the object can be used.
Definition at line 18 of file mitkUSDiPhASProbesControls.cpp.
|
protectedvirtual |
Definition at line 24 of file mitkUSDiPhASProbesControls.cpp.
|
protected |
Create collection object (DiPhAS API) for the API device.
|
protected |
Create vector of mitk::USDiPhASProbe objects from the DiPhAS API probe collection. Hence mitk::USDiPhASProbesControls::CreateProbesCollection has to be called before.
Definition at line 106 of file mitkUSDiPhASProbesControls.cpp.
References m_DiPhASDevice, m_ProbesSet, and mitk::USProbe::New().
Referenced by ProbeAdded(), and SetIsActive().
|
virtual |
Method must be implemented in every control interface to tell the caller if the interface is currently activated or deactivated.
Implements mitk::USAbstractControlInterface.
Definition at line 35 of file mitkUSDiPhASProbesControls.cpp.
References m_IsActive.
|
virtual |
Implements mitk::USControlInterfaceProbes.
Definition at line 83 of file mitkUSDiPhASProbesControls.cpp.
References m_ProbesSet.
|
virtual |
Implements mitk::USControlInterfaceProbes.
Definition at line 40 of file mitkUSDiPhASProbesControls.cpp.
References m_ProbesSet.
|
virtual |
Implements mitk::USControlInterfaceProbes.
Definition at line 69 of file mitkUSDiPhASProbesControls.cpp.
References m_ProbesSet, m_SelectedProbeIndex, MITK_ERROR, and mitkThrow.
mitk::USDiPhASProbesControls::mitkClassMacro | ( | USDiPhASProbesControls | , |
USControlInterfaceProbes | |||
) |
mitk::USDiPhASProbesControls::mitkNewMacro1Param | ( | Self | , |
itk::SmartPointer< USDiPhASDevice > | |||
) |
|
virtual |
Virtual method which is called inside mitk::USControlInterfaceProbes::SelectProbe(). Implement this method to handle the actual selecting of the probe at the device api.
index | index of the probe to be selected |
Implements mitk::USControlInterfaceProbes.
Definition at line 52 of file mitkUSDiPhASProbesControls.cpp.
References m_ProbesSet, m_SelectedProbeIndex, MITK_ERROR, and mitkThrow.
|
virtual |
Virtual method which is called inside mitk::USControlInterfaceProbes::SelectProbe(). Implement this method to handle the actual selecting of the probe at the device api.
probe | pointer to probe to be selected |
Implements mitk::USControlInterfaceProbes.
void mitk::USDiPhASProbesControls::ProbeAdded | ( | unsigned int | index | ) |
Definition at line 99 of file mitkUSDiPhASProbesControls.cpp.
References CreateProbesSet(), and MITK_INFO.
void mitk::USDiPhASProbesControls::ProbeRemoved | ( | unsigned int | index | ) |
Definition at line 89 of file mitkUSDiPhASProbesControls.cpp.
References m_ProbesSet, and MITK_INFO.
|
virtual |
Probe informations are fetched on activation. On deactivation there is nothing done.
Implements mitk::USAbstractControlInterface.
Definition at line 29 of file mitkUSDiPhASProbesControls.cpp.
References CreateProbesSet(), and m_IsActive.
|
protected |
Definition at line 79 of file mitkUSDiPhASProbesControls.h.
Referenced by CreateProbesSet().
|
protected |
Definition at line 76 of file mitkUSDiPhASProbesControls.h.
Referenced by GetIsActive(), and SetIsActive().
|
protected |
Definition at line 78 of file mitkUSDiPhASProbesControls.h.
Referenced by CreateProbesSet(), GetProbesCount(), GetProbeSet(), GetSelectedProbe(), OnSelectProbe(), and ProbeRemoved().
|
protected |
Definition at line 77 of file mitkUSDiPhASProbesControls.h.
Referenced by GetSelectedProbe(), and OnSelectProbe().