OpenWalnut  1.5.0dev
Public Types | Public Member Functions | Private Attributes | List of all members
WTransferFunctionLine Class Reference

Line object for the connection of alpha control points. More...

#include <WTransferFunctionLine.h>

+ Inheritance diagram for WTransferFunctionLine:
+ Collaboration diagram for WTransferFunctionLine:

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...
 
WTransferFunctionPointgetLeft () const
 Get the point to the left. More...
 
WTransferFunctionPointgetRight () 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...
 
WTransferFunctionPointleft
 the point to the left More...
 
WTransferFunctionPointright
 the point to the right More...
 

Detailed Description

Line object for the connection of alpha control points.

Definition at line 36 of file WTransferFunctionLine.h.

Member Typedef Documentation

◆ BaseClass

type of the base class

Definition at line 40 of file WTransferFunctionLine.h.

Constructor & Destructor Documentation

◆ WTransferFunctionLine()

WTransferFunctionLine::WTransferFunctionLine ( WTransferFunctionWidget parent = 0x0)
explicit

Default constructor.

Parameters
parentparent widget

Definition at line 35 of file WTransferFunctionLine.cpp.

References lineWidth.

◆ ~WTransferFunctionLine()

WTransferFunctionLine::~WTransferFunctionLine ( )
virtual

Default destructor.

Definition at line 44 of file WTransferFunctionLine.cpp.

Member Function Documentation

◆ getLeft()

WTransferFunctionPoint * WTransferFunctionLine::getLeft ( ) const

Get the point to the left.

Returns
point to the left

Definition at line 53 of file WTransferFunctionLine.cpp.

References left.

◆ getRight()

WTransferFunctionPoint * WTransferFunctionLine::getRight ( ) const

Get the point to the right.

Returns
point to the right

Definition at line 63 of file WTransferFunctionLine.cpp.

References right.

◆ paint()

void WTransferFunctionLine::paint ( QPainter *  painter,
const QStyleOptionGraphicsItem *  option,
QWidget *  widget 
)
virtual

Paint the line.

Parameters
painterthe painter used
optionthe style option used for painting
widgetthe widget used for painting

Definition at line 68 of file WTransferFunctionLine.cpp.

References left, and right.

◆ setLeft()

void WTransferFunctionLine::setLeft ( WTransferFunctionPoint left)

Sets point to the left.

Parameters
leftnew point to the left

Definition at line 48 of file WTransferFunctionLine.cpp.

References left.

Referenced by WTransferFunctionWidget::insertPoint().

+ Here is the caller graph for this function:

◆ setRight()

void WTransferFunctionLine::setRight ( WTransferFunctionPoint right)

Sets point to the right.

Parameters
rightnew point to the right

Definition at line 58 of file WTransferFunctionLine.cpp.

References right.

Referenced by WTransferFunctionWidget::insertPoint(), and WTransferFunctionWidget::keyPressEvent().

+ Here is the caller graph for this function:

Member Data Documentation

◆ left

WTransferFunctionPoint* WTransferFunctionLine::left
private

the point to the left

Definition at line 104 of file WTransferFunctionLine.h.

Referenced by getLeft(), paint(), and setLeft().

◆ lineWidth

double WTransferFunctionLine::lineWidth
private

the width of the line used for painting

Definition at line 101 of file WTransferFunctionLine.h.

Referenced by WTransferFunctionLine().

◆ right

WTransferFunctionPoint* WTransferFunctionLine::right
private

the point to the right

Definition at line 107 of file WTransferFunctionLine.h.

Referenced by getRight(), paint(), and setRight().


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