Medical Imaging Interaction Toolkit  2018.4.99-6a3ea89d
Medical Imaging Interaction Toolkit
mitk::PlaneClipping Namespace Reference

Functions

static bool LineIntersectZero (vtkPoints *points, int p1, int p2, double *bounds)
 Internal helper method for intersection testing used only in CalculateClippedPlaneBounds() More...
 
static bool CalculateClippedPlaneBounds (const BaseGeometry *boundingGeometry, const PlaneGeometry *planeGeometry, double *bounds)
 Calculate the bounding box of the resliced image. This is necessary for arbitrarily rotated planes in an image volume. A rotated plane (e.g. in swivel mode) will have a new bounding box, which needs to be calculated. More...
 

Function Documentation

◆ CalculateClippedPlaneBounds()

static bool mitk::PlaneClipping::CalculateClippedPlaneBounds ( const BaseGeometry boundingGeometry,
const PlaneGeometry planeGeometry,
double *  bounds 
)
static

Calculate the bounding box of the resliced image. This is necessary for arbitrarily rotated planes in an image volume. A rotated plane (e.g. in swivel mode) will have a new bounding box, which needs to be calculated.

Definition at line 65 of file mitkPlaneClipping.h.

References mitk::BaseGeometry::GetBoundingBox(), mitk::BaseGeometry::GetImageGeometry(), mitk::BaseGeometry::GetSpacing(), mitk::BaseGeometry::GetVtkTransform(), and LineIntersectZero().

Referenced by mitk::LabelSetImageVtkMapper2D::GenerateDataForRenderer(), mitk::RegEvaluationMapper2D::GenerateDataForRenderer(), mitk::DoseImageVtkMapper2D::GenerateDataForRenderer(), mitk::ImageVtkMapper2D::GenerateDataForRenderer(), and mitk::ExtractSliceFilter::GetClippedPlaneBounds().

◆ LineIntersectZero()

static bool mitk::PlaneClipping::LineIntersectZero ( vtkPoints *  points,
int  p1,
int  p2,
double *  bounds 
)
static

Internal helper method for intersection testing used only in CalculateClippedPlaneBounds()

Definition at line 27 of file mitkPlaneClipping.h.

Referenced by CalculateClippedPlaneBounds().