21 #include <vtkRegressionTestImage.h> 31 MITK_WARN <<
"Test not run: " << e.GetDescription();
44 scalarOpacityPoints.push_back(std::make_pair(255, 0));
45 scalarOpacityPoints.push_back(std::make_pair(0, 0.1));
46 scalarOpacityPoints.push_back(std::make_pair(127, 0.3));
49 vtkSmartPointer<vtkColorTransferFunction> colorTransferFunction = vtkSmartPointer<vtkColorTransferFunction>::New();
50 colorTransferFunction->SetColorSpaceToRGB();
51 colorTransferFunction->AddRGBPoint(0.0, 1, 0, 0);
52 colorTransferFunction->AddRGBPoint(127.5, 0, 1, 0);
53 colorTransferFunction->AddRGBPoint(255.0, 0, 0, 1);
56 transferFunction->SetColorTransferFunction(colorTransferFunction);
57 transferFunction->SetScalarOpacityPoints(scalarOpacityPoints);
68 "CompareRenderWindowAgainstReference test result positive?");
int mitkImageVtkMapper2DOpacityTransferFunctionTest(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 SetImageProperty(const char *propertyKey, mitk::BaseProperty *property)
This method set the property of the member datastorage.
#define MITK_TEST_CONDITION(COND, MSG)
Specialized mitk::Exception for skipped tests.
std::vector< std::pair< double, double > > ControlPoints