Isis Developer Reference
|
This is the (qwt) plot item for a histogram. More...
#include <HistogramItem.h>
Public Types | |
enum | HistogramAttribute { Auto = 0, Xfy = 1 } |
Public Member Functions | |
HistogramItem (const QString &title=QString::null) | |
Constructor 2. More... | |
HistogramItem (const QwtText &title) | |
Constructor 1. More... | |
virtual | ~HistogramItem () |
Destructor. More... | |
void | setData (const QwtIntervalSeriesData &data) |
Overridden method to set the data in the histogram. More... | |
const QwtIntervalSeriesData & | data () const |
Returns this item's data. More... | |
QList< QPointF > | getVertices () const |
This method returns a list of points which are the vertices of the selected area (by the rubberband) on the cvp. More... | |
void | setVertices (const QList< QPoint > &points) |
This method sets the vertices of the selected area on the cvp. More... | |
CubeViewport * | getViewPort () const |
This method returns the cube view port associated with the curve. More... | |
void | setViewPort (CubeViewport *cvp) |
This method sets the view port. More... | |
void | setColor (const QColor &) |
Set the color of the hist. More... | |
QColor | color () const |
Return the color of the item. More... | |
virtual QRectF | boundingRect () const |
Returns the bounding rectangle of the item. More... | |
virtual int | rtti () const |
virtual void | draw (QPainter *, const QwtScaleMap &xMap, const QwtScaleMap &yMap, const QRectF &) const |
void | setBaseline (double reference) |
double | baseline () const |
Returns the baseline. More... | |
void | setHistogramAttribute (HistogramAttribute, bool on=true) |
bool | testHistogramAttribute (HistogramAttribute) const |
Protected Member Functions | |
virtual void | drawBar (QPainter *, Qt::Orientation o, const QRect &) const |
This method draws the bars of the bar graph. More... | |
This is the (qwt) plot item for a histogram.
This draws bars for each of the histogram bins.
|
explicit |
Constructor 2.
title |
|
explicit |
Constructor 1.
title |
|
virtual |
Destructor.
double Isis::HistogramItem::baseline | ( | ) | const |
|
virtual |
QColor Isis::HistogramItem::color | ( | ) | const |
const QwtIntervalSeriesData & Isis::HistogramItem::data | ( | ) | const |
|
virtual |
painter | |
xMap | |
yMap |
References baseline(), data(), drawBar(), and Xfy.
|
protectedvirtual |
QList< QPointF > Isis::HistogramItem::getVertices | ( | ) | const |
This method returns a list of points which are the vertices of the selected area (by the rubberband) on the cvp.
CubeViewport * Isis::HistogramItem::getViewPort | ( | ) | const |
This method returns the cube view port associated with the curve.
Referenced by setVertices().
|
virtual |
void Isis::HistogramItem::setBaseline | ( | double | reference | ) |
reference |
void Isis::HistogramItem::setColor | ( | const QColor & | color | ) |
Set the color of the hist.
item.
color |
References color().
Referenced by Isis::HistogramWidget::HistogramWidget().
void Isis::HistogramItem::setData | ( | const QwtIntervalSeriesData & | data | ) |
Overridden method to set the data in the histogram.
data |
References data().
Referenced by Isis::HistogramWidget::setHistogram().
void Isis::HistogramItem::setHistogramAttribute | ( | HistogramAttribute | attribute, |
bool | on = true |
||
) |
attribute | |
on |
void Isis::HistogramItem::setVertices | ( | const QList< QPoint > & | points | ) |
This method sets the vertices of the selected area on the cvp.
points |
References getViewPort(), and Isis::CubeViewport::viewportToCube().
void Isis::HistogramItem::setViewPort | ( | CubeViewport * | cvp | ) |
This method sets the view port.
cvp |
bool Isis::HistogramItem::testHistogramAttribute | ( | HistogramAttribute | attribute | ) | const |
attribute |