13 #ifndef QmitkRenderWindowWidget_h
14 #define QmitkRenderWindowWidget_h
28 #include <QMouseEvent>
29 #include <QVBoxLayout>
31 class vtkCornerAnnotation;
49 QWidget* parent =
nullptr,
50 const QString& widgetName =
"",
63 void ForceImmediateUpdate();
65 void AddUtilityWidget(QWidget* utilityWidget);
68 void ShowGradientBackground(
bool enable);
70 bool IsGradientBackgroundOn()
const;
75 void ShowColoredRectangle(
bool show);
76 bool IsColoredRectangleVisible()
const;
78 void ShowCornerAnnotation(
bool show);
79 bool IsCornerAnnotationVisible()
const;
80 void SetCornerAnnotationText(
const std::string& cornerAnnotation);
81 std::string GetCornerAnnotationText()
const;
83 bool IsRenderWindowMenuActivated()
const;
85 void SetCrosshairVisibility(
bool visible);
86 bool GetCrosshairVisibility();
87 void SetCrosshairGap(
unsigned int gapSize);
89 void EnableCrosshair();
90 void DisableCrosshair();
95 void SetGeometry(
const itk::EventObject& event);
96 void SetGeometrySlice(
const itk::EventObject& event);
100 void OnResetGeometry();
104 void InitializeGUI();
105 void InitializeDecorations();
108 QString m_WidgetName;
109 QVBoxLayout* m_Layout;
117 std::pair<mitk::Color, mitk::Color> m_GradientBackgroundColors;
119 vtkSmartPointer<vtkCornerAnnotation> m_CornerAnnotation;