24 #include <vtkRegressionTestImage.h>
37 centerPoint.Fill(0.0f);
40 rotationVector.SetElement(0, 0.2);
41 rotationVector.SetElement(1, 0.3);
42 rotationVector.SetElement(2, 0.5);
50 centerPoint = image->GetGeometry()->GetCenter();
57 "CompareRenderWindowAgainstReference test result positive?");
63 "/media/hdd/thomasHdd/Pictures/RenderingTestData/pic3dSwivel640x480REF.png");
int mitkImageVtkMapper2DSwivelTest(int argc, char *argv[])
section GeneralTestsDeprecatedOldTestingStyle Deprecated macros All tests with MITK_TEST_BEGIN()
void SaveReferenceScreenShot(std::string fileName)
SaveReferenceScreenShot Convenience method to save a reference screen shot.
bool CompareRenderWindowAgainstReference(int argc, char *argv[], double threshold=10.0)
CompareRenderWindowAgainstReference Convenience method to compare the image rendered in the internal ...
void ReorientSlices(mitk::Point3D origin, mitk::Vector3D rotation)
Reorient the slice (e.g. rotation and translation like the swivel mode).
#define MITK_TEST_CONDITION(COND, MSG)
Image class for storing images.
mitk::DataStorage::Pointer GetDataStorage()
Returns the datastorage, in order to modify the data inside a rendering test.
static Pointer New(const char *_arg)