18 #include <vtkRenderWindow.h>
19 #include <vtkScalarBarWidget.h>
47 widgetRendering->SetRenderWindow(renderWindow);
51 widgetRendering->Enable();
52 MITK_TEST_CONDITION(!widgetRendering->IsEnabled(),
"Trying to enable widget rendering before setting widget")
53 widgetRendering->Disable();
56 MITK_TEST_CONDITION(widgetRendering->GetVtkWidget() ==
nullptr,
"Trying to retrieve widget before it has been set")
60 widgetRendering->SetVtkWidget(scalarBarWidget);
61 MITK_TEST_CONDITION(widgetRendering->GetVtkWidget() == scalarBarWidget,
"Retrieving widget after it has been set")
64 widgetRendering->Enable();
68 widgetRendering->Disable();
72 scalarBarWidget->Delete();
73 renderWindow->Delete();
#define MITK_TEST_CONDITION_REQUIRED(COND, MSG)
section GeneralTestsDeprecatedOldTestingStyle Deprecated macros All tests with MITK_TEST_BEGIN()
#define MITK_TEST_CONDITION(COND, MSG)
static itkEventMacro(BoundingShapeInteractionEvent, itk::AnyEvent) class MITKBOUNDINGSHAPE_EXPORT BoundingShapeInteractor Pointer New()
Basic interaction methods for mitk::GeometryData.