13 #ifndef QmitkOverlayController_h
14 #define QmitkOverlayController_h
#define MITKQTOVERLAYS_EXPORT
controller that manages the positioning and stacking of QmitkOverlays
std::map< QmitkOverlay::DisplayPosition, QWidget * > OverlayPositionMap
void InitializeWidget(QmitkOverlay::DisplayPosition pos)
initializes one QWidget - internally used by InitializeOverlayLayout()
void RestackOverlays(QmitkOverlay::DisplayPosition pos)
mitk::PropertyList::Pointer m_PropertyList
PropertyList for RenderWindow-specific properties.
void AdjustOverlayPosition(QmitkOverlay::DisplayPosition displayPosition)
Repositions the overlay container widget at the specified display position.
QSize GetMinimumSizeForWidget(QmitkOverlay::DisplayPosition displayPosition)
void InitializeOverlayLayout()
setting up the widgets that will hold all overlays
QmitkRenderWindow * m_RenderWindow
RenderWindow that all Overlays will be added to.
OverlayPositionMap m_PositionedOverlays
all possible positions and the QWidgets representing the corresponding QmitkOverlays
void AdjustAllOverlayPosition()
Repositions all overlay container widgets to match the current render window geometry.
OverlayVector m_AllOverlays
all QmitkOverlays that are currently added
void RemoveOverlay(QmitkOverlay *overlay)
Removes a specific overlay from the render window.
void AddOverlay(QmitkOverlay *overlay)
Adds an overlay to the managed render window.
QmitkOverlayController(QmitkRenderWindow *rw, mitk::PropertyList *pl=nullptr)
Constructor.
virtual void AlignOverlays()
re-aligning the overlays - not implemented yet
void UpdateOverlayData(QmitkOverlay *overlay)
Updates the data of a single overlay and readjusts its position.
void SetOverlayVisibility(bool visible)
Sets the visibility of all overlay container widgets and their contents.
~QmitkOverlayController() override
Destructor.
std::vector< QmitkOverlay * > OverlayVector
void UpdateAllOverlays()
Updates the data of all managed overlays by calling their GenerateData() methods.
void RemoveAllOverlays()
Removes all overlays from the render window.
void SetPropertyList(mitk::PropertyList *pl)
Sets the render-window-specific PropertyList.
Abstract base class for all Qt-based overlay widgets in MITK.
DisplayPosition
Enumeration of all possible display positions in a render window.
MITK implementation of the QVTKWidget.
Key-value list holding instances of BaseProperty.