24 #include <vtkRegressionTestImage.h>
37 bool loadedPreset = levelWindowPreset->
LoadPreset();
39 double level = levelWindowPreset->
getLevel(
"Blood");
40 double window = levelWindowPreset->
getWindow(
"Blood");
41 levelWindowPreset->Delete();
49 "CompareRenderWindowAgainstReference test result positive?");
void SetViewDirection(mitk::SliceNavigationController::ViewDirection viewDirection)
Set the view direction of the renderwindow (e.g. sagittal, coronal, axial)
#define MITK_TEST_CONDITION_REQUIRED(COND, MSG)
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.
The LevelWindow class Class to store level/window values.
#define MITK_TEST_CONDITION(COND, MSG)
int mitkImageVtkMapper2DLevelWindowTest(int argc, char *argv[])
double getWindow(std::string window)
static LevelWindowPreset * New()
double getLevel(std::string name)