Medical Imaging Interaction Toolkit
2016.11.0
Medical Imaging Interaction Toolkit
|
#include <QmlMitkPiecewiseFunctionCanvas.h>
Signals | |
void | sync () |
Public Member Functions | |
QmlMitkPiecewiseFunctionCanvas (QQuickPaintedItem *parent=nullptr) | |
void | paint (QPainter *painter) override |
void | SetTitle (const QString &title) |
int | GetNearHandle (int x, int y, unsigned int maxSquaredDistance=32) override |
void | setGreyValue (double value) |
double | getGreyValue () |
void | setOpacity (double opacity) |
double | getOpacity () |
void | SetPiecewiseFunction (vtkPiecewiseFunction *piecewiseFunction) |
int | AddFunctionPoint (double x, double val) override |
void | RemoveFunctionPoint (double x) override |
double | GetFunctionX (int index) override |
double | GetFunctionY (int index) override |
int | GetFunctionSize () override |
void | DoubleClickOnHandle (int) override |
void | MoveFunctionPoint (int index, std::pair< double, double > pos) override |
double | GetFunctionMax () |
double | GetFunctionMin () |
double | GetFunctionRange () |
void | RemoveAllFunctionPoints () |
void | ResetGO () |
void | mousePressEvent (QMouseEvent *mouseEvent) override |
void | mouseMoveEvent (QMouseEvent *mouseEvent) override |
void | mouseReleaseEvent (QMouseEvent *mouseEvent) override |
void | mouseDoubleClickEvent (QMouseEvent *mouseEvent) override |
void | keyPressEvent (QKeyEvent *keyEvent) 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 () |
Static Public Attributes | |
static QmlMitkPiecewiseFunctionCanvas * | instance |
Protected Attributes | |
vtkPiecewiseFunction * | m_PiecewiseFunction |
QString | m_Title |
mitk::SimpleHistogramCache | histogramCache |
double | m_GreyValue |
double | m_Opacity |
Protected Attributes inherited from QmlMitkTransferFunctionCanvas | |
bool | m_ImmediateUpdate |
float | m_Range |
double | m_GreyValue |
double | m_Opacity |
bool | m_LineEditAvailable |
Properties | |
double | greyValue |
double | opacity |
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 28 of file QmlMitkPiecewiseFunctionCanvas.h.
QmlMitkPiecewiseFunctionCanvas::QmlMitkPiecewiseFunctionCanvas | ( | QQuickPaintedItem * | parent = nullptr | ) |
Definition at line 23 of file QmlMitkPiecewiseFunctionCanvas.cpp.
References instance.
|
inlineoverridevirtual |
Implements QmlMitkTransferFunctionCanvas.
Definition at line 59 of file QmlMitkPiecewiseFunctionCanvas.h.
Referenced by MoveFunctionPoint().
|
static |
Definition at line 210 of file QmlMitkPiecewiseFunctionCanvas.cpp.
Referenced by QmlMitkTransferFunctionItem::create().
|
inlineoverridevirtual |
Implements QmlMitkTransferFunctionCanvas.
Definition at line 90 of file QmlMitkPiecewiseFunctionCanvas.h.
|
inline |
Definition at line 96 of file QmlMitkPiecewiseFunctionCanvas.h.
|
inline |
Definition at line 101 of file QmlMitkPiecewiseFunctionCanvas.h.
|
inline |
Definition at line 106 of file QmlMitkPiecewiseFunctionCanvas.h.
|
inlineoverridevirtual |
Implements QmlMitkTransferFunctionCanvas.
Definition at line 85 of file QmlMitkPiecewiseFunctionCanvas.h.
|
inlineoverridevirtual |
Implements QmlMitkTransferFunctionCanvas.
Definition at line 75 of file QmlMitkPiecewiseFunctionCanvas.h.
Referenced by MoveFunctionPoint(), and paint().
|
inlineoverridevirtual |
Implements QmlMitkTransferFunctionCanvas.
Definition at line 80 of file QmlMitkPiecewiseFunctionCanvas.h.
Referenced by paint().
double QmlMitkPiecewiseFunctionCanvas::getGreyValue | ( | ) |
Definition at line 37 of file QmlMitkPiecewiseFunctionCanvas.cpp.
References m_GreyValue.
|
overridevirtual |
returns index of a near handle or -1 if none is near
Implements QmlMitkTransferFunctionCanvas.
Definition at line 160 of file QmlMitkPiecewiseFunctionCanvas.cpp.
References QmlMitkTransferFunctionCanvas::FunctionToCanvas(), and m_PiecewiseFunction.
double QmlMitkPiecewiseFunctionCanvas::getOpacity | ( | ) |
Definition at line 49 of file QmlMitkPiecewiseFunctionCanvas.cpp.
References m_Opacity.
|
override |
Definition at line 205 of file QmlMitkPiecewiseFunctionCanvas.cpp.
References QmlMitkTransferFunctionCanvas::keyPressEvent().
|
override |
Definition at line 200 of file QmlMitkPiecewiseFunctionCanvas.cpp.
References QmlMitkTransferFunctionCanvas::mouseDoubleClickEvent().
|
override |
Definition at line 190 of file QmlMitkPiecewiseFunctionCanvas.cpp.
References QmlMitkTransferFunctionCanvas::mouseMoveEvent().
|
override |
Definition at line 185 of file QmlMitkPiecewiseFunctionCanvas.cpp.
References QmlMitkTransferFunctionCanvas::mousePressEvent().
|
override |
Definition at line 195 of file QmlMitkPiecewiseFunctionCanvas.cpp.
References QmlMitkTransferFunctionCanvas::mouseReleaseEvent().
|
overridevirtual |
Implements QmlMitkTransferFunctionCanvas.
Definition at line 178 of file QmlMitkPiecewiseFunctionCanvas.cpp.
References AddFunctionPoint(), GetFunctionX(), QmlMitkTransferFunctionCanvas::m_GrabbedHandle, and RemoveFunctionPoint().
|
overridevirtual |
Implements QmlMitkTransferFunctionCanvas.
Definition at line 59 of file QmlMitkPiecewiseFunctionCanvas.cpp.
References QmlMitkTransferFunctionCanvas::FunctionToCanvas(), GetFunctionX(), GetFunctionY(), QmlMitkTransferFunctionCanvas::m_GrabbedHandle, m_GreyValue, QmlMitkTransferFunctionCanvas::m_Max, QmlMitkTransferFunctionCanvas::m_Min, m_Opacity, m_PiecewiseFunction, m_Title, QmlMitkTransferFunctionCanvas::PaintHistogram(), and sync().
|
inline |
Definition at line 121 of file QmlMitkPiecewiseFunctionCanvas.h.
|
inlineoverridevirtual |
Implements QmlMitkTransferFunctionCanvas.
Definition at line 64 of file QmlMitkPiecewiseFunctionCanvas.h.
References QmlMitkTransferFunctionCanvas::GetFunctionSize().
Referenced by MoveFunctionPoint().
|
inline |
Definition at line 127 of file QmlMitkPiecewiseFunctionCanvas.h.
void QmlMitkPiecewiseFunctionCanvas::setGreyValue | ( | double | value | ) |
Definition at line 30 of file QmlMitkPiecewiseFunctionCanvas.cpp.
References mitk::RenderingManager::GetInstance(), m_GreyValue, mitk::RenderingManager::RequestUpdateAll(), and QmlMitkTransferFunctionCanvas::SetX().
void QmlMitkPiecewiseFunctionCanvas::setOpacity | ( | double | opacity | ) |
Definition at line 42 of file QmlMitkPiecewiseFunctionCanvas.cpp.
References mitk::RenderingManager::GetInstance(), m_Opacity, opacity, mitk::RenderingManager::RequestUpdateAll(), and QmlMitkTransferFunctionCanvas::SetY().
|
inline |
Definition at line 49 of file QmlMitkPiecewiseFunctionCanvas.h.
References QmlMitkTransferFunctionCanvas::SetMax(), and QmlMitkTransferFunctionCanvas::SetMin().
Referenced by QmlMitkTransferFunctionItem::OnUpdateCanvas().
void QmlMitkPiecewiseFunctionCanvas::SetTitle | ( | const QString & | title | ) |
Definition at line 54 of file QmlMitkPiecewiseFunctionCanvas.cpp.
References m_Title.
|
signal |
Referenced by paint().
|
protected |
Definition at line 147 of file QmlMitkPiecewiseFunctionCanvas.h.
|
static |
Definition at line 41 of file QmlMitkPiecewiseFunctionCanvas.h.
Referenced by QmlMitkPiecewiseFunctionCanvas().
|
protected |
Definition at line 149 of file QmlMitkPiecewiseFunctionCanvas.h.
Referenced by getGreyValue(), paint(), and setGreyValue().
|
protected |
Definition at line 150 of file QmlMitkPiecewiseFunctionCanvas.h.
Referenced by getOpacity(), paint(), and setOpacity().
|
protected |
Definition at line 145 of file QmlMitkPiecewiseFunctionCanvas.h.
Referenced by GetNearHandle(), and paint().
|
protected |
Definition at line 146 of file QmlMitkPiecewiseFunctionCanvas.h.
Referenced by paint(), and SetTitle().
|
readwrite |
Definition at line 31 of file QmlMitkPiecewiseFunctionCanvas.h.
|
readwrite |
Definition at line 32 of file QmlMitkPiecewiseFunctionCanvas.h.
Referenced by setOpacity().