Medical Imaging Interaction Toolkit
2016.11.0
Medical Imaging Interaction Toolkit
|
#include <QmitkScalarBar.h>
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 |
Definition at line 26 of file QmitkScalarBar.h.
Enumerator | |
---|---|
vertical | |
horizontal |
Definition at line 30 of file QmitkScalarBar.h.
QmitkScalarBar::QmitkScalarBar | ( | QWidget * | parent = nullptr | ) |
Default Constructor.
Definition at line 22 of file QmitkScalarBar.cpp.
References m_Alignment, m_NumberOfSubDivisions, m_Pen, and SetupGeometry().
|
virtual |
|
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.
|
overrideprotected |
Definition at line 188 of file QmitkScalarBar.cpp.
References line, m_MainLine, m_NumberOfSubDivisions, m_Pen, m_SubDivisionLines, and MITK_ERROR.
|
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().
|
virtual |
Definition at line 140 of file QmitkScalarBar.cpp.
References m_Alignment, m_NumberOfSubDivisions, m_ScaleFactor, and SetupGeometry().
Referenced by QmitkScalarBarOverlay::SetScaleFactor().
|
protected |
Definition at line 54 of file QmitkScalarBar.cpp.
References CleanUpLines(), horizontal, m_MainLine, m_NumberOfSubDivisions, m_SubDivisionLines, and vertical.
Referenced by QmitkScalarBar(), SetAlignment(), and SetScaleFactor().
|
protected |
Definition at line 64 of file QmitkScalarBar.h.
Referenced by QmitkScalarBar(), SetAlignment(), and SetScaleFactor().
|
protected |
Definition at line 68 of file QmitkScalarBar.h.
Referenced by CleanUpLines(), paintEvent(), and SetupGeometry().
|
protected |
Definition at line 74 of file QmitkScalarBar.h.
Referenced by GetNumberOfSubdivisions(), paintEvent(), QmitkScalarBar(), SetNumberOfSubdivisions(), SetScaleFactor(), and SetupGeometry().
|
protected |
Definition at line 72 of file QmitkScalarBar.h.
Referenced by paintEvent(), QmitkScalarBar(), and SetPen().
|
protected |
Definition at line 66 of file QmitkScalarBar.h.
Referenced by SetScaleFactor().
|
protected |
Definition at line 70 of file QmitkScalarBar.h.
Referenced by CleanUpLines(), paintEvent(), and SetupGeometry().