Medical Imaging Interaction Toolkit  2024.12.99-0da743f6
Medical Imaging Interaction Toolkit
QmitkScalarBar Class Reference

#include <QmitkScalarBar.h>

Inheritance diagram for QmitkScalarBar:
Collaboration diagram for QmitkScalarBar:

Public Types

enum  alignment { vertical, horizontal }
 

Public Member Functions

 QmitkScalarBar (QWidget *parent=nullptr)
 Default Constructor. More...
 
 ~QmitkScalarBar () override
 Default Destructor. More...
 
virtual void SetScaleFactor (double scale)
 
virtual void SetAlignment (alignment align)
 
void SetPen (const QPen &pen)
 
void SetNumberOfSubdivisions (unsigned int subs)
 
unsigned int GetNumberOfSubdivisions ()
 

Protected Member Functions

void paintEvent (QPaintEvent *event) override
 
void SetupGeometry (alignment align)
 
void CleanUpLines ()
 

Protected Attributes

alignment m_Alignment
 
double m_ScaleFactor
 
QLine * m_MainLine
 
std::vector< QLine * > m_SubDivisionLines
 
QPen m_Pen
 
unsigned int m_NumberOfSubDivisions
 

Detailed Description

Definition at line 22 of file QmitkScalarBar.h.

Member Enumeration Documentation

◆ alignment

Enumerator
vertical 
horizontal 

Definition at line 26 of file QmitkScalarBar.h.

Constructor & Destructor Documentation

◆ QmitkScalarBar()

QmitkScalarBar::QmitkScalarBar ( QWidget *  parent = nullptr)

Default Constructor.

◆ ~QmitkScalarBar()

QmitkScalarBar::~QmitkScalarBar ( )
override

Default Destructor.

Member Function Documentation

◆ CleanUpLines()

void QmitkScalarBar::CleanUpLines ( )
protected

◆ GetNumberOfSubdivisions()

unsigned int QmitkScalarBar::GetNumberOfSubdivisions ( )

◆ paintEvent()

void QmitkScalarBar::paintEvent ( QPaintEvent *  event)
overrideprotected

◆ SetAlignment()

virtual void QmitkScalarBar::SetAlignment ( alignment  align)
virtual

◆ SetNumberOfSubdivisions()

void QmitkScalarBar::SetNumberOfSubdivisions ( unsigned int  subs)

◆ SetPen()

void QmitkScalarBar::SetPen ( const QPen &  pen)

◆ SetScaleFactor()

virtual void QmitkScalarBar::SetScaleFactor ( double  scale)
virtual

◆ SetupGeometry()

void QmitkScalarBar::SetupGeometry ( alignment  align)
protected

Member Data Documentation

◆ m_Alignment

alignment QmitkScalarBar::m_Alignment
protected

Definition at line 60 of file QmitkScalarBar.h.

◆ m_MainLine

QLine* QmitkScalarBar::m_MainLine
protected

Definition at line 64 of file QmitkScalarBar.h.

◆ m_NumberOfSubDivisions

unsigned int QmitkScalarBar::m_NumberOfSubDivisions
protected

Definition at line 70 of file QmitkScalarBar.h.

◆ m_Pen

QPen QmitkScalarBar::m_Pen
protected

Definition at line 68 of file QmitkScalarBar.h.

◆ m_ScaleFactor

double QmitkScalarBar::m_ScaleFactor
protected

Definition at line 62 of file QmitkScalarBar.h.

◆ m_SubDivisionLines

std::vector<QLine *> QmitkScalarBar::m_SubDivisionLines
protected

Definition at line 66 of file QmitkScalarBar.h.


The documentation for this class was generated from the following file: