20 #include <vtkRegressionTestImage.h> 30 MITK_WARN <<
"Test not run: " << e.GetDescription();
42 centerPoint.Fill(0.0f);
45 rotationVector.SetElement(0, 0.2);
46 rotationVector.SetElement(1, 0.3);
47 rotationVector.SetElement(2, 0.5);
55 centerPoint = image->GetGeometry()->GetCenter();
62 "CompareRenderWindowAgainstReference test result positive?");
68 "/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)
Specialized mitk::Exception for skipped tests.
Image class for storing images.
mitk::Image::Pointer image
mitk::DataStorage::Pointer GetDataStorage()
Returns the datastorage, in order to modify the data inside a rendering test.
static Pointer New(const char *_arg)