ctkTransferFunctionScene Class Reference

#include <Libs/Widgets/ctkTransferFunctionScene.h>

List of all members.

Public Member Functions

QList< ctkPointbezierParams (ctkControlPoint *start, ctkControlPoint *end) const
QColor color (const QVariant &tfV) const
QColor color (const ctkPoint &point) const
QColor color (const ctkControlPoint *cp) const
void computeCurve ()
void computeGradient ()
 ctkTransferFunctionScene (ctkTransferFunction *transferFunction, QObject *parent=0)
 ctkTransferFunctionScene (QObject *parent=0)
const QPainterPath & curve () const
const QGradient & gradient () const
QPointF mapPointFromScene (const QPointF &point) const
QPointF mapPointToScene (const ctkPoint &point) const
QPointF mapPointToScene (const ctkControlPoint *cp) const
qreal mapXFromScene (qreal ScenePosX) const
qreal mapXToScene (qreal posX) const
qreal mapYFromScene (qreal ScenePosY) const
qreal mapYToScene (qreal posY) const
QList< ctkPointnonLinearPoints (ctkControlPoint *start, ctkControlPoint *end) const
const QList< QPointF > & points () const
qreal posX (const qreal &tfX) const
qreal posX (const ctkPoint &point) const
qreal posX (const ctkControlPoint *cp) const
qreal posY (const QVariant &tfV) const
qreal posY (const ctkPoint &point) const
qreal posY (const ctkControlPoint *cp) const
void setTransferFunction (ctkTransferFunction *transferFunction)
void setVerticalGradientColor (QColor verticalGradientColor)
ctkTransferFunctiontransferFunction () const
QColor verticalGradientColor () const
virtual ~ctkTransferFunctionScene ()

Protected Slots

virtual void onTransferFunctionChanged ()

Protected Member Functions

qreal computeRangeXDiff (const QRectF &rect, qreal rangeX[2])
qreal computeRangeXOffset (qreal rangeX[2])
qreal computeRangeYDiff (const QRectF &rect, const QVariant rangeY[2])
qreal computeRangeYOffset (const QVariant rangeY[2])

Properties

QColor VerticalGradientColor

Detailed Description

Definition at line 38 of file ctkTransferFunctionScene.h.


Constructor & Destructor Documentation

ctkTransferFunctionScene::ctkTransferFunctionScene ( QObject *  parent = 0  ) 

Definition at line 60 of file ctkTransferFunctionScene.cpp.

ctkTransferFunctionScene::ctkTransferFunctionScene ( ctkTransferFunction transferFunction,
QObject *  parent = 0 
)

Definition at line 67 of file ctkTransferFunctionScene.cpp.

ctkTransferFunctionScene::~ctkTransferFunctionScene (  )  [virtual]

Definition at line 75 of file ctkTransferFunctionScene.cpp.


Member Function Documentation

QList< ctkPoint > ctkTransferFunctionScene::bezierParams ( ctkControlPoint start,
ctkControlPoint end 
) const

Definition at line 298 of file ctkTransferFunctionScene.cpp.

QColor ctkTransferFunctionScene::color ( const QVariant &  tfV  )  const

Definition at line 341 of file ctkTransferFunctionScene.cpp.

QColor ctkTransferFunctionScene::color ( const ctkPoint point  )  const [inline]

Definition at line 119 of file ctkTransferFunctionScene.h.

QColor ctkTransferFunctionScene::color ( const ctkControlPoint cp  )  const [inline]

Definition at line 106 of file ctkTransferFunctionScene.h.

void ctkTransferFunctionScene::computeCurve (  ) 

Definition at line 146 of file ctkTransferFunctionScene.cpp.

void ctkTransferFunctionScene::computeGradient (  ) 

Definition at line 213 of file ctkTransferFunctionScene.cpp.

qreal ctkTransferFunctionScene::computeRangeXDiff ( const QRectF &  rect,
qreal  rangeX[2] 
) [protected]

Definition at line 358 of file ctkTransferFunctionScene.cpp.

qreal ctkTransferFunctionScene::computeRangeXOffset ( qreal  rangeX[2]  )  [protected]

Definition at line 364 of file ctkTransferFunctionScene.cpp.

qreal ctkTransferFunctionScene::computeRangeYDiff ( const QRectF &  rect,
const QVariant  rangeY[2] 
) [protected]

Definition at line 370 of file ctkTransferFunctionScene.cpp.

qreal ctkTransferFunctionScene::computeRangeYOffset ( const QVariant  rangeY[2]  )  [protected]

Definition at line 386 of file ctkTransferFunctionScene.cpp.

const QPainterPath & ctkTransferFunctionScene::curve (  )  const

Definition at line 110 of file ctkTransferFunctionScene.cpp.

const QGradient & ctkTransferFunctionScene::gradient (  )  const

Definition at line 134 of file ctkTransferFunctionScene.cpp.

QPointF ctkTransferFunctionScene::mapPointFromScene ( const QPointF &  point  )  const [inline]

Definition at line 124 of file ctkTransferFunctionScene.h.

QPointF ctkTransferFunctionScene::mapPointToScene ( const ctkPoint point  )  const

Definition at line 424 of file ctkTransferFunctionScene.cpp.

QPointF ctkTransferFunctionScene::mapPointToScene ( const ctkControlPoint cp  )  const

Definition at line 417 of file ctkTransferFunctionScene.cpp.

qreal ctkTransferFunctionScene::mapXFromScene ( qreal  ScenePosX  )  const

Definition at line 445 of file ctkTransferFunctionScene.cpp.

qreal ctkTransferFunctionScene::mapXToScene ( qreal  posX  )  const

Definition at line 431 of file ctkTransferFunctionScene.cpp.

qreal ctkTransferFunctionScene::mapYFromScene ( qreal  ScenePosY  )  const

Definition at line 452 of file ctkTransferFunctionScene.cpp.

qreal ctkTransferFunctionScene::mapYToScene ( qreal  posY  )  const

Definition at line 438 of file ctkTransferFunctionScene.cpp.

QList< ctkPoint > ctkTransferFunctionScene::nonLinearPoints ( ctkControlPoint start,
ctkControlPoint end 
) const

Definition at line 323 of file ctkTransferFunctionScene.cpp.

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

Definition at line 101 of file ctkTransferFunctionScene.cpp.

const QList< QPointF > & ctkTransferFunctionScene::points (  )  const

Definition at line 122 of file ctkTransferFunctionScene.cpp.

qreal ctkTransferFunctionScene::posX ( const qreal &  tfX  )  const

Definition at line 400 of file ctkTransferFunctionScene.cpp.

qreal ctkTransferFunctionScene::posX ( const ctkPoint point  )  const [inline]

Definition at line 111 of file ctkTransferFunctionScene.h.

qreal ctkTransferFunctionScene::posX ( const ctkControlPoint cp  )  const [inline]

Definition at line 98 of file ctkTransferFunctionScene.h.

qreal ctkTransferFunctionScene::posY ( const QVariant &  tfV  )  const

Definition at line 406 of file ctkTransferFunctionScene.cpp.

qreal ctkTransferFunctionScene::posY ( const ctkPoint point  )  const [inline]

Definition at line 115 of file ctkTransferFunctionScene.h.

qreal ctkTransferFunctionScene::posY ( const ctkControlPoint cp  )  const [inline]

Definition at line 102 of file ctkTransferFunctionScene.h.

void ctkTransferFunctionScene::setTransferFunction ( ctkTransferFunction transferFunction  ) 

Definition at line 80 of file ctkTransferFunctionScene.cpp.

void ctkTransferFunctionScene::setVerticalGradientColor ( QColor  verticalGradientColor  ) 

Definition at line 464 of file ctkTransferFunctionScene.cpp.

ctkTransferFunction * ctkTransferFunctionScene::transferFunction (  )  const

Definition at line 95 of file ctkTransferFunctionScene.cpp.

QColor ctkTransferFunctionScene::verticalGradientColor (  )  const

Definition at line 458 of file ctkTransferFunctionScene.cpp.


Property Documentation

QColor ctkTransferFunctionScene::VerticalGradientColor [read, write]

Definition at line 41 of file ctkTransferFunctionScene.h.


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