25 #include <vtkDebugLeaks.h>
29 CPPUNIT_TEST_SUITE(mitkSplineVtkMapper3DTestSuite);
32 vtkDebugLeaks::SetExitError(0);
39 CPPUNIT_TEST_SUITE_END();
44 std::vector<std::string> m_CommandlineArgs;
45 std::string m_PathToPointSet;
53 mitkSplineVtkMapper3DTestSuite() : m_RenderingTestHelper(640, 480) {}
67 GetTestDataFilePath(
"InteractionTestData/ReferenceData/PointSetDataInteractor_PointsAdd2d3d.mps");
75 m_CommandlineArgs.push_back(
"-V");
85 node->SetMapper(mitk::BaseRenderer::StandardMapperSlot::Standard3D, mapper);
91 m_CommandlineArgs.push_back(
GetTestDataFilePath(
"RenderingTestData/ReferenceScreenshots/spline_linewidth_1.png"));
97 void RenderBlueSpline()
104 node->SetMapper(mitk::BaseRenderer::StandardMapperSlot::Standard3D, mapper);
109 m_CommandlineArgs.push_back(
110 GetTestDataFilePath(
"RenderingTestData/ReferenceScreenshots/spline_blue_linewidth_1.png"));
116 void RenderThickSpline()
124 node->SetMapper(mitk::BaseRenderer::StandardMapperSlot::Standard3D, mapper);
129 m_CommandlineArgs.push_back(
GetTestDataFilePath(
"RenderingTestData/ReferenceScreenshots/spline_linewidth_8.png"));
157 void RenderLowResolutionSpline()
163 node->SetMapper(mitk::BaseRenderer::StandardMapperSlot::Standard3D, mapper);
165 mapper->SetSplineResolution(50);
170 m_CommandlineArgs.push_back(
171 GetTestDataFilePath(
"RenderingTestData/ReferenceScreenshots/spline_lowRes_linewidth_1.png"));
MITK_TEST_SUITE_REGISTRATION(mitkImageToItk)
vtkRenderWindow * GetVtkRenderWindow()
Getter for the vtkRenderWindow which should be used to call vtkRegressionTestImage.
#define MITK_TEST(TESTMETHOD)
Adds a test to the current test suite.
void SetMapperIDToRender3D()
SetMapperIDToRender3D Convenience method to render in a 3D renderwindow.
static std::string GetTestDataFilePath(const std::string &testData)
Get the absolute path for test data.
bool CompareRenderWindowAgainstReference(int argc, char *argv[], double threshold=10.0)
CompareRenderWindowAgainstReference Convenience method to compare the image rendered in the internal ...
Test fixture for parameterized tests.
The ArgcHelperClass class is a convinience class to convert a vector of strings to the standard c++ a...
static DataStorage::SetOfObjects::Pointer Load(const std::string &path, DataStorage &storage)
Load a file into the given DataStorage.
void AddNodeToStorage(mitk::DataNode::Pointer node)
AddNodeToStorage Add a node to the datastorage and perform a reinit which is necessary for rendering...