21 #ifndef __ctkTransferFunctionBarsItem_h 22 #define __ctkTransferFunctionBarsItem_h 25 #include <QGraphicsObject> 30 #include "ctkWidgetsExport.h" 33 class ctkTransferFunctionBarsItemPrivate;
40 Q_PROPERTY(qreal barWidth READ barWidth WRITE setBarWidth)
41 Q_PROPERTY(QColor barColor READ barColor WRITE setBarColor)
45 QGraphicsItem* parent = 0);
48 void setBarWidth(qreal newBarWidth);
49 qreal barWidth()const;
51 void setBarColor(const QColor& newBarColor);
52 QColor barColor()const;
60 virtual void paint(QPainter * painter,
const QStyleOptionGraphicsItem * option, QWidget * widget = 0);
62 QScopedPointer<ctkTransferFunctionBarsItemPrivate>
d_ptr;
QScopedPointer< ctkTransferFunctionBarsItemPrivate > d_ptr