13 #ifndef QmitkScalarBar_h
14 #define QmitkScalarBar_h
#define MITKQTOVERLAYS_EXPORT
A widget that draws a scale bar with subdivision lines for spatial reference.
~QmitkScalarBar() override
Destructor.
virtual void SetScaleFactor(double scale)
Sets the scale factor (mm per pixel) and resizes the bar accordingly.
void SetPen(const QPen &pen)
Sets the pen used to draw the scalar bar lines.
unsigned int m_NumberOfSubDivisions
void SetNumberOfSubdivisions(unsigned int subs)
Sets the number of subdivision tick marks.
virtual void SetAlignment(alignment align)
Sets the orientation of the scalar bar.
unsigned int GetNumberOfSubdivisions()
Returns the current number of subdivision tick marks.
std::vector< QLine * > m_SubDivisionLines
void paintEvent(QPaintEvent *event) override
alignment
Orientation of the scalar bar.
void SetupGeometry(alignment align)
QmitkScalarBar(QWidget *parent=nullptr)
Constructor.