Medical Imaging Interaction Toolkit
2018.4.99-389bf124
Medical Imaging Interaction Toolkit
|
#include "mitkTestingMacros.h"
#include <iostream>
#include "mitkClippedSurfaceBoundsCalculator.h"
#include "mitkGeometry3D.h"
#include "mitkNumericTypes.h"
#include "mitkPlaneGeometry.h"
Go to the source code of this file.
Functions | |
static void | CheckPlanesInsideBoundingBoxOnlyOnOneSlice (mitk::BaseGeometry::Pointer geometry3D) |
static void | CheckPlanesInsideBoundingBox (mitk::BaseGeometry::Pointer geometry3D) |
static void | CheckPlanesOutsideOfBoundingBox (mitk::BaseGeometry::Pointer geometry3D) |
static void | CheckIntersectionPointsOfTwoGeometry3D (mitk::BaseGeometry::Pointer firstGeometry3D, mitk::BaseGeometry::Pointer secondGeometry3D) |
static void | CheckIntersectionWithPointCloud (mitk::BaseGeometry::Pointer geometry3D) |
static void | CheckIntersectionWithRotatedGeometry () |
static void | CheckIntersectionWithRotatedGeometry90 () |
int | mitkClippedSurfaceBoundsCalculatorTest (int, char *[]) |
|
static |
Definition at line 319 of file mitkClippedSurfaceBoundsCalculatorTest.cpp.
References mitk::ClippedSurfaceBoundsCalculator::GetMinMaxSpatialDirectionZ(), MITK_INFO, MITK_TEST_CONDITION, mitk::Image::New(), mitk::ClippedSurfaceBoundsCalculator::SetInput(), and mitk::ClippedSurfaceBoundsCalculator::Update().
Referenced by mitkClippedSurfaceBoundsCalculatorTest().
|
static |
Definition at line 336 of file mitkClippedSurfaceBoundsCalculatorTest.cpp.
References mitk::ClippedSurfaceBoundsCalculator::GetMinMaxSpatialDirectionX(), mitk::ClippedSurfaceBoundsCalculator::GetMinMaxSpatialDirectionZ(), image, MITK_TEST_CONDITION, mitk::Image::New(), mitk::ClippedSurfaceBoundsCalculator::SetInput(), and mitk::ClippedSurfaceBoundsCalculator::Update().
Referenced by mitkClippedSurfaceBoundsCalculatorTest().
|
static |
Definition at line 392 of file mitkClippedSurfaceBoundsCalculatorTest.cpp.
References mitk::FillVector3D(), mitk::ClippedSurfaceBoundsCalculator::GetMinMaxSpatialDirectionZ(), image, MITK_TEST_CONDITION, mitk::SlicedGeometry3D::New(), mitk::PlaneGeometry::New(), mitk::Image::New(), mitk::ClippedSurfaceBoundsCalculator::SetInput(), and mitk::ClippedSurfaceBoundsCalculator::Update().
Referenced by mitkClippedSurfaceBoundsCalculatorTest().
|
static |
Definition at line 510 of file mitkClippedSurfaceBoundsCalculatorTest.cpp.
References mitk::FillVector3D(), mitk::ClippedSurfaceBoundsCalculator::GetMinMaxSpatialDirectionY(), image, MITK_INFO, MITK_TEST_CONDITION, mitk::SlicedGeometry3D::New(), mitk::PlaneGeometry::New(), mitk::Image::New(), mitk::ClippedSurfaceBoundsCalculator::SetInput(), and mitk::ClippedSurfaceBoundsCalculator::Update().
Referenced by mitkClippedSurfaceBoundsCalculatorTest().
|
static |
Definition at line 97 of file mitkClippedSurfaceBoundsCalculatorTest.cpp.
References mitk::FillVector3D(), mitk::ClippedSurfaceBoundsCalculator::GetMinMaxSpatialDirectionZ(), image, MITK_INFO, MITK_TEST_CONDITION, mitk::PlaneGeometry::New(), mitk::Image::New(), mitk::ClippedSurfaceBoundsCalculator::SetInput(), and mitk::ClippedSurfaceBoundsCalculator::Update().
Referenced by mitkClippedSurfaceBoundsCalculatorTest().
|
static |
Definition at line 21 of file mitkClippedSurfaceBoundsCalculatorTest.cpp.
References mitk::FillVector3D(), mitk::ClippedSurfaceBoundsCalculator::GetMinMaxSpatialDirectionZ(), image, MITK_TEST_CONDITION, mitk::PlaneGeometry::New(), mitk::Image::New(), mitk::ClippedSurfaceBoundsCalculator::SetInput(), and mitk::ClippedSurfaceBoundsCalculator::Update().
Referenced by mitkClippedSurfaceBoundsCalculatorTest().
|
static |
Definition at line 214 of file mitkClippedSurfaceBoundsCalculatorTest.cpp.
References mitk::FillVector3D(), mitk::ClippedSurfaceBoundsCalculator::GetMinMaxSpatialDirectionZ(), image, max(), min(), MITK_TEST_CONDITION, mitk::PlaneGeometry::New(), mitk::Image::New(), mitk::ClippedSurfaceBoundsCalculator::SetInput(), and mitk::ClippedSurfaceBoundsCalculator::Update().
Referenced by mitkClippedSurfaceBoundsCalculatorTest().
int mitkClippedSurfaceBoundsCalculatorTest | ( | int | , |
char * | [] | ||
) |
The class mitkClippedSurfaceBoundsCalculator calculates the intersection points of a PlaneGeometry and a Geometry3D. This unit test checks if the correct min and max values for the three spatial directions (x, y, z) are calculated. To test this we define artificial PlaneGeometries and Geometry3Ds and test different scenarios:
Note: Currently rotated geometries are not tested!
ToDo: test also rotated 3D geometry!
Definition at line 710 of file mitkClippedSurfaceBoundsCalculatorTest.cpp.
References CheckIntersectionPointsOfTwoGeometry3D(), CheckIntersectionWithPointCloud(), CheckIntersectionWithRotatedGeometry(), CheckIntersectionWithRotatedGeometry90(), CheckPlanesInsideBoundingBox(), CheckPlanesInsideBoundingBoxOnlyOnOneSlice(), CheckPlanesOutsideOfBoundingBox(), mitk::FillVector3D(), MITK_TEST_BEGIN(), MITK_TEST_END(), mitk::SlicedGeometry3D::New(), and mitk::PlaneGeometry::New().