Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
QmlMitkTransferFunctionItem Class Reference

#include <QmlMitkTransferFunctionItem.h>

Inheritance diagram for QmlMitkTransferFunctionItem:
Collaboration diagram for QmlMitkTransferFunctionItem:

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)
 
QmlMitkPiecewiseFunctionCanvasgetOpacityItem ()
 
QmlMitkColorTransferFunctionCanvasgetColorItem ()
 
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 QmlMitkTransferFunctionIteminstance
 

Protected Attributes

mitk::TransferFunctionProperty::Pointer tfpToChange
 
int m_Min
 
int m_Max
 
int m_CurrentMin
 
int m_CurrentMax
 
QmlMitkColorTransferFunctionCanvasm_ColorItem
 
QmlMitkPiecewiseFunctionCanvasm_OpacityItem
 
mitk::SimpleHistogramCache histogramCache
 

Properties

QmlMitkPiecewiseFunctionCanvas opacityItem
 
QmlMitkColorTransferFunctionCanvas colorItem
 
double min
 
double max
 
double currentMin
 
double currentMax
 

Detailed Description

Definition at line 38 of file QmlMitkTransferFunctionItem.h.

Constructor & Destructor Documentation

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.

Member Function Documentation

void QmlMitkTransferFunctionItem::create ( )
staticslot
void QmlMitkTransferFunctionItem::currentMaxChanged ( )
signal
void QmlMitkTransferFunctionItem::currentMinChanged ( )
signal
QmlMitkColorTransferFunctionCanvas * QmlMitkTransferFunctionItem::getColorItem ( )
slot

Definition at line 141 of file QmlMitkTransferFunctionItem.cpp.

References m_ColorItem.

double QmlMitkTransferFunctionItem::getCurrentMax ( )
slot

Definition at line 231 of file QmlMitkTransferFunctionItem.cpp.

References m_CurrentMax.

double QmlMitkTransferFunctionItem::getCurrentMin ( )
slot

Definition at line 226 of file QmlMitkTransferFunctionItem.cpp.

References m_CurrentMin.

double QmlMitkTransferFunctionItem::getMax ( )
slot

Definition at line 221 of file QmlMitkTransferFunctionItem.cpp.

References m_Max.

double QmlMitkTransferFunctionItem::getMin ( )
slot

Definition at line 216 of file QmlMitkTransferFunctionItem.cpp.

References m_Min.

QmlMitkPiecewiseFunctionCanvas * QmlMitkTransferFunctionItem::getOpacityItem ( )
slot

Definition at line 151 of file QmlMitkTransferFunctionItem.cpp.

References m_OpacityItem.

void QmlMitkTransferFunctionItem::maxChanged ( )
signal

Referenced by setMax().

void QmlMitkTransferFunctionItem::minChanged ( )
signal

Referenced by setMin().

void QmlMitkTransferFunctionItem::OnResetSlider ( )
slot

Definition at line 184 of file QmlMitkTransferFunctionItem.cpp.

References m_CurrentMax, m_CurrentMin, m_Max, m_Min, and UpdateRanges().

void QmlMitkTransferFunctionItem::OnSpanChanged ( int  lower,
int  upper 
)
slot

Definition at line 175 of file QmlMitkTransferFunctionItem.cpp.

References m_ColorItem, m_OpacityItem, and UpdateRanges().

void QmlMitkTransferFunctionItem::setColorItem ( QmlMitkColorTransferFunctionCanvas item)
slot

Definition at line 136 of file QmlMitkTransferFunctionItem.cpp.

References m_ColorItem.

void QmlMitkTransferFunctionItem::setCurrentMax ( double  currentMax)
slot

Definition at line 210 of file QmlMitkTransferFunctionItem.cpp.

References currentMax, m_CurrentMax, and UpdateRanges().

void QmlMitkTransferFunctionItem::setCurrentMin ( double  currentMin)
slot

Definition at line 204 of file QmlMitkTransferFunctionItem.cpp.

References currentMin, m_CurrentMin, and UpdateRanges().

void QmlMitkTransferFunctionItem::setMax ( double  max)
slot

Definition at line 198 of file QmlMitkTransferFunctionItem.cpp.

References m_Max, max, and maxChanged().

Referenced by SetDataNode().

void QmlMitkTransferFunctionItem::setMin ( double  min)
slot

Definition at line 192 of file QmlMitkTransferFunctionItem.cpp.

References m_Min, min, and minChanged().

Referenced by SetDataNode().

void QmlMitkTransferFunctionItem::setOpactityItem ( QmlMitkPiecewiseFunctionCanvas item)
slot

Definition at line 146 of file QmlMitkTransferFunctionItem.cpp.

References m_OpacityItem.

void QmlMitkTransferFunctionItem::sync ( )
signal

Referenced by SetDataNode(), and wheelEvent().

void QmlMitkTransferFunctionItem::wheelEvent ( QWheelEvent *  event)
overrideslot

Definition at line 44 of file QmlMitkTransferFunctionItem.cpp.

References m_CurrentMax, m_CurrentMin, m_Max, m_Min, sync(), and UpdateRanges().

Member Data Documentation

mitk::SimpleHistogramCache QmlMitkTransferFunctionItem::histogramCache
protected

Definition at line 95 of file QmlMitkTransferFunctionItem.h.

Referenced by SetDataNode().

QmlMitkTransferFunctionItem * QmlMitkTransferFunctionItem::instance
static
QmlMitkColorTransferFunctionCanvas* QmlMitkTransferFunctionItem::m_ColorItem
protected
int QmlMitkTransferFunctionItem::m_CurrentMax
protected
int QmlMitkTransferFunctionItem::m_CurrentMin
protected
int QmlMitkTransferFunctionItem::m_Max
protected
int QmlMitkTransferFunctionItem::m_Min
protected
QmlMitkPiecewiseFunctionCanvas* QmlMitkTransferFunctionItem::m_OpacityItem
protected
mitk::TransferFunctionProperty::Pointer QmlMitkTransferFunctionItem::tfpToChange
protected

Definition at line 84 of file QmlMitkTransferFunctionItem.h.

Referenced by OnUpdateCanvas(), and SetDataNode().

Property Documentation

QmlMitkColorTransferFunctionCanvas QmlMitkTransferFunctionItem::colorItem
readwrite

Definition at line 41 of file QmlMitkTransferFunctionItem.h.

double QmlMitkTransferFunctionItem::currentMax
readwrite

Definition at line 46 of file QmlMitkTransferFunctionItem.h.

Referenced by setCurrentMax().

double QmlMitkTransferFunctionItem::currentMin
readwrite

Definition at line 45 of file QmlMitkTransferFunctionItem.h.

Referenced by setCurrentMin().

double QmlMitkTransferFunctionItem::max
readwrite

Definition at line 44 of file QmlMitkTransferFunctionItem.h.

Referenced by setMax().

double QmlMitkTransferFunctionItem::min
readwrite

Definition at line 42 of file QmlMitkTransferFunctionItem.h.

Referenced by setMin().

QmlMitkPiecewiseFunctionCanvas QmlMitkTransferFunctionItem::opacityItem
readwrite

Definition at line 41 of file QmlMitkTransferFunctionItem.h.


The documentation for this class was generated from the following files: