27 #include "WTransferFunctionLine.h"
28 #include "WTransferFunctionPoint.h"
29 #include "WTransferFunctionWidget.h"
32 #include "QStyleOption"
33 #include "QGraphicsSceneMouseEvent"
36 :
BaseClass(), lineWidth( 2.0 ), left( 0x0 ), right( 0x0 )
38 setPen( QPen( Qt::black,
lineWidth, Qt::SolidLine, Qt::RoundCap, Qt::RoundJoin ) );
81 BaseClass::paint( painter, option, widget );
void setRight(WTransferFunctionPoint *right)
Sets point to the right.
void setLeft(WTransferFunctionPoint *left)
Sets point to the left.
WTransferFunctionPoint * right
the point to the right
virtual ~WTransferFunctionLine()
Default destructor.
WTransferFunctionPoint * getLeft() const
Get the point to the left.
WTransferFunctionPoint * getRight() const
Get the point to the right.
virtual void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget)
Paint the line.
double lineWidth
the width of the line used for painting
WTransferFunctionPoint * left
the point to the left
WTransferFunctionLine(WTransferFunctionWidget *parent=0x0)
Default constructor.
A control point for the alpha function.