21 : m_Name(identifier), m_CurrentDepth(0)
32 m_Cropping.bottom = bottom;
33 m_Cropping.left = left;
34 m_Cropping.right = right;
44 if (m_Name.compare(probe->GetName()) == 0)
return true;
50 m_DepthsAndSpacings.insert(std::pair<int, mitk::Vector3D>(depth, spacing));
55 return m_DepthsAndSpacings;
60 mitk::Vector3D defaultSpacing;
61 defaultSpacing[0] = 1;
62 defaultSpacing[1] = 1;
63 defaultSpacing[2] = 1;
65 m_DepthsAndSpacings.insert(std::pair<int, mitk::Vector3D>(depth, defaultSpacing));
70 m_DepthsAndSpacings.erase(depthToRemove);
75 m_DepthsAndSpacings[givenDepth][0] = spacing[0];
76 m_DepthsAndSpacings[givenDepth][1] = spacing[1];
77 m_DepthsAndSpacings[givenDepth][2] = spacing[2];
82 mitk::Vector3D spacing;
83 std::map<int, mitk::Vector3D>::iterator it = m_DepthsAndSpacings.find(givenDepth);
84 if (it != m_DepthsAndSpacings.end())
86 spacing[0] = it->second[0];
87 spacing[1] = it->second[1];
88 spacing[2] = it->second[2];
101 if( m_DepthsAndSpacings.size() == 0 )
void RemoveDepth(int depthToRemove)
Removes the given depth of the probe, if it exists.
bool IsDepthAndSpacingEmpty()
Checks, whether the std::map m_DepthAndSpacings contains at least one depth element or not.
void SetDepth(int depth)
Sets a scanning depth of the probe with the default spacing (1,1,1). Exact spacing needs to be calibr...
std::map< int, Vector3D > GetDepthsAndSpacing()
Gets all scanning depths and the associates spacings of the probe as an std::map with depth as key (r...
Vector3D GetSpacingForGivenDepth(int givenDepth)
Returns the spacing that is associated to the given depth of the probe. If spacing was not calibrated...
void SetProbeCropping(unsigned int top, unsigned int bottom, unsigned int left, unsigned int right)
Sets the probe cropping.
void SetSpacingForGivenDepth(int givenDepth, Vector3D spacing)
void SetDepthAndSpacing(int depth, Vector3D spacing)
Sets a scanning depth of the probe and the associated spacing.
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 ONL...
USProbeCropping GetProbeCropping()
Struct to define a probe specific ultrasound image cropping.