23 #include <vtkLookupTable.h> 33 MITK_WARN <<
"Test not run: " << e.GetDescription();
45 vtkSmartPointer<vtkLookupTable> lookupTable = vtkSmartPointer<vtkLookupTable>::New();
47 lookupTable->SetRampToLinear();
49 lookupTable->SetTableRange(0, 255);
53 lookupTable->SetTableValue(0, 1.0, 0.0, 0.0, 1.0);
54 lookupTable->SetTableValue(255, 0.0, 0.0, 1.0, 1.0);
57 myLookupTable->SetVtkLookupTable(lookupTable);
67 "CompareRenderWindowAgainstReference test result positive?");
int mitkImageVtkMapper2DLookupTableTest(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.