Medical Imaging Interaction Toolkit
2016.11.0
Medical Imaging Interaction Toolkit
|
#include <mitkClippedSurfaceBoundsCalculator.h>
Public Types | |
typedef std::vector< mitk::Point3D > | PointListType |
typedef std::pair< int, int > | OutputType |
Minimum (first) and maximum (second) slice index. More... | |
Public Member Functions | |
ClippedSurfaceBoundsCalculator (const mitk::PlaneGeometry *geometry=nullptr, mitk::Image::Pointer image=nullptr) | |
ClippedSurfaceBoundsCalculator (const mitk::BaseGeometry *geometry, mitk::Image::Pointer image) | |
ClippedSurfaceBoundsCalculator (const PointListType pointlist, mitk::Image::Pointer image) | |
void | InitializeOutput () |
virtual | ~ClippedSurfaceBoundsCalculator () |
void | SetInput (const mitk::PlaneGeometry *geometry, mitk::Image *image) |
void | SetInput (const mitk::BaseGeometry *geometry, mitk::Image *image) |
void | SetInput (const PointListType pointlist, mitk::Image *image) |
void | Update () |
Request calculation. More... | |
OutputType | GetMinMaxSpatialDirectionX () |
What X coordinates (slice indices) are cut/visible in given plane. More... | |
OutputType | GetMinMaxSpatialDirectionY () |
What Y coordinates (slice indices) are cut/visible in given plane. More... | |
OutputType | GetMinMaxSpatialDirectionZ () |
What Z coordinates (slice indices) are cut/visible in given plane. More... | |
Protected Member Functions | |
void | CalculateIntersectionPoints (const mitk::PlaneGeometry *geometry) |
void | CalculateIntersectionPoints (PointListType pointList) |
void | EnforceImageBounds () |
Clips the resulting index-coordinates to make sure they do not exceed the imagebounds. More... | |
Protected Attributes | |
mitk::PlaneGeometry::ConstPointer | m_PlaneGeometry |
mitk::BaseGeometry::ConstPointer | m_Geometry3D |
mitk::Image::Pointer | m_Image |
std::vector< mitk::Point3D > | m_ObjectPointsInWorldCoordinates |
std::vector< OutputType > | m_MinMaxOutput |
Definition at line 43 of file mitkClippedSurfaceBoundsCalculator.h.
typedef std::pair<int, int> mitk::ClippedSurfaceBoundsCalculator::OutputType |
Minimum (first) and maximum (second) slice index.
Definition at line 76 of file mitkClippedSurfaceBoundsCalculator.h.
typedef std::vector<mitk::Point3D> mitk::ClippedSurfaceBoundsCalculator::PointListType |
Definition at line 46 of file mitkClippedSurfaceBoundsCalculator.h.
mitk::ClippedSurfaceBoundsCalculator::ClippedSurfaceBoundsCalculator | ( | const mitk::PlaneGeometry * | geometry = nullptr , |
mitk::Image::Pointer | image = nullptr |
||
) |
Definition at line 21 of file mitkClippedSurfaceBoundsCalculator.cpp.
References InitializeOutput(), and SetInput().
mitk::ClippedSurfaceBoundsCalculator::ClippedSurfaceBoundsCalculator | ( | const mitk::BaseGeometry * | geometry, |
mitk::Image::Pointer | image | ||
) |
Definition at line 30 of file mitkClippedSurfaceBoundsCalculator.cpp.
References InitializeOutput(), and SetInput().
mitk::ClippedSurfaceBoundsCalculator::ClippedSurfaceBoundsCalculator | ( | const PointListType | pointlist, |
mitk::Image::Pointer | image | ||
) |
Definition at line 39 of file mitkClippedSurfaceBoundsCalculator.cpp.
References InitializeOutput(), and m_ObjectPointsInWorldCoordinates.
|
virtual |
Definition at line 59 of file mitkClippedSurfaceBoundsCalculator.cpp.
|
protected |
Definition at line 141 of file mitkClippedSurfaceBoundsCalculator.cpp.
References mitk::PlaneGeometry::Distance(), mitk::eps, mitk::Line< TCoordRep, NPointDimension >::GetDirection(), mitk::Line< TCoordRep, NPointDimension >::GetPoint1(), mitk::PlaneGeometry::IntersectionPoint(), mitk::PlaneGeometry::IntersectionPointParam(), line, max(), min(), ROUND_P, and mitk::sqrteps.
|
protected |
Definition at line 250 of file mitkClippedSurfaceBoundsCalculator.cpp.
References ROUND_P.
|
protected |
Clips the resulting index-coordinates to make sure they do not exceed the imagebounds.
Definition at line 279 of file mitkClippedSurfaceBoundsCalculator.cpp.
mitk::ClippedSurfaceBoundsCalculator::OutputType mitk::ClippedSurfaceBoundsCalculator::GetMinMaxSpatialDirectionX | ( | ) |
What X coordinates (slice indices) are cut/visible in given plane.
Definition at line 96 of file mitkClippedSurfaceBoundsCalculator.cpp.
Referenced by CheckIntersectionWithPointCloud().
mitk::ClippedSurfaceBoundsCalculator::OutputType mitk::ClippedSurfaceBoundsCalculator::GetMinMaxSpatialDirectionY | ( | ) |
What Y coordinates (slice indices) are cut/visible in given plane.
Definition at line 101 of file mitkClippedSurfaceBoundsCalculator.cpp.
Referenced by CheckIntersectionWithRotatedGeometry90().
mitk::ClippedSurfaceBoundsCalculator::OutputType mitk::ClippedSurfaceBoundsCalculator::GetMinMaxSpatialDirectionZ | ( | ) |
What Z coordinates (slice indices) are cut/visible in given plane.
Definition at line 106 of file mitkClippedSurfaceBoundsCalculator.cpp.
Referenced by CheckIntersectionPointsOfTwoGeometry3D(), CheckIntersectionWithPointCloud(), CheckIntersectionWithRotatedGeometry(), CheckPlanesInsideBoundingBox(), CheckPlanesInsideBoundingBoxOnlyOnOneSlice(), and CheckPlanesOutsideOfBoundingBox().
void mitk::ClippedSurfaceBoundsCalculator::InitializeOutput | ( | ) |
Definition at line 48 of file mitkClippedSurfaceBoundsCalculator.cpp.
Referenced by ClippedSurfaceBoundsCalculator().
void mitk::ClippedSurfaceBoundsCalculator::SetInput | ( | const mitk::PlaneGeometry * | geometry, |
mitk::Image * | image | ||
) |
Definition at line 63 of file mitkClippedSurfaceBoundsCalculator.cpp.
Referenced by CheckIntersectionPointsOfTwoGeometry3D(), CheckIntersectionWithPointCloud(), CheckIntersectionWithRotatedGeometry(), CheckIntersectionWithRotatedGeometry90(), CheckPlanesInsideBoundingBox(), CheckPlanesInsideBoundingBoxOnlyOnOneSlice(), CheckPlanesOutsideOfBoundingBox(), and ClippedSurfaceBoundsCalculator().
void mitk::ClippedSurfaceBoundsCalculator::SetInput | ( | const mitk::BaseGeometry * | geometry, |
mitk::Image * | image | ||
) |
Definition at line 74 of file mitkClippedSurfaceBoundsCalculator.cpp.
void mitk::ClippedSurfaceBoundsCalculator::SetInput | ( | const PointListType | pointlist, |
mitk::Image * | image | ||
) |
void mitk::ClippedSurfaceBoundsCalculator::Update | ( | ) |
Request calculation.
How cut/visible slice indices are determined:
Definition at line 111 of file mitkClippedSurfaceBoundsCalculator.cpp.
References mitk::SlicedGeometry3D::GetPlaneGeometry(), mitk::SlicedGeometry3D::GetSlices(), max(), and min().
Referenced by CheckIntersectionPointsOfTwoGeometry3D(), CheckIntersectionWithPointCloud(), CheckIntersectionWithRotatedGeometry(), CheckIntersectionWithRotatedGeometry90(), CheckPlanesInsideBoundingBox(), CheckPlanesInsideBoundingBoxOnlyOnOneSlice(), and CheckPlanesOutsideOfBoundingBox().
|
protected |
Definition at line 104 of file mitkClippedSurfaceBoundsCalculator.h.
|
protected |
Definition at line 105 of file mitkClippedSurfaceBoundsCalculator.h.
|
protected |
Definition at line 107 of file mitkClippedSurfaceBoundsCalculator.h.
|
protected |
Definition at line 106 of file mitkClippedSurfaceBoundsCalculator.h.
Referenced by ClippedSurfaceBoundsCalculator().
|
protected |
Definition at line 103 of file mitkClippedSurfaceBoundsCalculator.h.