Medical Imaging Interaction Toolkit
2018.4.99-389bf124
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 39 of file mitkClippedSurfaceBoundsCalculator.h.
typedef std::pair<int, int> mitk::ClippedSurfaceBoundsCalculator::OutputType |
Minimum (first) and maximum (second) slice index.
Definition at line 72 of file mitkClippedSurfaceBoundsCalculator.h.
typedef std::vector<mitk::Point3D> mitk::ClippedSurfaceBoundsCalculator::PointListType |
Definition at line 42 of file mitkClippedSurfaceBoundsCalculator.h.
mitk::ClippedSurfaceBoundsCalculator::ClippedSurfaceBoundsCalculator | ( | const mitk::PlaneGeometry * | geometry = nullptr , |
mitk::Image::Pointer | image = nullptr |
||
) |
Definition at line 17 of file mitkClippedSurfaceBoundsCalculator.cpp.
References InitializeOutput(), and SetInput().
mitk::ClippedSurfaceBoundsCalculator::ClippedSurfaceBoundsCalculator | ( | const mitk::BaseGeometry * | geometry, |
mitk::Image::Pointer | image | ||
) |
Definition at line 26 of file mitkClippedSurfaceBoundsCalculator.cpp.
References InitializeOutput(), and SetInput().
mitk::ClippedSurfaceBoundsCalculator::ClippedSurfaceBoundsCalculator | ( | const PointListType | pointlist, |
mitk::Image::Pointer | image | ||
) |
Definition at line 35 of file mitkClippedSurfaceBoundsCalculator.cpp.
References InitializeOutput(), and m_ObjectPointsInWorldCoordinates.
|
virtual |
Definition at line 55 of file mitkClippedSurfaceBoundsCalculator.cpp.
|
protected |
Definition at line 137 of file mitkClippedSurfaceBoundsCalculator.cpp.
References mitk::PlaneGeometry::Distance(), EnforceImageBounds(), mitk::eps, mitk::Line< TCoordRep, NPointDimension >::GetDirection(), mitk::Line< TCoordRep, NPointDimension >::GetPoint1(), mitk::PlaneGeometry::IntersectionPoint(), mitk::PlaneGeometry::IntersectionPointParam(), line, m_Image, m_MinMaxOutput, max(), min(), ROUND_P, and mitk::sqrteps.
Referenced by Update().
|
protected |
Definition at line 246 of file mitkClippedSurfaceBoundsCalculator.cpp.
References m_Image, m_MinMaxOutput, and ROUND_P.
|
protected |
Clips the resulting index-coordinates to make sure they do not exceed the imagebounds.
Definition at line 275 of file mitkClippedSurfaceBoundsCalculator.cpp.
References m_Image, m_MinMaxOutput, max(), and min().
Referenced by CalculateIntersectionPoints(), and Update().
mitk::ClippedSurfaceBoundsCalculator::OutputType mitk::ClippedSurfaceBoundsCalculator::GetMinMaxSpatialDirectionX | ( | ) |
What X coordinates (slice indices) are cut/visible in given plane.
Definition at line 92 of file mitkClippedSurfaceBoundsCalculator.cpp.
References m_MinMaxOutput.
Referenced by CheckIntersectionWithPointCloud().
mitk::ClippedSurfaceBoundsCalculator::OutputType mitk::ClippedSurfaceBoundsCalculator::GetMinMaxSpatialDirectionY | ( | ) |
What Y coordinates (slice indices) are cut/visible in given plane.
Definition at line 97 of file mitkClippedSurfaceBoundsCalculator.cpp.
References m_MinMaxOutput.
Referenced by CheckIntersectionWithRotatedGeometry90().
mitk::ClippedSurfaceBoundsCalculator::OutputType mitk::ClippedSurfaceBoundsCalculator::GetMinMaxSpatialDirectionZ | ( | ) |
What Z coordinates (slice indices) are cut/visible in given plane.
Definition at line 102 of file mitkClippedSurfaceBoundsCalculator.cpp.
References m_MinMaxOutput.
Referenced by CheckIntersectionPointsOfTwoGeometry3D(), CheckIntersectionWithPointCloud(), CheckIntersectionWithRotatedGeometry(), CheckPlanesInsideBoundingBox(), CheckPlanesInsideBoundingBoxOnlyOnOneSlice(), and CheckPlanesOutsideOfBoundingBox().
void mitk::ClippedSurfaceBoundsCalculator::InitializeOutput | ( | ) |
Definition at line 44 of file mitkClippedSurfaceBoundsCalculator.cpp.
References m_MinMaxOutput, max(), and min().
Referenced by ClippedSurfaceBoundsCalculator().
void mitk::ClippedSurfaceBoundsCalculator::SetInput | ( | const mitk::PlaneGeometry * | geometry, |
mitk::Image * | image | ||
) |
Definition at line 59 of file mitkClippedSurfaceBoundsCalculator.cpp.
References image, m_Geometry3D, m_Image, m_ObjectPointsInWorldCoordinates, and m_PlaneGeometry.
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 70 of file mitkClippedSurfaceBoundsCalculator.cpp.
References image, m_Geometry3D, m_Image, m_ObjectPointsInWorldCoordinates, and m_PlaneGeometry.
void mitk::ClippedSurfaceBoundsCalculator::SetInput | ( | const PointListType | pointlist, |
mitk::Image * | image | ||
) |
Definition at line 81 of file mitkClippedSurfaceBoundsCalculator.cpp.
References image, m_Geometry3D, m_Image, m_ObjectPointsInWorldCoordinates, and m_PlaneGeometry.
void mitk::ClippedSurfaceBoundsCalculator::Update | ( | ) |
Request calculation.
How cut/visible slice indices are determined:
Definition at line 107 of file mitkClippedSurfaceBoundsCalculator.cpp.
References CalculateIntersectionPoints(), EnforceImageBounds(), mitk::SlicedGeometry3D::GetSlices(), m_Geometry3D, m_MinMaxOutput, m_ObjectPointsInWorldCoordinates, m_PlaneGeometry, max(), and min().
Referenced by CheckIntersectionPointsOfTwoGeometry3D(), CheckIntersectionWithPointCloud(), CheckIntersectionWithRotatedGeometry(), CheckIntersectionWithRotatedGeometry90(), CheckPlanesInsideBoundingBox(), CheckPlanesInsideBoundingBoxOnlyOnOneSlice(), and CheckPlanesOutsideOfBoundingBox().
|
protected |
Definition at line 100 of file mitkClippedSurfaceBoundsCalculator.h.
Referenced by SetInput(), and Update().
|
protected |
Definition at line 101 of file mitkClippedSurfaceBoundsCalculator.h.
Referenced by CalculateIntersectionPoints(), EnforceImageBounds(), and SetInput().
|
protected |
Definition at line 103 of file mitkClippedSurfaceBoundsCalculator.h.
Referenced by CalculateIntersectionPoints(), EnforceImageBounds(), GetMinMaxSpatialDirectionX(), GetMinMaxSpatialDirectionY(), GetMinMaxSpatialDirectionZ(), InitializeOutput(), and Update().
|
protected |
Definition at line 102 of file mitkClippedSurfaceBoundsCalculator.h.
Referenced by ClippedSurfaceBoundsCalculator(), SetInput(), and Update().
|
protected |
Definition at line 99 of file mitkClippedSurfaceBoundsCalculator.h.
Referenced by SetInput(), and Update().