17 #ifndef QmitkStdMultiWidget_h
18 #define QmitkStdMultiWidget_h
28 #include <qsplitter.h>
42 class vtkCornerAnnotation;
47 class RenderingManager;
58 Qt::WindowFlags f = 0,
61 const QString &name =
"stdmulti");
68 void ForceImmediateUpdate();
82 void EnablePositionTracking();
84 void DisablePositionTracking();
86 int GetLayout()
const;
88 bool GetGradientBackgroundFlag()
const;
112 bool IsColoredRectanglesEnabled()
const;
114 bool IsDepartmentLogoEnabled()
const;
116 void InitializeWidget();
119 void RemovePlanesFromDataStorage();
121 void AddPlanesToDataStorage();
129 void HandleCrosshairPositionEvent();
132 void ActivateMenuWidget(
bool state);
134 bool IsMenuWidgetEnabled()
const;
136 void SetCornerAnnotationVisibility(
bool visibility);
138 bool IsCornerAnnotationVisible(
void)
const;
141 void UpdateAllWidgets();
143 void HideAllWidgetToolbars();
150 void HandleCrosshairPositionEventDelayed();
152 void changeLayoutTo2DImagesUp();
154 void changeLayoutTo2DImagesLeft();
156 void changeLayoutToDefault();
158 void changeLayoutToBig3D();
160 void changeLayoutToWidget1();
162 void changeLayoutToWidget2();
164 void changeLayoutToWidget3();
166 void changeLayoutToRowWidget3And4();
168 void changeLayoutToColumnWidget3And4();
170 void changeLayoutToRowWidgetSmall3andBig4();
172 void changeLayoutToSmallUpperWidget2Big3and4();
174 void changeLayoutTo2x2Dand3DWidget();
176 void changeLayoutToLeft2Dand3DRight2D();
178 void changeLayoutTo2DUpAnd3DDown();
182 void InitPositionTracking();
186 void EnableStandardLevelWindow();
188 void DisableStandardLevelWindow();
192 void wheelEvent(QWheelEvent *e)
override;
194 void mousePressEvent(QMouseEvent *e)
override;
196 void moveEvent(QMoveEvent *e)
override;
206 void EnableGradientBackground();
208 void DisableGradientBackground();
210 void EnableDepartmentLogo();
212 void DisableDepartmentLogo();
214 void EnableColoredRectangles();
216 void DisableColoredRectangles();
218 void SetWidgetPlaneVisibility(
const char *widgetName,
bool visible,
mitk::BaseRenderer *renderer = NULL);
222 void SetWidgetPlanesLocked(
bool locked);
224 void SetWidgetPlanesRotationLocked(
bool locked);
226 void SetWidgetPlanesRotationLinked(
bool link);
228 void SetWidgetPlaneMode(
int mode);
232 void SetDepartmentLogoPath(
const char *path);
234 void SetWidgetPlaneModeToSlicing(
bool activate);
236 void SetWidgetPlaneModeToRotation(
bool activate);
238 void SetWidgetPlaneModeToSwivel(
bool activate);
240 void OnLayoutDesignChanged(
int layoutDesignIndex);
242 void ResetCrosshair();
247 void WheelMoved(QWheelEvent *);
248 void WidgetPlanesRotationLinked(
bool);
249 void WidgetPlanesRotationEnabled(
bool);
250 void ViewsInitialized();
251 void WidgetPlaneModeSlicing(
bool);
252 void WidgetPlaneModeRotation(
bool);
253 void WidgetPlaneModeSwivel(
bool);
254 void WidgetPlaneModeChange(
int);
255 void WidgetNotifyNewCrossHairMode(
int);
269 PLANE_MODE_SLICING = 0,
288 LAYOUT_2D_UP_AND_3D_DOWN
305 void SetDecorationProperties(std::string text,
mitk::Color color,
int widgetNumber);
322 void SetGradientBackgroundColorForRenderWindow(
const mitk::Color &upper,
324 unsigned int widgetNumber);
331 mitk::Color GetDecorationColor(
unsigned int widgetNumber);
341 void SetDecorationColor(
unsigned int widgetNumber,
mitk::Color color);
348 std::string GetCornerAnnotationText(
unsigned int widgetNumber);
355 std::pair<mitk::Color, mitk::Color> GetGradientColors(
unsigned int widgetNumber);
398 std::pair<mitk::Color, mitk::Color> m_GradientBackgroundColors[4];
410 vtkSmartPointer<vtkCornerAnnotation> m_CornerAnnotations[4];
411 vtkSmartPointer<vtkMitkRectangleProp> m_RectangleProps[4];
421 vtkSmartPointer<vtkCornerAnnotation> CreateCornerAnnotation(std::string text,
mitk::Color color);
427 void FillGradientBackgroundWithBlack();
Data management class that handles 'was created by' relations.
Standard implementation of BaseGeometry.
void AddDisplayPlaneSubTree()
Organizes the rendering process.
DataCollection - Class to facilitate loading/accessing structured data.
Controls the selection of the slice the associated BaseRenderer will display.
itk::SmartPointer< const Self > ConstPointer
The vtkMitkRectangleProp2 class Renders a rectangle into a renderwindow as a frame.
Manager for coordinating the rendering process.
MITK implementation of the QVTKWidget.
itk::RGBPixel< float > Color
Color Standard RGB color typedef (float)