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

Method Project

Modules/Core/src/DataManagement/mitkPlaneGeometry.cpp:845–854  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

843 }
844
845 bool PlaneGeometry::Project(const mitk::Point3D &pt3d_mm, mitk::Point3D &projectedPt3d_mm) const
846 {
847 assert(this->IsBoundingBoxNull() == false);
848
849 Point3D pt3d_units;
850 Superclass::WorldToIndex(pt3d_mm, pt3d_units);
851 pt3d_units[2] = 0;
852 projectedPt3d_mm = GetIndexToWorldTransform()->TransformPoint(pt3d_units);
853 return this->GetBoundingBox()->IsInside(pt3d_units);
854 }
855
856 bool PlaneGeometry::Project(const mitk::Vector3D &vec3d_mm, mitk::Vector3D &projectedVec3d_mm) const
857 {

Callers 3

SelectSliceByPointMethod · 0.45
CheckRotationPossibleMethod · 0.45
CreateVtkCrosshairMethod · 0.45

Calls 5

WorldToIndexFunction · 0.85
IsBoundingBoxNullMethod · 0.80
TransformPointMethod · 0.80
IsInsideMethod · 0.45
GetBoundingBoxMethod · 0.45

Tested by

no test coverage detected