22 #include <vtkRegressionTestImage.h> 32 MITK_WARN <<
"Test not run: " << e.GetDescription();
45 int resliceInterpolation = atoi(argv[argc - 4]);
54 centerPoint.Fill(0.0f);
57 rotationVector.SetElement(0, 0.2);
58 rotationVector.SetElement(1, 0.3);
59 rotationVector.SetElement(2, 0.5);
67 centerPoint = image->GetGeometry()->GetCenter();
73 double threshold = 0.35;
77 "CompareRenderWindowAgainstReference test result positive?");
83 renderingHelper.
SaveReferenceScreenShot(
"C:\\Users\\schroedt\\Pictures\\RenderingTestData\\Pic3dRefLinear.png");
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 SetImageProperty(const char *propertyKey, mitk::BaseProperty *property)
This method set the property of the member datastorage.
void ReorientSlices(mitk::Point3D origin, mitk::Vector3D rotation)
Reorient the slice (e.g. rotation and translation like the swivel mode).
void Render()
Render everything into an mitkRenderWindow. Call SetViewDirection() and SetProperty() before this met...
#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)
int mitkImageVtkMapper2DResliceInterpolationPropertyTest(int argc, char *argv[])