ctkTransferFunctionItem Class Reference

#include <Libs/Widgets/ctkTransferFunctionItem.h>

Inheritance diagram for ctkTransferFunctionItem:
Inheritance graph
[legend]

List of all members.

Public Member Functions

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

Protected Member Functions

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

Private Member Functions

 CTK_DECLARE_PRIVATE (ctkTransferFunctionItem)

Detailed Description

TODO: should probably derive from QGraphicsItem or QAbstractGraphicsShapeItem

Definition at line 37 of file ctkTransferFunctionItem.h.


Constructor & Destructor Documentation

ctkTransferFunctionItem::ctkTransferFunctionItem ( QGraphicsItem *  parent = 0  ) 

Definition at line 59 of file ctkTransferFunctionItem.cpp.

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

Definition at line 67 of file ctkTransferFunctionItem.cpp.

ctkTransferFunctionItem::~ctkTransferFunctionItem (  )  [virtual]

Definition at line 77 of file ctkTransferFunctionItem.cpp.


Member Function Documentation

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

Definition at line 123 of file ctkTransferFunctionItem.cpp.

QRectF ctkTransferFunctionItem::boundingRect (  )  const [virtual]

Definition at line 116 of file ctkTransferFunctionItem.cpp.

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

Definition at line 87 of file ctkTransferFunctionItem.h.

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

Definition at line 177 of file ctkTransferFunctionItem.cpp.

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

Definition at line 148 of file ctkTransferFunctionItem.cpp.

qreal ctkTransferFunctionItem::rangeXDiff (  ) 

Definition at line 193 of file ctkTransferFunctionItem.cpp.

qreal ctkTransferFunctionItem::rangeXOffSet (  ) 

Definition at line 204 of file ctkTransferFunctionItem.cpp.

qreal ctkTransferFunctionItem::rangeYDiff (  ) 

Definition at line 215 of file ctkTransferFunctionItem.cpp.

qreal ctkTransferFunctionItem::rangeYOffSet (  ) 

Definition at line 259 of file ctkTransferFunctionItem.cpp.

QRectF ctkTransferFunctionItem::rect (  )  const

Definition at line 109 of file ctkTransferFunctionItem.cpp.

QPointF ctkTransferFunctionItem::screen2TransferFunctionCoordinates ( qreal  x,
qreal  y 
)

Definition at line 307 of file ctkTransferFunctionItem.cpp.

void ctkTransferFunctionItem::setRect ( const QRectF &  rectangle  ) 

Definition at line 97 of file ctkTransferFunctionItem.cpp.

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

Definition at line 77 of file ctkTransferFunctionItem.h.

void ctkTransferFunctionItem::setTransferFunction ( ctkTransferFunction transferFunction  ) 

Definition at line 83 of file ctkTransferFunctionItem.cpp.

ctkTransferFunction * ctkTransferFunctionItem::transferFunction (  )  const

Definition at line 90 of file ctkTransferFunctionItem.cpp.

QPointF ctkTransferFunctionItem::transferFunction2ScreenCoordinates ( qreal  x,
qreal  y 
)

Definition at line 299 of file ctkTransferFunctionItem.cpp.

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

Definition at line 82 of file ctkTransferFunctionItem.h.

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

Definition at line 166 of file ctkTransferFunctionItem.cpp.


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

Generated on 21 May 2010 for CTK by  doxygen 1.6.1