#include <mitkClippedSurfaceBoundsCalculator.h>
◆ OutputType
◆ PointListType
◆ ClippedSurfaceBoundsCalculator() [1/3]
| mitk::ClippedSurfaceBoundsCalculator::ClippedSurfaceBoundsCalculator |
( |
const mitk::PlaneGeometry * |
geometry = nullptr, |
|
|
mitk::Image::Pointer |
image = nullptr |
|
) |
| |
Construct from a PlaneGeometry and image.
- Parameters
-
| geometry | The clipping plane (may be nullptr). |
| image | The image whose slice bounds are computed (may be nullptr). |
◆ ClippedSurfaceBoundsCalculator() [2/3]
| mitk::ClippedSurfaceBoundsCalculator::ClippedSurfaceBoundsCalculator |
( |
const mitk::BaseGeometry * |
geometry, |
|
|
mitk::Image::Pointer |
image |
|
) |
| |
Construct from a BaseGeometry (e.g. SlicedGeometry3D) and image.
- Parameters
-
| geometry | The 3D geometry defining the clipping volume. |
| image | The image whose slice bounds are computed. |
◆ ClippedSurfaceBoundsCalculator() [3/3]
| mitk::ClippedSurfaceBoundsCalculator::ClippedSurfaceBoundsCalculator |
( |
const PointListType |
pointlist, |
|
|
mitk::Image::Pointer |
image |
|
) |
| |
Construct from a list of world-coordinate points and image.
- Parameters
-
| pointlist | Points whose bounding slice indices are determined. |
| image | The image whose slice bounds are computed. |
◆ ~ClippedSurfaceBoundsCalculator()
| virtual mitk::ClippedSurfaceBoundsCalculator::~ClippedSurfaceBoundsCalculator |
( |
| ) |
|
|
virtual |
◆ CalculateIntersectionPoints() [1/2]
| void mitk::ClippedSurfaceBoundsCalculator::CalculateIntersectionPoints |
( |
const mitk::PlaneGeometry * |
geometry | ) |
|
|
protected |
Calculate intersection points of the image bounding box edges with the given plane.
- Parameters
-
| geometry | The plane geometry to intersect with. |
◆ CalculateIntersectionPoints() [2/2]
| void mitk::ClippedSurfaceBoundsCalculator::CalculateIntersectionPoints |
( |
PointListType |
pointList | ) |
|
|
protected |
Calculate bounding slice indices from a list of world-coordinate points.
- Parameters
-
| pointList | The points to convert to index coordinates. |
◆ EnforceImageBounds()
| void mitk::ClippedSurfaceBoundsCalculator::EnforceImageBounds |
( |
| ) |
|
|
protected |
Clamp the resulting index coordinates so they do not exceed the image bounds.
◆ GetMinMaxSpatialDirectionX()
| OutputType mitk::ClippedSurfaceBoundsCalculator::GetMinMaxSpatialDirectionX |
( |
| ) |
|
Get the min/max slice indices visible in the X direction.
- Returns
- A pair of (minimum, maximum) slice index in X.
◆ GetMinMaxSpatialDirectionY()
| OutputType mitk::ClippedSurfaceBoundsCalculator::GetMinMaxSpatialDirectionY |
( |
| ) |
|
Get the min/max slice indices visible in the Y direction.
- Returns
- A pair of (minimum, maximum) slice index in Y.
◆ GetMinMaxSpatialDirectionZ()
| OutputType mitk::ClippedSurfaceBoundsCalculator::GetMinMaxSpatialDirectionZ |
( |
| ) |
|
Get the min/max slice indices visible in the Z direction.
- Returns
- A pair of (minimum, maximum) slice index in Z.
◆ InitializeOutput()
| void mitk::ClippedSurfaceBoundsCalculator::InitializeOutput |
( |
| ) |
|
Reset the output min/max indices to their initial (invalid) state.
◆ SetInput() [1/3]
Set a BaseGeometry and image as input.
- Parameters
-
| geometry | The 3D geometry defining the clipping volume. |
| image | The image whose slice bounds are computed. |
◆ SetInput() [2/3]
Set a PlaneGeometry and image as input.
- Parameters
-
| geometry | The clipping plane. |
| image | The image whose slice bounds are computed. |
◆ SetInput() [3/3]
Set a list of world-coordinate points and image as input.
- Parameters
-
| pointlist | Points whose bounding slice indices are determined. |
| image | The image whose slice bounds are computed. |
◆ Update()
| void mitk::ClippedSurfaceBoundsCalculator::Update |
( |
| ) |
|
Request calculation.
How cut/visible slice indices are determined:
- construct a bounding box of the image. This is the box that connect the outer voxel centers(!).
- check the edges of this box.
- intersect each edge with the plane geometry
- if the intersection point is within the image box, we update the visible/cut slice indices for all dimensions.
- else we ignore the cut
◆ m_Geometry3D
| mitk::BaseGeometry::ConstPointer mitk::ClippedSurfaceBoundsCalculator::m_Geometry3D |
|
protected |
◆ m_Image
| mitk::Image::Pointer mitk::ClippedSurfaceBoundsCalculator::m_Image |
|
protected |
◆ m_MinMaxOutput
| std::vector<OutputType> mitk::ClippedSurfaceBoundsCalculator::m_MinMaxOutput |
|
protected |
◆ m_ObjectPointsInWorldCoordinates
| std::vector<mitk::Point3D> mitk::ClippedSurfaceBoundsCalculator::m_ObjectPointsInWorldCoordinates |
|
protected |
◆ m_PlaneGeometry
| mitk::PlaneGeometry::ConstPointer mitk::ClippedSurfaceBoundsCalculator::m_PlaneGeometry |
|
protected |
The documentation for this class was generated from the following file: