26 CPPUNIT_TEST_SUITE(mitkSurfaceVtkMapper2DTestSuite);
32 CPPUNIT_TEST_SUITE_END();
37 std::vector<std::string> m_CommandlineArgs;
38 std::string m_PathToBall;
39 std::string m_PathToBinary;
47 mitkSurfaceVtkMapper2DTestSuite() : m_RenderingTestHelper(640, 480) {}
65 m_CommandlineArgs.push_back(
"-V");
76 m_CommandlineArgs.push_back(
GetTestDataFilePath(
"RenderingTestData/ReferenceScreenshots/ball640x480REF.png"));
82 void RenderBallWithGeometry()
91 node->GetData()->GetGeometry()->SetSpacing(spacing);
95 m_CommandlineArgs.push_back(
96 GetTestDataFilePath(
"RenderingTestData/ReferenceScreenshots/ballWithGeometry640x480REF.png"));
102 void RenderOpaqueBall()
106 node->SetOpacity(0.5);
110 m_CommandlineArgs.push_back(
125 m_CommandlineArgs.push_back(
132 void RenderRedBinary()
140 m_CommandlineArgs.push_back(
141 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...
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...