Medical Imaging Interaction Toolkit
2018.4.99-389bf124
Medical Imaging Interaction Toolkit
|
Right now, the US Probe is only a fancy name for a string. Later, it could handle probe specific parameters like the current frequency etc. It is able to compare itself to other probes for device managment though. More...
#include <mitkUSProbe.h>
Classes | |
struct | USProbeCropping_ |
Struct to define a probe specific ultrasound image cropping. More... | |
Public Types | |
typedef struct mitk::USProbe::USProbeCropping_ | USProbeCropping |
Struct to define a probe specific ultrasound image cropping. More... | |
Public Member Functions | |
mitkClassMacroItkParent (USProbe, itk::Object) | |
Pointer | Clone () const |
mitkNewMacro1Param (Self, std::string) | |
void | SetProbeCropping (unsigned int top, unsigned int bottom, unsigned int left, unsigned int right) |
Sets the probe cropping. More... | |
USProbeCropping | GetProbeCropping () |
bool | IsEqualToProbe (mitk::USProbe::Pointer probe) |
Compares this probe to another probe and returns true if they are equal in terms of name AND NAME ONLY be sure to sufficiently extend this method along with further capabilities probes. More... | |
void | SetDepthAndSpacing (int depth, Vector3D spacing) |
Sets a scanning depth of the probe and the associated spacing. More... | |
std::map< int, Vector3D > | GetDepthsAndSpacing () |
Gets all scanning depths and the associates spacings of the probe as an std::map with depth as key (represented by an int) and spacing as value (represented by a Vector3D) More... | |
void | SetDepth (int depth) |
Sets a scanning depth of the probe with the default spacing (1,1,1). Exact spacing needs to be calibrated. More... | |
void | RemoveDepth (int depthToRemove) |
Removes the given depth of the probe, if it exists. More... | |
void | SetSpacingForGivenDepth (int givenDepth, Vector3D spacing) |
Vector3D | GetSpacingForGivenDepth (int givenDepth) |
Returns the spacing that is associated to the given depth of the probe. If spacing was not calibrated or if depth does not exist for this probe the default spacing (1,1,1) is returned. More... | |
bool | IsDepthAndSpacingEmpty () |
Checks, whether the std::map m_DepthAndSpacings contains at least one depth element or not. More... | |
virtual std::string | GetName () |
virtual void | SetName (std::string _arg) |
virtual double | GetCurrentDepth () |
virtual void | SetCurrentDepth (double _arg) |
Static Public Member Functions | |
static Pointer | New () |
Protected Member Functions | |
USProbe () | |
USProbe (std::string identifier) | |
~USProbe () override | |
Protected Attributes | |
std::string | m_Name |
double | m_CurrentDepth |
std::map< int, Vector3D > | m_DepthsAndSpacings |
USProbeCropping | m_Cropping |
Right now, the US Probe is only a fancy name for a string. Later, it could handle probe specific parameters like the current frequency etc. It is able to compare itself to other probes for device managment though.
Documentation
Definition at line 30 of file mitkUSProbe.h.
typedef struct mitk::USProbe::USProbeCropping_ mitk::USProbe::USProbeCropping |
Struct to define a probe specific ultrasound image cropping.
|
protected |
Definition at line 16 of file mitkUSProbe.cpp.
|
protected |
Definition at line 20 of file mitkUSProbe.cpp.
|
overrideprotected |
Definition at line 25 of file mitkUSProbe.cpp.
Pointer mitk::USProbe::Clone | ( | ) | const |
|
virtual |
std::map< int, mitk::Vector3D > mitk::USProbe::GetDepthsAndSpacing | ( | ) |
Gets all scanning depths and the associates spacings of the probe as an std::map with depth as key (represented by an int) and spacing as value (represented by a Vector3D)
Definition at line 53 of file mitkUSProbe.cpp.
References m_DepthsAndSpacings.
|
virtual |
mitk::USProbe::USProbeCropping mitk::USProbe::GetProbeCropping | ( | ) |
Definition at line 37 of file mitkUSProbe.cpp.
References m_Cropping.
mitk::Vector3D mitk::USProbe::GetSpacingForGivenDepth | ( | int | givenDepth | ) |
Returns the spacing that is associated to the given depth of the probe. If spacing was not calibrated or if depth does not exist for this probe the default spacing (1,1,1) is returned.
Definition at line 80 of file mitkUSProbe.cpp.
References m_DepthsAndSpacings.
bool mitk::USProbe::IsDepthAndSpacingEmpty | ( | ) |
Checks, whether the std::map m_DepthAndSpacings contains at least one depth element or not.
Definition at line 99 of file mitkUSProbe.cpp.
References m_DepthsAndSpacings.
bool mitk::USProbe::IsEqualToProbe | ( | mitk::USProbe::Pointer | probe | ) |
Compares this probe to another probe and returns true if they are equal in terms of name AND NAME ONLY be sure to sufficiently extend this method along with further capabilities probes.
Definition at line 42 of file mitkUSProbe.cpp.
References m_Name.
mitk::USProbe::mitkClassMacroItkParent | ( | USProbe | , |
itk::Object | |||
) |
mitk::USProbe::mitkNewMacro1Param | ( | Self | , |
std::string | |||
) |
|
static |
Referenced by mitk::USTelemedProbesControls::CreateProbesSet(), mitk::USDiPhASProbesControls::CreateProbesSet(), mitk::USDeviceReaderXML::ExtractProbe(), QmitkUSNewVideoDeviceWidget::OnAddNewProbeClicked(), QmitkUSNewVideoDeviceWidget::OnClickedDone(), QmitkUSNewVideoDeviceWidget::OnClickedFinishedEditing(), mitk::USDeviceReaderXML::ReadUltrasoundDeviceConfiguration(), mitk::USIGTLDevice::SetDefaultProbeAsCurrentProbe(), mitk::USVideoDevice::SetDefaultProbeAsCurrentProbe(), and mitk::USDevicePersistence::StringToUSProbe().
void mitk::USProbe::RemoveDepth | ( | int | depthToRemove | ) |
Removes the given depth of the probe, if it exists.
Definition at line 68 of file mitkUSProbe.cpp.
References m_DepthsAndSpacings.
|
virtual |
void mitk::USProbe::SetDepth | ( | int | depth | ) |
Sets a scanning depth of the probe with the default spacing (1,1,1). Exact spacing needs to be calibrated.
Definition at line 58 of file mitkUSProbe.cpp.
References m_DepthsAndSpacings.
void mitk::USProbe::SetDepthAndSpacing | ( | int | depth, |
mitk::Vector3D | spacing | ||
) |
Sets a scanning depth of the probe and the associated spacing.
Definition at line 48 of file mitkUSProbe.cpp.
References m_DepthsAndSpacings.
|
virtual |
Referenced by mitk::USDiPhASProbe::USDiPhASProbe(), and mitk::USTelemedProbe::USTelemedProbe().
void mitk::USProbe::SetProbeCropping | ( | unsigned int | top, |
unsigned int | bottom, | ||
unsigned int | left, | ||
unsigned int | right | ||
) |
Sets the probe cropping.
Definition at line 29 of file mitkUSProbe.cpp.
References mitk::USProbe::USProbeCropping_::bottom, mitk::USProbe::USProbeCropping_::left, m_Cropping, mitk::USProbe::USProbeCropping_::right, and mitk::USProbe::USProbeCropping_::top.
void mitk::USProbe::SetSpacingForGivenDepth | ( | int | givenDepth, |
Vector3D | spacing | ||
) |
\ brief Sets the spacing associated to the given depth of the probe. Spacing needs to be calibrated.
Definition at line 73 of file mitkUSProbe.cpp.
References m_DepthsAndSpacings.
|
protected |
Definition at line 123 of file mitkUSProbe.h.
Referenced by GetProbeCropping(), and SetProbeCropping().
|
protected |
Definition at line 118 of file mitkUSProbe.h.
|
protected |
Definition at line 121 of file mitkUSProbe.h.
Referenced by GetDepthsAndSpacing(), GetSpacingForGivenDepth(), IsDepthAndSpacingEmpty(), RemoveDepth(), SetDepth(), SetDepthAndSpacing(), and SetSpacingForGivenDepth().
|
protected |
Definition at line 117 of file mitkUSProbe.h.
Referenced by IsEqualToProbe().