Medical Imaging Interaction Toolkit
2016.11.0
Medical Imaging Interaction Toolkit
|
#include <QmlMitkTransferFunctionItem.h>
Public Slots | |
void | OnUpdateCanvas () |
void | UpdateRanges () |
void | OnResetSlider () |
void | wheelEvent (QWheelEvent *event) override |
void | OnSpanChanged (int lower, int upper) |
void | setOpactityItem (QmlMitkPiecewiseFunctionCanvas *item) |
void | setColorItem (QmlMitkColorTransferFunctionCanvas *item) |
QmlMitkPiecewiseFunctionCanvas * | getOpacityItem () |
QmlMitkColorTransferFunctionCanvas * | getColorItem () |
void | setMin (double min) |
void | setMax (double max) |
void | setCurrentMin (double currentMin) |
void | setCurrentMax (double currentMax) |
double | getMin () |
double | getMax () |
double | getCurrentMin () |
double | getCurrentMax () |
static void | create () |
Signals | |
void | currentMinChanged () |
void | currentMaxChanged () |
void | minChanged () |
void | maxChanged () |
void | sync () |
Public Member Functions | |
QmlMitkTransferFunctionItem (QQuickItem *parent=nullptr) | |
~QmlMitkTransferFunctionItem () | |
void | SetDataNode (mitk::DataNode *node, const mitk::BaseRenderer *renderer=nullptr) |
Static Public Attributes | |
static QmlMitkTransferFunctionItem * | instance |
Properties | |
QmlMitkPiecewiseFunctionCanvas | opacityItem |
QmlMitkColorTransferFunctionCanvas | colorItem |
double | min |
double | max |
double | currentMin |
double | currentMax |
Definition at line 38 of file QmlMitkTransferFunctionItem.h.
QmlMitkTransferFunctionItem::QmlMitkTransferFunctionItem | ( | QQuickItem * | parent = nullptr | ) |
Definition at line 23 of file QmlMitkTransferFunctionItem.cpp.
References instance, m_CurrentMax, m_CurrentMin, m_Max, and m_Min.
QmlMitkTransferFunctionItem::~QmlMitkTransferFunctionItem | ( | ) |
Definition at line 40 of file QmlMitkTransferFunctionItem.cpp.
|
staticslot |
Definition at line 236 of file QmlMitkTransferFunctionItem.cpp.
References QmlMitkColorTransferFunctionCanvas::create(), and QmlMitkPiecewiseFunctionCanvas::create().
|
signal |
|
signal |
|
slot |
Definition at line 141 of file QmlMitkTransferFunctionItem.cpp.
References m_ColorItem.
|
slot |
Definition at line 231 of file QmlMitkTransferFunctionItem.cpp.
References m_CurrentMax.
|
slot |
Definition at line 226 of file QmlMitkTransferFunctionItem.cpp.
References m_CurrentMin.
|
slot |
Definition at line 221 of file QmlMitkTransferFunctionItem.cpp.
References m_Max.
|
slot |
Definition at line 216 of file QmlMitkTransferFunctionItem.cpp.
References m_Min.
|
slot |
Definition at line 151 of file QmlMitkTransferFunctionItem.cpp.
References m_OpacityItem.
|
signal |
Referenced by setMax().
|
signal |
Referenced by setMin().
|
slot |
Definition at line 184 of file QmlMitkTransferFunctionItem.cpp.
References m_CurrentMax, m_CurrentMin, m_Max, m_Min, and UpdateRanges().
|
slot |
Definition at line 175 of file QmlMitkTransferFunctionItem.cpp.
References m_ColorItem, m_OpacityItem, and UpdateRanges().
|
slot |
Definition at line 114 of file QmlMitkTransferFunctionItem.cpp.
References m_ColorItem, m_OpacityItem, QmlMitkColorTransferFunctionCanvas::SetColorTransferFunction(), QmlMitkPiecewiseFunctionCanvas::SetPiecewiseFunction(), tfpToChange, and UpdateRanges().
Referenced by SetDataNode(), and QmlMitkProperties::setRendering().
|
slot |
Definition at line 136 of file QmlMitkTransferFunctionItem.cpp.
References m_ColorItem.
|
slot |
Definition at line 210 of file QmlMitkTransferFunctionItem.cpp.
References currentMax, m_CurrentMax, and UpdateRanges().
|
slot |
Definition at line 204 of file QmlMitkTransferFunctionItem.cpp.
References currentMin, m_CurrentMin, and UpdateRanges().
void QmlMitkTransferFunctionItem::SetDataNode | ( | mitk::DataNode * | node, |
const mitk::BaseRenderer * | renderer = nullptr |
||
) |
Definition at line 72 of file QmlMitkTransferFunctionItem.cpp.
References mitk::DataNode::GetData(), mitk::SimpleHistogram::GetMax(), mitk::SimpleHistogram::GetMin(), mitk::DataNode::GetProperty(), histogramCache, m_ColorItem, m_CurrentMax, m_CurrentMin, m_OpacityItem, MITK_WARN, mitk::TransferFunctionProperty::New(), OnUpdateCanvas(), QmlMitkTransferFunctionCanvas::SetHistogram(), setMax(), setMin(), mitk::DataNode::SetProperty(), sync(), and tfpToChange.
Referenced by QmlMitkDatamanager::setIndex().
|
slot |
Definition at line 198 of file QmlMitkTransferFunctionItem.cpp.
References m_Max, max, and maxChanged().
Referenced by SetDataNode().
|
slot |
Definition at line 192 of file QmlMitkTransferFunctionItem.cpp.
References m_Min, min, and minChanged().
Referenced by SetDataNode().
|
slot |
Definition at line 146 of file QmlMitkTransferFunctionItem.cpp.
References m_OpacityItem.
|
signal |
Referenced by SetDataNode(), and wheelEvent().
|
slot |
Definition at line 156 of file QmlMitkTransferFunctionItem.cpp.
References m_ColorItem, m_CurrentMax, m_CurrentMin, m_OpacityItem, QmlMitkTransferFunctionCanvas::SetMax(), and QmlMitkTransferFunctionCanvas::SetMin().
Referenced by OnResetSlider(), OnSpanChanged(), OnUpdateCanvas(), setCurrentMax(), setCurrentMin(), and wheelEvent().
|
overrideslot |
Definition at line 44 of file QmlMitkTransferFunctionItem.cpp.
References m_CurrentMax, m_CurrentMin, m_Max, m_Min, sync(), and UpdateRanges().
|
protected |
Definition at line 95 of file QmlMitkTransferFunctionItem.h.
Referenced by SetDataNode().
|
static |
Definition at line 47 of file QmlMitkTransferFunctionItem.h.
Referenced by QmlMitkTransferFunctionItem(), QmlMitkDatamanager::setIndex(), and QmlMitkProperties::setRendering().
|
protected |
Definition at line 92 of file QmlMitkTransferFunctionItem.h.
Referenced by getColorItem(), OnSpanChanged(), OnUpdateCanvas(), setColorItem(), SetDataNode(), and UpdateRanges().
|
protected |
Definition at line 90 of file QmlMitkTransferFunctionItem.h.
Referenced by getCurrentMax(), OnResetSlider(), QmlMitkTransferFunctionItem(), setCurrentMax(), SetDataNode(), UpdateRanges(), and wheelEvent().
|
protected |
Definition at line 89 of file QmlMitkTransferFunctionItem.h.
Referenced by getCurrentMin(), OnResetSlider(), QmlMitkTransferFunctionItem(), setCurrentMin(), SetDataNode(), UpdateRanges(), and wheelEvent().
|
protected |
Definition at line 87 of file QmlMitkTransferFunctionItem.h.
Referenced by getMax(), OnResetSlider(), QmlMitkTransferFunctionItem(), setMax(), and wheelEvent().
|
protected |
Definition at line 86 of file QmlMitkTransferFunctionItem.h.
Referenced by getMin(), OnResetSlider(), QmlMitkTransferFunctionItem(), setMin(), and wheelEvent().
|
protected |
Definition at line 93 of file QmlMitkTransferFunctionItem.h.
Referenced by getOpacityItem(), OnSpanChanged(), OnUpdateCanvas(), SetDataNode(), setOpactityItem(), and UpdateRanges().
|
protected |
Definition at line 84 of file QmlMitkTransferFunctionItem.h.
Referenced by OnUpdateCanvas(), and SetDataNode().
|
readwrite |
Definition at line 41 of file QmlMitkTransferFunctionItem.h.
|
readwrite |
Definition at line 46 of file QmlMitkTransferFunctionItem.h.
Referenced by setCurrentMax().
|
readwrite |
Definition at line 45 of file QmlMitkTransferFunctionItem.h.
Referenced by setCurrentMin().
|
readwrite |
Definition at line 44 of file QmlMitkTransferFunctionItem.h.
Referenced by setMax().
|
readwrite |
Definition at line 42 of file QmlMitkTransferFunctionItem.h.
Referenced by setMin().
|
readwrite |
Definition at line 41 of file QmlMitkTransferFunctionItem.h.