22 CPPUNIT_TEST_SUITE(mitkSurfaceVtkMapper2DTestSuite);
28 CPPUNIT_TEST_SUITE_END();
33 std::vector<std::string> m_CommandlineArgs;
34 std::string m_PathToBall;
35 std::string m_PathToBinary;
43 mitkSurfaceVtkMapper2DTestSuite() : m_RenderingTestHelper(640, 480) {}
61 m_CommandlineArgs.push_back(
"-V");
72 m_CommandlineArgs.push_back(
GetTestDataFilePath(
"RenderingTestData/ReferenceScreenshots/ball640x480REF.png"));
78 void RenderBallWithGeometry()
87 node->GetData()->GetGeometry()->SetSpacing(spacing);
91 m_CommandlineArgs.push_back(
92 GetTestDataFilePath(
"RenderingTestData/ReferenceScreenshots/ballWithGeometry640x480REF.png"));
98 void RenderOpaqueBall()
102 node->SetOpacity(0.5);
106 m_CommandlineArgs.push_back(
121 m_CommandlineArgs.push_back(
128 void RenderRedBinary()
136 m_CommandlineArgs.push_back(
137 GetTestDataFilePath(
"RenderingTestData/ReferenceScreenshots/binaryColorRed640x480REF.png"));
MITK_TEST_SUITE_REGISTRATION(mitkImageToItk)
#define MITK_TEST(TESTMETHOD)
Adds a test to the current test suite.
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...
void AddNodeToStorage(mitk::DataNode::Pointer node)
AddNodeToStorage Add a node to the datastorage and perform a reinit which is necessary for rendering...
static DataStorage::SetOfObjects::Pointer Load(const std::string &path, DataStorage &storage, const ReaderOptionsFunctorBase *optionsCallback=nullptr)
Load a file into the given DataStorage.