23 #ifndef REVERSEMAPPER_H 24 #define REVERSEMAPPER_H 26 #include <QModelIndex> 37 class AbstractDiagram;
38 class ChartGraphicsItem;
57 QModelIndexList
indexesAt(
const QPointF& point )
const;
58 QModelIndexList
indexesIn(
const QRect& rect )
const;
60 QPolygonF
polygon(
int row,
int column )
const;
66 void addPolygon(
int row,
int column,
const QPolygonF& polygon );
67 void addRect(
int row,
int column,
const QRectF& rect );
68 void addCircle(
int row,
int column,
const QPointF& location,
const QSizeF& diameter );
69 void addLine(
int row,
int column,
const QPointF& from,
const QPointF& to );
74 QHash<QModelIndex, ChartGraphicsItem*> m_itemMap;
Graphics item used inside of the ReverseMapper.
QModelIndexList indexesAt(const QPointF &point) const
QModelIndexList indexesIn(const QRect &rect) const
AbstractDiagram defines the interface for diagram classes.
The ReverseMapper stores information about objects on a chart and their respective model indexes...
void addRect(int row, int column, const QRectF &rect)
void addItem(ChartGraphicsItem *item)
void addLine(int row, int column, const QPointF &from, const QPointF &to)
void setDiagram(AbstractDiagram *diagram)
void addPolygon(int row, int column, const QPolygonF &polygon)
QPolygonF polygon(int row, int column) const
void addCircle(int row, int column, const QPointF &location, const QSizeF &diameter)
QRectF boundingRect(int row, int column) const