MCPcopy Create free account
hub / github.com/MITK/MITK / IsAbove

Method IsAbove

Modules/Core/src/DataManagement/mitkAbstractTransformGeometry.cpp:154–165  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

152}
153
154bool mitk::AbstractTransformGeometry::IsAbove(const mitk::Point3D &pt3d_mm, bool /*considerBoundingBox*/) const
155{
156 assert((m_ItkVtkAbstractTransform.IsNotNull()) && (m_Plane.IsNotNull()));
157
158 Point3D pt3d_ParametricWorld;
159 pt3d_ParametricWorld = m_ItkVtkAbstractTransform->BackTransform(pt3d_mm);
160
161 Point3D pt3d_ParametricUnits;
162 ((BaseGeometry *)m_Plane)->WorldToIndex(pt3d_ParametricWorld, pt3d_ParametricUnits);
163
164 return (pt3d_ParametricUnits[2] > m_ParametricBoundingBox->GetBounds()[4]);
165}
166
167void mitk::AbstractTransformGeometry::SetVtkAbstractTransform(vtkAbstractTransform *aVtkAbstractTransform)
168{

Callers

nothing calls this directly

Calls 3

IsNotNullMethod · 0.80
WorldToIndexMethod · 0.45
GetBoundsMethod · 0.45

Tested by

no test coverage detected