OpenWalnut
1.5.0dev
|
Display a semi-transparent line graph as the histogram of the current data set. More...
#include <WTransferFunctionHistogram.h>
Public Types | |
typedef QGraphicsItem | BaseClass |
type of the base class More... | |
Public Member Functions | |
WTransferFunctionHistogram (WTransferFunctionWidget *parent=0x0) | |
Default constructor. More... | |
virtual | ~WTransferFunctionHistogram () |
Default destructor. More... | |
QRectF | boundingRect () const |
Get the bounding rect of the histogram. More... | |
virtual void | paint (QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *) |
Paint a semi-transparent histogram on top of the transfer function but below the input handles. More... | |
const std::vector< double > & | getData () const |
Get histogram data. More... | |
std::vector< double > & | getData () |
Get histogram data. More... | |
Private Attributes | |
std::vector< double > | m_data |
the histogram data More... | |
Display a semi-transparent line graph as the histogram of the current data set.
Definition at line 36 of file WTransferFunctionHistogram.h.
type of the base class
Definition at line 40 of file WTransferFunctionHistogram.h.
|
explicit |
Default constructor.
parent | the parent widget |
Definition at line 38 of file WTransferFunctionHistogram.cpp.
|
virtual |
Default destructor.
Definition at line 44 of file WTransferFunctionHistogram.cpp.
QRectF WTransferFunctionHistogram::boundingRect | ( | ) | const |
Get the bounding rect of the histogram.
Definition at line 48 of file WTransferFunctionHistogram.cpp.
std::vector< double > & WTransferFunctionHistogram::getData | ( | ) |
Get histogram data.
Definition at line 116 of file WTransferFunctionHistogram.cpp.
References m_data.
const std::vector< double > & WTransferFunctionHistogram::getData | ( | ) | const |
Get histogram data.
Definition at line 111 of file WTransferFunctionHistogram.cpp.
References m_data.
Referenced by WTransferFunctionWidget::setHistogram(), and WTransferFunctionWidget::updateTransferFunction().
|
virtual |
Paint a semi-transparent histogram on top of the transfer function but below the input handles.
painter | Painter that does the low-level painting of the histogram item |
option | Style of the graphics histogram graphics item (currently not used in the function) |
Definition at line 53 of file WTransferFunctionHistogram.cpp.
References m_data.
|
private |
the histogram data
Definition at line 86 of file WTransferFunctionHistogram.h.