OpenWalnut
1.5.0dev
|
Line object for the connection of alpha control points. More...
#include <WTransferFunctionLine.h>
Public Types | |
typedef QGraphicsLineItem | BaseClass |
type of the base class More... | |
Public Member Functions | |
WTransferFunctionLine (WTransferFunctionWidget *parent=0x0) | |
Default constructor. More... | |
virtual | ~WTransferFunctionLine () |
Default destructor. More... | |
WTransferFunctionPoint * | getLeft () const |
Get the point to the left. More... | |
WTransferFunctionPoint * | getRight () const |
Get the point to the right. More... | |
void | setLeft (WTransferFunctionPoint *left) |
Sets point to the left. More... | |
void | setRight (WTransferFunctionPoint *right) |
Sets point to the right. More... | |
virtual void | paint (QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget) |
Paint the line. More... | |
Private Attributes | |
double | lineWidth |
the width of the line used for painting More... | |
WTransferFunctionPoint * | left |
the point to the left More... | |
WTransferFunctionPoint * | right |
the point to the right More... | |
Line object for the connection of alpha control points.
Definition at line 36 of file WTransferFunctionLine.h.
type of the base class
Definition at line 40 of file WTransferFunctionLine.h.
|
explicit |
Default constructor.
parent | parent widget |
Definition at line 35 of file WTransferFunctionLine.cpp.
References lineWidth.
|
virtual |
Default destructor.
Definition at line 44 of file WTransferFunctionLine.cpp.
WTransferFunctionPoint * WTransferFunctionLine::getLeft | ( | ) | const |
Get the point to the left.
Definition at line 53 of file WTransferFunctionLine.cpp.
References left.
WTransferFunctionPoint * WTransferFunctionLine::getRight | ( | ) | const |
Get the point to the right.
Definition at line 63 of file WTransferFunctionLine.cpp.
References right.
|
virtual |
Paint the line.
painter | the painter used |
option | the style option used for painting |
widget | the widget used for painting |
Definition at line 68 of file WTransferFunctionLine.cpp.
void WTransferFunctionLine::setLeft | ( | WTransferFunctionPoint * | left | ) |
Sets point to the left.
left | new point to the left |
Definition at line 48 of file WTransferFunctionLine.cpp.
References left.
Referenced by WTransferFunctionWidget::insertPoint().
void WTransferFunctionLine::setRight | ( | WTransferFunctionPoint * | right | ) |
Sets point to the right.
right | new point to the right |
Definition at line 58 of file WTransferFunctionLine.cpp.
References right.
Referenced by WTransferFunctionWidget::insertPoint(), and WTransferFunctionWidget::keyPressEvent().
|
private |
the point to the left
Definition at line 104 of file WTransferFunctionLine.h.
|
private |
the width of the line used for painting
Definition at line 101 of file WTransferFunctionLine.h.
Referenced by WTransferFunctionLine().
|
private |
the point to the right
Definition at line 107 of file WTransferFunctionLine.h.
Referenced by getRight(), paint(), and setRight().