13 #ifndef QmitkScalarBarOverlay_h
14 #define QmitkScalarBarOverlay_h
#define MITKQTOVERLAYS_EXPORT
Abstract base class for all Qt-based overlay widgets in MITK.
Overlay displaying a scale bar in a render window.
void SetupCallback(mitk::BaseProperty::Pointer prop)
Sets up an ITK observer on the given property to auto-update the scale factor.
QSize GetNeededSize() override
Returns the current size of the scalar bar widget.
~QmitkScalarBarOverlay() override
Destructor. Removes the property observer.
mitk::BaseProperty::Pointer m_ObservedProperty
The observed property for automatic updates.
QmitkScalarBarOverlay(const char *id)
Constructor. Creates the internal QmitkScalarBar widget.
void SetScaleFactor()
Reads the scale factor property and applies it to the scalar bar.
void GetProperties(mitk::PropertyList::Pointer pl)
Reads visual properties (color) from the PropertyList and applies them.
QmitkScalarBar * m_ScalarBar
The internal QmitkScalarBar widget.
mitk::PropertyList::Pointer m_PropertyList
Cached PropertyList for property lookups.
unsigned long m_ObserverTag
ITK observer tag for the property modification callback.
void GenerateData(mitk::PropertyList::Pointer pl) override
Configures the scalar bar overlay from the given PropertyList.
A widget that draws a scale bar with subdivision lines for spatial reference.