13 #ifndef QmitkRenderWindowWidget_h
14 #define QmitkRenderWindowWidget_h
29 #include <QMouseEvent>
30 #include <QVBoxLayout>
32 class vtkCornerAnnotation;
50 QWidget* parent =
nullptr,
51 const QString& widgetName =
"",
64 void ForceImmediateUpdate();
66 void AddUtilityWidget(QWidget* utilityWidget);
70 void ShowGradientBackground(
bool enable);
72 bool IsGradientBackgroundOn()
const;
77 void ShowColoredRectangle(
bool show);
78 bool IsColoredRectangleVisible()
const;
80 void ShowCornerAnnotation(
bool show);
81 bool IsCornerAnnotationVisible()
const;
82 void SetCornerAnnotationText(
const std::string& cornerAnnotation);
83 std::string GetCornerAnnotationText()
const;
85 bool IsRenderWindowMenuActivated()
const;
87 void SetCrosshairVisibility(
bool visible);
88 bool GetCrosshairVisibility();
89 void SetCrosshairGap(
unsigned int gapSize);
91 void EnableCrosshair();
92 void DisableCrosshair();
97 void SetGeometry(
const itk::EventObject& event);
98 void SetGeometrySlice(
const itk::EventObject& event);
102 void OnResetGeometry();
106 void InitializeGUI();
107 void InitializeDecorations();
110 QString m_WidgetName;
111 QVBoxLayout* m_Layout;
119 std::pair<mitk::Color, mitk::Color> m_GradientBackgroundColors;