Medical Imaging Interaction Toolkit
2016.11.0
Medical Imaging Interaction Toolkit
|
#include <QmitkColorTransferFunctionCanvas.h>
Public Member Functions | |
QmitkColorTransferFunctionCanvas (QWidget *parent=nullptr, Qt::WindowFlags f=nullptr) | |
virtual void | paintEvent (QPaintEvent *e) override |
int | GetNearHandle (int x, int y, unsigned int maxSquaredDistance=32) override |
void | SetTitle (const QString &title) |
void | SetColorTransferFunction (vtkColorTransferFunction *colorTransferFunction) |
int | AddFunctionPoint (double x, double) override |
void | RemoveFunctionPoint (double x) override |
double | GetFunctionX (int index) override |
int | GetFunctionSize () override |
void | DoubleClickOnHandle (int handle) override |
void | MoveFunctionPoint (int index, std::pair< double, double > pos) override |
void | AddRGB (double x, double r, double g, double b) |
double | GetFunctionMax () |
double | GetFunctionMin () |
double | GetFunctionRange () |
void | RemoveAllFunctionPoints () |
double | GetFunctionY (int) override |
Public Member Functions inherited from QmitkTransferFunctionCanvas | |
QmitkTransferFunctionCanvas (QWidget *parent=nullptr, Qt::WindowFlags f=nullptr) | |
mitk::SimpleHistogram * | GetHistogram () |
void | SetHistogram (mitk::SimpleHistogram *histogram) |
double | GetMin () |
void | SetMin (double min) |
double | GetMax () |
void | SetMax (double max) |
double | GetLower () |
void | SetLower (double lower) |
double | GetUpper () |
void | SetUpper (double upper) |
void | mousePressEvent (QMouseEvent *mouseEvent) override |
void | mouseMoveEvent (QMouseEvent *mouseEvent) override |
void | mouseReleaseEvent (QMouseEvent *mouseEvent) override |
void | mouseDoubleClickEvent (QMouseEvent *mouseEvent) override |
void | PaintHistogram (QPainter &p) |
std::pair< int, int > | FunctionToCanvas (std::pair< double, double >) |
std::pair< double, double > | CanvasToFunction (std::pair< int, int >) |
void | keyPressEvent (QKeyEvent *e) override |
void | SetImmediateUpdate (bool state) |
std::pair< double, double > | ValidateCoord (std::pair< double, double > x) |
void | SetX (float x) |
void | SetY (float y) |
void | SetQLineEdits (QLineEdit *xEdit, QLineEdit *yEdit) |
Protected Attributes | |
vtkColorTransferFunction * | m_ColorTransferFunction |
QString | m_Title |
Protected Attributes inherited from QmitkTransferFunctionCanvas | |
bool | m_ImmediateUpdate |
float | m_Range |
bool | m_LineEditAvailable |
QLineEdit * | m_XEdit |
QLineEdit * | m_YEdit |
Additional Inherited Members | |
Public Attributes inherited from QmitkTransferFunctionCanvas | |
int | m_GrabbedHandle |
double | m_Lower |
double | m_Upper |
double | m_Min |
double | m_Max |
mitk::SimpleHistogram * | m_Histogram |
Definition at line 25 of file QmitkColorTransferFunctionCanvas.h.
QmitkColorTransferFunctionCanvas::QmitkColorTransferFunctionCanvas | ( | QWidget * | parent = nullptr , |
Qt::WindowFlags | f = nullptr |
||
) |
Definition at line 23 of file QmitkColorTransferFunctionCanvas.cpp.
|
inlineoverridevirtual |
Implements QmitkTransferFunctionCanvas.
Definition at line 44 of file QmitkColorTransferFunctionCanvas.h.
void QmitkColorTransferFunctionCanvas::AddRGB | ( | double | x, |
double | r, | ||
double | g, | ||
double | b | ||
) |
Definition at line 153 of file QmitkColorTransferFunctionCanvas.cpp.
References m_ColorTransferFunction.
|
overridevirtual |
Implements QmitkTransferFunctionCanvas.
Definition at line 130 of file QmitkColorTransferFunctionCanvas.cpp.
References GetFunctionX(), mitk::RenderingManager::GetInstance(), m_ColorTransferFunction, and mitk::RenderingManager::RequestUpdateAll().
|
inline |
Definition at line 70 of file QmitkColorTransferFunctionCanvas.h.
|
inline |
Definition at line 71 of file QmitkColorTransferFunctionCanvas.h.
|
inline |
Definition at line 72 of file QmitkColorTransferFunctionCanvas.h.
|
inlineoverridevirtual |
Implements QmitkTransferFunctionCanvas.
Definition at line 64 of file QmitkColorTransferFunctionCanvas.h.
Referenced by GetNearHandle(), and paintEvent().
|
inlineoverridevirtual |
Implements QmitkTransferFunctionCanvas.
Definition at line 63 of file QmitkColorTransferFunctionCanvas.h.
Referenced by DoubleClickOnHandle(), GetNearHandle(), MoveFunctionPoint(), and paintEvent().
|
inlineoverridevirtual |
Implements QmitkTransferFunctionCanvas.
Definition at line 92 of file QmitkColorTransferFunctionCanvas.h.
|
overridevirtual |
returns index of a near handle or -1 if none is near
Implements QmitkTransferFunctionCanvas.
Definition at line 117 of file QmitkColorTransferFunctionCanvas.cpp.
References QmitkTransferFunctionCanvas::FunctionToCanvas(), GetFunctionSize(), and GetFunctionX().
|
overridevirtual |
Implements QmitkTransferFunctionCanvas.
Definition at line 145 of file QmitkColorTransferFunctionCanvas.cpp.
References GetFunctionX(), m_ColorTransferFunction, and RemoveFunctionPoint().
|
overridevirtual |
Reimplemented from QmitkTransferFunctionCanvas.
Definition at line 35 of file QmitkColorTransferFunctionCanvas.cpp.
References QmitkTransferFunctionCanvas::FunctionToCanvas(), GetFunctionSize(), GetFunctionX(), m_ColorTransferFunction, QmitkTransferFunctionCanvas::m_GrabbedHandle, QmitkTransferFunctionCanvas::m_LineEditAvailable, QmitkTransferFunctionCanvas::m_Max, QmitkTransferFunctionCanvas::m_Min, m_Title, and QmitkTransferFunctionCanvas::m_XEdit.
|
inline |
Definition at line 87 of file QmitkColorTransferFunctionCanvas.h.
|
inlineoverridevirtual |
Implements QmitkTransferFunctionCanvas.
Definition at line 52 of file QmitkColorTransferFunctionCanvas.h.
References QmitkTransferFunctionCanvas::GetFunctionSize().
Referenced by MoveFunctionPoint().
|
inline |
Definition at line 35 of file QmitkColorTransferFunctionCanvas.h.
References QmitkTransferFunctionCanvas::SetMax(), and QmitkTransferFunctionCanvas::SetMin().
void QmitkColorTransferFunctionCanvas::SetTitle | ( | const QString & | title | ) |
Definition at line 30 of file QmitkColorTransferFunctionCanvas.cpp.
References m_Title.
|
protected |
Definition at line 94 of file QmitkColorTransferFunctionCanvas.h.
Referenced by AddRGB(), DoubleClickOnHandle(), MoveFunctionPoint(), and paintEvent().
|
protected |
Definition at line 95 of file QmitkColorTransferFunctionCanvas.h.
Referenced by paintEvent(), and SetTitle().