25 #ifndef WTRANSFERFUNCTIONHISTOGRAM_H
26 #define WTRANSFERFUNCTIONHISTOGRAM_H
29 #include "QGraphicsItem"
68 virtual void paint( QPainter *painter,
const QStyleOptionGraphicsItem *option, QWidget* );
75 const std::vector< double >&
getData()
const;
82 std::vector< double >&
getData();
Display a semi-transparent line graph as the histogram of the current data set.
WTransferFunctionHistogram(WTransferFunctionWidget *parent=0x0)
Default constructor.
virtual ~WTransferFunctionHistogram()
Default destructor.
QGraphicsItem BaseClass
type of the base class
QRectF boundingRect() const
Get the bounding rect of the histogram.
std::vector< double > m_data
the histogram data
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.
const std::vector< double > & getData() const
Get histogram data.