Medical Imaging Interaction Toolkit  2024.12.99-0da743f6
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().

◆ 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().