Public Member Functions | Protected Slots | Protected Member Functions

ctkTransferFunctionItem Class Reference

#include <Libs/Widgets/ctkTransferFunctionItems.h>

Inheritance diagram for ctkTransferFunctionItem:
Inheritance graph
[legend]

List of all members.

Public Member Functions

virtual QRectF boundingRect () const
 ctkTransferFunctionItem (QGraphicsItem *parent=0)
 ctkTransferFunctionItem (ctkTransferFunction *transferFunction, QGraphicsItem *parent=0)
QRectF rect () const
void setRect (const QRectF &rectangle)
void setRect (qreal x, qreal y, qreal width, qreal height)
void setTransferFunction (ctkTransferFunction *transferFunction)
ctkTransferFunctiontransferFunction () const
virtual ~ctkTransferFunctionItem ()

Protected Slots

virtual void onTransferFunctionChanged ()

Protected Member Functions

QList< ctkPointbezierParams (ctkControlPoint *start, ctkControlPoint *end) const
QColor color (const QVariant &value) const
QColor color (const ctkPoint &point) const
QList< ctkPointnonLinearPoints (ctkControlPoint *start, ctkControlPoint *end) const
qreal y (const ctkPoint &point) const
qreal y (const QVariant &value) const

Detailed Description

TODO: should probably derive from QGraphicsItem or QAbstractGraphicsShapeItem

Definition at line 39 of file ctkTransferFunctionItems.h.


Constructor & Destructor Documentation

ctkTransferFunctionItem::ctkTransferFunctionItem ( QGraphicsItem *  parent = 0  ) 

Definition at line 52 of file ctkTransferFunctionItems.cpp.

ctkTransferFunctionItem::ctkTransferFunctionItem ( ctkTransferFunction transferFunction,
QGraphicsItem *  parent = 0 
)

Definition at line 59 of file ctkTransferFunctionItems.cpp.

ctkTransferFunctionItem::~ctkTransferFunctionItem (  )  [virtual]

Definition at line 68 of file ctkTransferFunctionItems.cpp.


Member Function Documentation

QList< ctkPoint > ctkTransferFunctionItem::bezierParams ( ctkControlPoint start,
ctkControlPoint end 
) const [protected]

Definition at line 127 of file ctkTransferFunctionItems.cpp.

QRectF ctkTransferFunctionItem::boundingRect (  )  const [virtual]

Definition at line 120 of file ctkTransferFunctionItems.cpp.

QColor ctkTransferFunctionItem::color ( const QVariant &  value  )  const [protected]

Definition at line 181 of file ctkTransferFunctionItems.cpp.

QColor ctkTransferFunctionItem::color ( const ctkPoint point  )  const [inline, protected]

Definition at line 82 of file ctkTransferFunctionItems.h.

QList< ctkPoint > ctkTransferFunctionItem::nonLinearPoints ( ctkControlPoint start,
ctkControlPoint end 
) const [protected]

Definition at line 152 of file ctkTransferFunctionItems.cpp.

void ctkTransferFunctionItem::onTransferFunctionChanged (  )  [protected, virtual, slot]

Definition at line 95 of file ctkTransferFunctionItems.cpp.

QRectF ctkTransferFunctionItem::rect (  )  const

Definition at line 113 of file ctkTransferFunctionItems.cpp.

void ctkTransferFunctionItem::setRect ( qreal  x,
qreal  y,
qreal  width,
qreal  height 
) [inline]

Definition at line 72 of file ctkTransferFunctionItems.h.

void ctkTransferFunctionItem::setRect ( const QRectF &  rectangle  ) 

Definition at line 101 of file ctkTransferFunctionItems.cpp.

void ctkTransferFunctionItem::setTransferFunction ( ctkTransferFunction transferFunction  ) 

Definition at line 74 of file ctkTransferFunctionItems.cpp.

ctkTransferFunction * ctkTransferFunctionItem::transferFunction (  )  const

Definition at line 88 of file ctkTransferFunctionItems.cpp.

qreal ctkTransferFunctionItem::y ( const QVariant &  value  )  const [protected]

Definition at line 170 of file ctkTransferFunctionItems.cpp.

qreal ctkTransferFunctionItem::y ( const ctkPoint point  )  const [inline, protected]

Definition at line 77 of file ctkTransferFunctionItems.h.


The documentation for this class was generated from the following files:
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines