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

Method Project

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

Source from the content-addressed store, hash-verified

58}
59
60bool mitk::AbstractTransformGeometry::Project(const mitk::Point3D &pt3d_mm, mitk::Point3D &projectedPt3d_mm) const
61{
62 assert(this->IsBoundingBoxNull() == false);
63
64 mitk::Point2D pt2d_mm;
65 bool isInside;
66 isInside = Map(pt3d_mm, pt2d_mm);
67 Map(pt2d_mm, projectedPt3d_mm);
68 return isInside;
69 // Point3D pt3d_units;
70 // pt3d_units = m_ItkVtkAbstractTransform->BackTransform(pt3d_mm);
71 // pt3d_units[2] = 0;
72 // projectedPt3d_mm = m_ItkVtkAbstractTransform->TransformPoint(pt3d_units);
73 // return const_cast<BoundingBox*>(m_BoundingBox.GetPointer())->IsInside(pt3d_units);
74}
75
76bool mitk::AbstractTransformGeometry::Map(const mitk::Point3D &pt3d_mm, mitk::Point2D &pt2d_mm) const
77{

Callers

nothing calls this directly

Calls 1

IsBoundingBoxNullMethod · 0.80

Tested by

no test coverage detected