Medical Imaging Interaction Toolkit  2016.11.0
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...
 
virtual ~QmitkScalarBar ()
 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 26 of file QmitkScalarBar.h.

Member Enumeration Documentation

Enumerator
vertical 
horizontal 

Definition at line 30 of file QmitkScalarBar.h.

Constructor & Destructor Documentation

QmitkScalarBar::QmitkScalarBar ( QWidget *  parent = nullptr)

Default Constructor.

Definition at line 22 of file QmitkScalarBar.cpp.

References m_Alignment, m_NumberOfSubDivisions, m_Pen, and SetupGeometry().

QmitkScalarBar::~QmitkScalarBar ( )
virtual

Default Destructor.

Definition at line 49 of file QmitkScalarBar.cpp.

References CleanUpLines().

Member Function Documentation

void QmitkScalarBar::CleanUpLines ( )
protected

Definition at line 123 of file QmitkScalarBar.cpp.

References line, m_MainLine, and m_SubDivisionLines.

Referenced by SetupGeometry(), and ~QmitkScalarBar().

unsigned int QmitkScalarBar::GetNumberOfSubdivisions ( )

Definition at line 183 of file QmitkScalarBar.cpp.

References m_NumberOfSubDivisions.

void QmitkScalarBar::paintEvent ( QPaintEvent *  event)
overrideprotected
void QmitkScalarBar::SetAlignment ( alignment  align)
virtual

Definition at line 224 of file QmitkScalarBar.cpp.

References m_Alignment, and SetupGeometry().

void QmitkScalarBar::SetNumberOfSubdivisions ( unsigned int  subs)

Definition at line 178 of file QmitkScalarBar.cpp.

References m_NumberOfSubDivisions.

void QmitkScalarBar::SetPen ( const QPen &  pen)

Definition at line 230 of file QmitkScalarBar.cpp.

References m_Pen.

Referenced by QmitkScalarBarOverlay::GetProperties().

void QmitkScalarBar::SetScaleFactor ( double  scale)
virtual
void QmitkScalarBar::SetupGeometry ( alignment  align)
protected

Member Data Documentation

alignment QmitkScalarBar::m_Alignment
protected

Definition at line 64 of file QmitkScalarBar.h.

Referenced by QmitkScalarBar(), SetAlignment(), and SetScaleFactor().

QLine* QmitkScalarBar::m_MainLine
protected

Definition at line 68 of file QmitkScalarBar.h.

Referenced by CleanUpLines(), paintEvent(), and SetupGeometry().

unsigned int QmitkScalarBar::m_NumberOfSubDivisions
protected
QPen QmitkScalarBar::m_Pen
protected

Definition at line 72 of file QmitkScalarBar.h.

Referenced by paintEvent(), QmitkScalarBar(), and SetPen().

double QmitkScalarBar::m_ScaleFactor
protected

Definition at line 66 of file QmitkScalarBar.h.

Referenced by SetScaleFactor().

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

Definition at line 70 of file QmitkScalarBar.h.

Referenced by CleanUpLines(), paintEvent(), and SetupGeometry().


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