26 #include <vtkRegressionTestImage.h>
40 int resliceInterpolation = atoi(argv[argc - 4]);
49 centerPoint.Fill(0.0f);
52 rotationVector.SetElement(0, 0.2);
53 rotationVector.SetElement(1, 0.3);
54 rotationVector.SetElement(2, 0.5);
62 centerPoint = image->GetGeometry()->GetCenter();
68 double threshold = 0.35;
72 "CompareRenderWindowAgainstReference test result positive?");
78 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)
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)
int mitkImageVtkMapper2DResliceInterpolationPropertyTest(int argc, char *argv[])