25 #include <vtkRegressionTestImage.h>
39 scalarOpacityPoints.push_back(std::make_pair(255, 0));
40 scalarOpacityPoints.push_back(std::make_pair(0, 0.1));
41 scalarOpacityPoints.push_back(std::make_pair(127, 0.3));
45 colorTransferFunction->SetColorSpaceToRGB();
46 colorTransferFunction->AddRGBPoint(0.0, 1, 0, 0);
47 colorTransferFunction->AddRGBPoint(127.5, 0, 1, 0);
48 colorTransferFunction->AddRGBPoint(255.0, 0, 0, 1);
51 transferFunction->SetColorTransferFunction(colorTransferFunction);
52 transferFunction->SetScalarOpacityPoints(scalarOpacityPoints);
63 "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)
std::vector< std::pair< double, double > > ControlPoints
static itkEventMacro(BoundingShapeInteractionEvent, itk::AnyEvent) class MITKBOUNDINGSHAPE_EXPORT BoundingShapeInteractor Pointer New()
Basic interaction methods for mitk::GeometryData.