35 if (m_Name.compare(probe->GetName()) == 0)
return true;
41 m_DepthsAndSpacings.insert(std::pair<int, mitk::Vector3D>(depth, spacing));
46 return m_DepthsAndSpacings;
52 defaultSpacing[0] = 1;
53 defaultSpacing[1] = 1;
54 defaultSpacing[2] = 0;
56 m_DepthsAndSpacings.insert(std::pair<int, mitk::Vector3D>(depth, defaultSpacing));
61 m_DepthsAndSpacings.erase(depthToRemove);
66 m_DepthsAndSpacings[givenDepth][0] = spacing[0];
67 m_DepthsAndSpacings[givenDepth][1] = spacing[1];
68 m_DepthsAndSpacings[givenDepth][2] = spacing[2];
74 std::map<int, mitk::Vector3D>::iterator it = m_DepthsAndSpacings.find(givenDepth);
75 if (it != m_DepthsAndSpacings.end())
77 spacing[0] = it->second[0];
78 spacing[1] = it->second[1];
79 spacing[2] = it->second[2];
itk::SmartPointer< Self > Pointer
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...
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...
Vector3D GetSpacingForGivenDepth(int givenDepth)
Returns the spacing that is associated to the given depth of the probe. If spacing was not calibrated...
void SetSpacingForGivenDepth(int givenDepth, Vector3D spacing)
void SetDepthAndSpacing(int depth, Vector3D spacing)
Sets a scanning depth of the probe and the associated spacing.
void SetDepth(int depth)
Sets a scanning depth of the probe with the default spacing (1,1,0). Exact spacing needs to be calibr...
void RemoveDepth(int depthToRemove)
Removes the given depth of the probe, if it exists.