Medical Imaging Interaction Toolkit
2016.11.0
Medical Imaging Interaction Toolkit
|
#include "mitkTestingMacros.h"
#include <iostream>
#include "mitkClippedSurfaceBoundsCalculator.h"
#include "mitkGeometry3D.h"
#include "mitkNumericTypes.h"
#include "mitkPlaneGeometry.h"
#include <cmath>
Go to the source code of this file.
Macros | |
#define | _USE_MATH_DEFINES |
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 *[]) |
#define _USE_MATH_DEFINES |
Definition at line 18 of file mitkClippedSurfaceBoundsCalculatorTest.cpp.
|
static |
Definition at line 326 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 343 of file mitkClippedSurfaceBoundsCalculatorTest.cpp.
References mitk::ClippedSurfaceBoundsCalculator::GetMinMaxSpatialDirectionX(), mitk::ClippedSurfaceBoundsCalculator::GetMinMaxSpatialDirectionZ(), MITK_TEST_CONDITION, mitk::Image::New(), mitk::ClippedSurfaceBoundsCalculator::SetInput(), and mitk::ClippedSurfaceBoundsCalculator::Update().
Referenced by mitkClippedSurfaceBoundsCalculatorTest().
|
static |
Definition at line 399 of file mitkClippedSurfaceBoundsCalculatorTest.cpp.
References mitk::FillVector3D(), mitk::ClippedSurfaceBoundsCalculator::GetMinMaxSpatialDirectionZ(), 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 517 of file mitkClippedSurfaceBoundsCalculatorTest.cpp.
References mitk::FillVector3D(), mitk::ClippedSurfaceBoundsCalculator::GetMinMaxSpatialDirectionY(), M_PI, 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 104 of file mitkClippedSurfaceBoundsCalculatorTest.cpp.
References mitk::FillVector3D(), mitk::ClippedSurfaceBoundsCalculator::GetMinMaxSpatialDirectionZ(), 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 28 of file mitkClippedSurfaceBoundsCalculatorTest.cpp.
References mitk::FillVector3D(), mitk::ClippedSurfaceBoundsCalculator::GetMinMaxSpatialDirectionZ(), MITK_TEST_CONDITION, mitk::PlaneGeometry::New(), mitk::Image::New(), mitk::ClippedSurfaceBoundsCalculator::SetInput(), and mitk::ClippedSurfaceBoundsCalculator::Update().
Referenced by mitkClippedSurfaceBoundsCalculatorTest().
|
static |
Definition at line 221 of file mitkClippedSurfaceBoundsCalculatorTest.cpp.
References mitk::FillVector3D(), mitk::ClippedSurfaceBoundsCalculator::GetMinMaxSpatialDirectionZ(), 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 717 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().