| 58 | } |
| 59 | |
| 60 | bool 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 | |
| 76 | bool mitk::AbstractTransformGeometry::Map(const mitk::Point3D &pt3d_mm, mitk::Point2D &pt2d_mm) const |
| 77 | { |
nothing calls this directly
no test coverage detected