2#ifndef HISTOGRAM_ITEM_H
3#define HISTOGRAM_ITEM_H
8#include "qwt_plot_item.h"
13class 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;
61 virtual void drawBar(QPainter *,
62 Qt::Orientation o,
const QRect &)
const;
69 QList <QPointF> p_pointList;
Widget to display Isis cubes for qt apps.
Definition CubeViewport.h:122
This is the (qwt) plot item for a histogram.
Definition HistogramItem.h:24
QColor color() const
Return the color of the item.
Definition HistogramItem.cpp:146
void setData(const QwtIntervalSeriesData &data)
Overridden method to set the data in the histogram.
Definition HistogramItem.cpp:109
CubeViewport * getViewPort() const
This method returns the cube view port associated with the curve.
Definition HistogramItem.cpp:384
const QwtIntervalSeriesData & data() const
Returns this item's data.
Definition HistogramItem.cpp:121
virtual ~HistogramItem()
Destructor.
Definition HistogramItem.cpp:56
void setViewPort(CubeViewport *cvp)
This method sets the view port.
Definition HistogramItem.cpp:393
HistogramAttribute
Definition HistogramItem.h:52
@ Auto
Definition HistogramItem.h:53
@ Xfy
Definition HistogramItem.h:54
void setColor(const QColor &)
Set the color of the hist.
Definition HistogramItem.cpp:132
void setHistogramAttribute(HistogramAttribute, bool on=true)
Definition HistogramItem.cpp:200
bool testHistogramAttribute(HistogramAttribute) const
Definition HistogramItem.cpp:221
QList< QPointF > getVertices() const
This method returns a list of points which are the vertices of the selected area (by the rubberband) ...
Definition HistogramItem.cpp:358
virtual void draw(QPainter *, const QwtScaleMap &xMap, const QwtScaleMap &yMap, const QRectF &) const
Definition HistogramItem.cpp:234
virtual QRectF boundingRect() const
Returns the bounding rectangle of the item.
Definition HistogramItem.cpp:157
virtual int rtti() const
Definition HistogramItem.cpp:188
double baseline() const
Returns the baseline.
Definition HistogramItem.cpp:98
HistogramItem(const QString &title=QString())
Constructor 2.
Definition HistogramItem.cpp:47
virtual void drawBar(QPainter *, Qt::Orientation o, const QRect &) const
This method draws the bars of the bar graph.
Definition HistogramItem.cpp:309
void setBaseline(double reference)
Definition HistogramItem.cpp:84
void setVertices(const QList< QPoint > &points)
This method sets the vertices of the selected area on the cvp.
Definition HistogramItem.cpp:368
This is free and unencumbered software released into the public domain.
Definition Apollo.h:16