13 #ifndef QmitkOverlay_h
14 #define QmitkOverlay_h
#define MITKQTOVERLAYS_EXPORT
Abstract base class for all Qt-based overlay widgets in MITK.
virtual void SetPosition(DisplayPosition pos)
Sets the display position of this overlay.
const char * m_Id
ID of the overlay, used as property key for lookups.
DisplayPosition
Enumeration of all possible display positions in a render window.
virtual void GenerateData(mitk::PropertyList::Pointer pl)
Configures the overlay using properties from the given PropertyList.
~QmitkOverlay() override
Destructor. Deletes the internal widget unless it was set externally.
virtual void SetLayer(unsigned int layer)
Sets the stacking layer of this overlay.
virtual unsigned int GetLayer()
Returns the current stacking layer.
DisplayPosition m_Position
Current display position of the overlay.
virtual QSize GetNeededSize()=0
Returns the minimum size needed to fully display this overlay.
unsigned int m_Layer
Stacking layer of the overlay.
QWidget * m_Widget
Internal QWidget representing the overlay content.
virtual DisplayPosition GetPosition()
Returns the current display position.
virtual QWidget * GetWidget()
Returns the internal QWidget representing this overlay.
QmitkOverlay(const char *id)
Constructor.
bool m_WidgetIsCustom
Flag indicating whether the widget was set externally (custom overlay).
void AddDropShadow(QWidget *widget)
Adds a drop shadow graphics effect to the given widget.