|
Isis 3 Programmer Reference
|
2 #ifndef HISTOGRAM_ITEM_H
3 #define HISTOGRAM_ITEM_H
8 #include "qwt_plot_item.h"
9 #include "CubeViewport.h"
13 class QwtIntervalSeriesData;
33 const QwtIntervalSeriesData &
data()
const;
44 virtual int rtti()
const;
46 virtual void draw(QPainter *,
const QwtScaleMap &xMap,
47 const QwtScaleMap &yMap,
const QRectF &)
const;
52 enum HistogramAttribute {
61 virtual void drawBar(QPainter *,
62 Qt::Orientation o,
const QRect &)
const;
double baseline() const
Returns the baseline.
virtual QRectF boundingRect() const
Returns the bounding rectangle of the item.
CubeViewport * p_cvp
Viewport the data is from.
void setVertices(const QList< QPoint > &points)
This method sets the vertices of the selected area on the cvp.
QColor color() const
Return the color of the item.
void setBaseline(double reference)
void setColor(const QColor &)
Set the color of the hist.
void setData(const QwtIntervalSeriesData &data)
Overridden method to set the data in the histogram.
virtual ~HistogramItem()
Destructor.
This is the (qwt) plot item for a histogram.
bool testHistogramAttribute(HistogramAttribute) const
HistogramItem(const QString &title=QString::null)
Constructor 2.
void setViewPort(CubeViewport *cvp)
This method sets the view port.
Widget to display Isis cubes for qt apps.
QList< QPointF > p_pointList
List of data points.
const QwtIntervalSeriesData & data() const
Returns this item's data.
CubeViewport * getViewPort() const
This method returns the cube view port associated with the curve.
virtual void drawBar(QPainter *, Qt::Orientation o, const QRect &) const
This method draws the bars of the bar graph.
void setHistogramAttribute(HistogramAttribute, bool on=true)
void init()
Initialization method.
virtual void draw(QPainter *, const QwtScaleMap &xMap, const QwtScaleMap &yMap, const QRectF &) const
This is free and unencumbered software released into the public domain.
QList< QPointF > getVertices() const
This method returns a list of points which are the vertices of the selected area (by the rubberband) ...