Medical Imaging Interaction Toolkit
2016.11.0
Medical Imaging Interaction Toolkit
|
#include <QmlMitkColorTransferFunctionCanvas.h>
Signals | |
void | sync () |
Public Member Functions | |
QmlMitkColorTransferFunctionCanvas (QQuickPaintedItem *parent=nullptr) | |
virtual void | paint (QPainter *painter) override |
int | GetNearHandle (int x, int y, unsigned int maxSquaredDistance=32) override |
void | SetTitle (const QString &title) |
void | setGreyValue (double value) |
double | getGreyValue () |
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 QmlMitkTransferFunctionCanvas | |
QmlMitkTransferFunctionCanvas (QQuickPaintedItem *parent=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 | keyPressEvent (QKeyEvent *event) override |
void | PaintHistogram (QPainter *painter) |
std::pair< int, int > | FunctionToCanvas (std::pair< double, double >) |
std::pair< double, double > | CanvasToFunction (std::pair< int, int >) |
void | SetImmediateUpdate (bool state) |
std::pair< double, double > | ValidateCoord (std::pair< double, double > x) |
void | SetX (float x) |
void | SetY (float y) |
Static Public Member Functions | |
static void | create () |
Protected Attributes | |
vtkColorTransferFunction * | m_ColorTransferFunction |
QString | m_Title |
double | m_GreyValue |
Protected Attributes inherited from QmlMitkTransferFunctionCanvas | |
bool | m_ImmediateUpdate |
float | m_Range |
double | m_GreyValue |
double | m_Opacity |
bool | m_LineEditAvailable |
Properties | |
double | greyValue |
Additional Inherited Members | |
Public Attributes inherited from QmlMitkTransferFunctionCanvas | |
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 QmlMitkColorTransferFunctionCanvas.h.
QmlMitkColorTransferFunctionCanvas::QmlMitkColorTransferFunctionCanvas | ( | QQuickPaintedItem * | parent = nullptr | ) |
Definition at line 22 of file QmlMitkColorTransferFunctionCanvas.cpp.
|
inlineoverridevirtual |
Implements QmlMitkTransferFunctionCanvas.
Definition at line 49 of file QmlMitkColorTransferFunctionCanvas.h.
void QmlMitkColorTransferFunctionCanvas::AddRGB | ( | double | x, |
double | r, | ||
double | g, | ||
double | b | ||
) |
Definition at line 164 of file QmlMitkColorTransferFunctionCanvas.cpp.
References m_ColorTransferFunction.
|
static |
Definition at line 170 of file QmlMitkColorTransferFunctionCanvas.cpp.
Referenced by QmlMitkTransferFunctionItem::create().
|
overridevirtual |
Implements QmlMitkTransferFunctionCanvas.
Definition at line 139 of file QmlMitkColorTransferFunctionCanvas.cpp.
References GetFunctionX(), mitk::RenderingManager::GetInstance(), m_ColorTransferFunction, and mitk::RenderingManager::RequestUpdateAll().
|
inline |
Definition at line 80 of file QmlMitkColorTransferFunctionCanvas.h.
|
inline |
Definition at line 85 of file QmlMitkColorTransferFunctionCanvas.h.
|
inline |
Definition at line 90 of file QmlMitkColorTransferFunctionCanvas.h.
|
inlineoverridevirtual |
Implements QmlMitkTransferFunctionCanvas.
Definition at line 70 of file QmlMitkColorTransferFunctionCanvas.h.
Referenced by GetNearHandle(), and paint().
|
inlineoverridevirtual |
Implements QmlMitkTransferFunctionCanvas.
Definition at line 65 of file QmlMitkColorTransferFunctionCanvas.h.
Referenced by DoubleClickOnHandle(), GetNearHandle(), MoveFunctionPoint(), and paint().
|
inlineoverridevirtual |
Implements QmlMitkTransferFunctionCanvas.
Definition at line 110 of file QmlMitkColorTransferFunctionCanvas.h.
double QmlMitkColorTransferFunctionCanvas::getGreyValue | ( | ) |
Definition at line 39 of file QmlMitkColorTransferFunctionCanvas.cpp.
References m_GreyValue.
|
overridevirtual |
returns index of a near handle or -1 if none is near
Implements QmlMitkTransferFunctionCanvas.
Definition at line 123 of file QmlMitkColorTransferFunctionCanvas.cpp.
References QmlMitkTransferFunctionCanvas::FunctionToCanvas(), GetFunctionSize(), and GetFunctionX().
|
overridevirtual |
Implements QmlMitkTransferFunctionCanvas.
Definition at line 155 of file QmlMitkColorTransferFunctionCanvas.cpp.
References GetFunctionX(), m_ColorTransferFunction, and RemoveFunctionPoint().
|
overridevirtual |
Implements QmlMitkTransferFunctionCanvas.
Definition at line 44 of file QmlMitkColorTransferFunctionCanvas.cpp.
References QmlMitkTransferFunctionCanvas::FunctionToCanvas(), GetFunctionSize(), GetFunctionX(), m_ColorTransferFunction, QmlMitkTransferFunctionCanvas::m_GrabbedHandle, m_GreyValue, QmlMitkTransferFunctionCanvas::m_Max, QmlMitkTransferFunctionCanvas::m_Min, m_Title, and sync().
|
inline |
Definition at line 105 of file QmlMitkColorTransferFunctionCanvas.h.
|
inlineoverridevirtual |
Implements QmlMitkTransferFunctionCanvas.
Definition at line 54 of file QmlMitkColorTransferFunctionCanvas.h.
References QmlMitkTransferFunctionCanvas::GetFunctionSize().
Referenced by MoveFunctionPoint().
|
inline |
Definition at line 40 of file QmlMitkColorTransferFunctionCanvas.h.
References QmlMitkTransferFunctionCanvas::SetMax(), and QmlMitkTransferFunctionCanvas::SetMin().
Referenced by QmlMitkTransferFunctionItem::OnUpdateCanvas().
void QmlMitkColorTransferFunctionCanvas::setGreyValue | ( | double | value | ) |
Definition at line 32 of file QmlMitkColorTransferFunctionCanvas.cpp.
References mitk::RenderingManager::GetInstance(), m_GreyValue, mitk::RenderingManager::RequestUpdateAll(), and QmlMitkTransferFunctionCanvas::SetX().
void QmlMitkColorTransferFunctionCanvas::SetTitle | ( | const QString & | title | ) |
Definition at line 27 of file QmlMitkColorTransferFunctionCanvas.cpp.
References m_Title.
|
signal |
Referenced by paint().
|
protected |
Definition at line 118 of file QmlMitkColorTransferFunctionCanvas.h.
Referenced by AddRGB(), DoubleClickOnHandle(), MoveFunctionPoint(), and paint().
|
protected |
Definition at line 121 of file QmlMitkColorTransferFunctionCanvas.h.
Referenced by getGreyValue(), paint(), and setGreyValue().
|
protected |
Definition at line 119 of file QmlMitkColorTransferFunctionCanvas.h.
Referenced by paint(), and SetTitle().
|
readwrite |
Definition at line 28 of file QmlMitkColorTransferFunctionCanvas.h.