CTK  0.1.0
The Common Toolkit is a community effort to provide support code for medical image analysis, surgical navigation, and related projects.
Public Member Functions | Protected Slots | Protected Member Functions | Protected Attributes | Properties | List of all members
ctkTransferFunctionRepresentation Class Reference

#include <Libs/Widgets/ctkTransferFunctionRepresentation.h>

Inheritance diagram for ctkTransferFunctionRepresentation:
Inheritance graph
[legend]
Collaboration diagram for ctkTransferFunctionRepresentation:
Collaboration graph
[legend]

Public Member Functions

QList< ctkPointbezierParams (ctkControlPoint *start, ctkControlPoint *end) const
 
QColor color (const ctkControlPoint *cp) const
 
QColor color (const ctkPoint &point) const
 
QColor color (const QVariant &tfV) const
 
void computeCurve ()
 
void computeGradient ()
 
 ctkTransferFunctionRepresentation (ctkTransferFunction *transferFunction, QObject *parent=0)
 Construct a representation with transfer function. More...
 
 ctkTransferFunctionRepresentation (QObject *parent=0)
 Construct a representation with no transfer function. More...
 
const QPainterPath & curve () const
 
const QGradient & gradient () const
 
QPointF mapPointFromScene (const QPointF &point) const
 
QPointF mapPointToScene (const ctkControlPoint *cp) const
 
QPointF mapPointToScene (const ctkPoint &point) 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 ctkControlPoint *cp) const
 
qreal posX (const ctkPoint &point) const
 
qreal posX (const qreal &tfX) const
 
qreal posY (const ctkControlPoint *cp) const
 
qreal posY (const ctkPoint &point) const
 
qreal posY (const QVariant &tfV) const
 
void setTransferFunction (ctkTransferFunction *transferFunction)
 
void setVerticalGradientColor (QColor verticalGradientColor)
 
ctkTransferFunctiontransferFunction () const
 
QColor verticalGradientColor () const
 
virtual ~ctkTransferFunctionRepresentation ()
 

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])
 

Protected Attributes

QScopedPointer< ctkTransferFunctionRepresentationPrivate > d_ptr
 

Properties

QColor verticalGradientColor
 

Detailed Description

Definition at line 40 of file ctkTransferFunctionRepresentation.h.

Constructor & Destructor Documentation

◆ ctkTransferFunctionRepresentation() [1/2]

ctkTransferFunctionRepresentation::ctkTransferFunctionRepresentation ( QObject *  parent = 0)

Construct a representation with no transfer function.

◆ ctkTransferFunctionRepresentation() [2/2]

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

Construct a representation with transfer function.

◆ ~ctkTransferFunctionRepresentation()

virtual ctkTransferFunctionRepresentation::~ctkTransferFunctionRepresentation ( )
virtual

Member Function Documentation

◆ bezierParams()

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

◆ color() [1/3]

QColor ctkTransferFunctionRepresentation::color ( const ctkControlPoint cp) const
inline

Definition at line 113 of file ctkTransferFunctionRepresentation.h.

◆ color() [2/3]

QColor ctkTransferFunctionRepresentation::color ( const ctkPoint point) const
inline

Definition at line 126 of file ctkTransferFunctionRepresentation.h.

◆ color() [3/3]

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

◆ computeCurve()

void ctkTransferFunctionRepresentation::computeCurve ( )

◆ computeGradient()

void ctkTransferFunctionRepresentation::computeGradient ( )

◆ computeRangeXDiff()

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

◆ computeRangeXOffset()

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

◆ computeRangeYDiff()

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

◆ computeRangeYOffset()

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

◆ curve()

const QPainterPath& ctkTransferFunctionRepresentation::curve ( ) const

◆ gradient()

const QGradient& ctkTransferFunctionRepresentation::gradient ( ) const

◆ mapPointFromScene()

QPointF ctkTransferFunctionRepresentation::mapPointFromScene ( const QPointF &  point) const
inline

Definition at line 131 of file ctkTransferFunctionRepresentation.h.

◆ mapPointToScene() [1/2]

QPointF ctkTransferFunctionRepresentation::mapPointToScene ( const ctkControlPoint cp) const

◆ mapPointToScene() [2/2]

QPointF ctkTransferFunctionRepresentation::mapPointToScene ( const ctkPoint point) const

◆ mapXFromScene()

qreal ctkTransferFunctionRepresentation::mapXFromScene ( qreal  ScenePosX) const

◆ mapXToScene()

qreal ctkTransferFunctionRepresentation::mapXToScene ( qreal  posX) const

◆ mapYFromScene()

qreal ctkTransferFunctionRepresentation::mapYFromScene ( qreal  ScenePosY) const

◆ mapYToScene()

qreal ctkTransferFunctionRepresentation::mapYToScene ( qreal  posY) const

◆ nonLinearPoints()

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

◆ onTransferFunctionChanged

virtual void ctkTransferFunctionRepresentation::onTransferFunctionChanged ( )
protectedvirtualslot

◆ points()

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

◆ posX() [1/3]

qreal ctkTransferFunctionRepresentation::posX ( const ctkControlPoint cp) const
inline

Definition at line 105 of file ctkTransferFunctionRepresentation.h.

◆ posX() [2/3]

qreal ctkTransferFunctionRepresentation::posX ( const ctkPoint point) const
inline

Definition at line 118 of file ctkTransferFunctionRepresentation.h.

◆ posX() [3/3]

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

◆ posY() [1/3]

qreal ctkTransferFunctionRepresentation::posY ( const ctkControlPoint cp) const
inline

Definition at line 109 of file ctkTransferFunctionRepresentation.h.

◆ posY() [2/3]

qreal ctkTransferFunctionRepresentation::posY ( const ctkPoint point) const
inline

Definition at line 122 of file ctkTransferFunctionRepresentation.h.

◆ posY() [3/3]

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

◆ setTransferFunction()

void ctkTransferFunctionRepresentation::setTransferFunction ( ctkTransferFunction transferFunction)

◆ setVerticalGradientColor()

void ctkTransferFunctionRepresentation::setVerticalGradientColor ( QColor  verticalGradientColor)

◆ transferFunction()

ctkTransferFunction* ctkTransferFunctionRepresentation::transferFunction ( ) const

◆ verticalGradientColor()

QColor ctkTransferFunctionRepresentation::verticalGradientColor ( ) const

Member Data Documentation

◆ d_ptr

QScopedPointer<ctkTransferFunctionRepresentationPrivate> ctkTransferFunctionRepresentation::d_ptr
protected

Definition at line 98 of file ctkTransferFunctionRepresentation.h.

Property Documentation

◆ verticalGradientColor

QColor ctkTransferFunctionRepresentation::verticalGradientColor
readwrite

Definition at line 131 of file ctkTransferFunctionRepresentation.h.


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