The ReverseMapper stores information about objects on a chart and their respective model indexes. More...
#include <ReverseMapper.h>
Public Member Functions | |
void | addCircle (int row, int column, const QPointF &location, const QSizeF &diameter) |
void | addItem (ChartGraphicsItem *item) |
void | addLine (int row, int column, const QPointF &from, const QPointF &to) |
void | addPolygon (int row, int column, const QPolygonF &polygon) |
void | addRect (int row, int column, const QRectF &rect) |
QRectF | boundingRect (int row, int column) const |
void | clear () |
QModelIndexList | indexesAt (const QPointF &point) const |
QModelIndexList | indexesIn (const QRect &rect) const |
QPolygonF | polygon (int row, int column) const |
ReverseMapper (AbstractDiagram *diagram) | |
ReverseMapper () | |
void | setDiagram (AbstractDiagram *diagram) |
~ReverseMapper () |
The ReverseMapper stores information about objects on a chart and their respective model indexes.
Definition at line 42 of file ReverseMapper.h.
ReverseMapper::ReverseMapper | ( | ) |
Definition at line 38 of file ReverseMapper.cpp.
ReverseMapper::ReverseMapper | ( | AbstractDiagram * | diagram | ) | [explicit] |
Definition at line 44 of file ReverseMapper.cpp.
ReverseMapper::~ReverseMapper | ( | ) |
Definition at line 50 of file ReverseMapper.cpp.
void ReverseMapper::addCircle | ( | int | row, | |
int | column, | |||
const QPointF & | location, | |||
const QSizeF & | diameter | |||
) |
void ReverseMapper::addItem | ( | ChartGraphicsItem * | item | ) |
Definition at line 118 of file ReverseMapper.cpp.
References KDChart::ChartGraphicsItem::column(), and KDChart::ChartGraphicsItem::row().
Referenced by addPolygon().
void ReverseMapper::addLine | ( | int | row, | |
int | column, | |||
const QPointF & | from, | |||
const QPointF & | to | |||
) |
Definition at line 145 of file ReverseMapper.cpp.
References addCircle(), and addPolygon().
void ReverseMapper::addPolygon | ( | int | row, | |
int | column, | |||
const QPolygonF & | polygon | |||
) |
Definition at line 130 of file ReverseMapper.cpp.
References addItem().
Referenced by addCircle(), addLine(), and addRect().
void ReverseMapper::addRect | ( | int | row, | |
int | column, | |||
const QRectF & | rect | |||
) |
Definition at line 125 of file ReverseMapper.cpp.
References addPolygon().
QRectF ReverseMapper::boundingRect | ( | int | row, | |
int | column | |||
) | const |
Definition at line 112 of file ReverseMapper.cpp.
void ReverseMapper::clear | ( | ) |
Definition at line 61 of file ReverseMapper.cpp.
QModelIndexList ReverseMapper::indexesAt | ( | const QPointF & | point | ) | const |
Definition at line 86 of file ReverseMapper.cpp.
References KDChart::ChartGraphicsItem::column(), and KDChart::ChartGraphicsItem::row().
QModelIndexList ReverseMapper::indexesIn | ( | const QRect & | rect | ) | const |
Definition at line 67 of file ReverseMapper.cpp.
References KDChart::ChartGraphicsItem::column(), and KDChart::ChartGraphicsItem::row().
QPolygonF ReverseMapper::polygon | ( | int | row, | |
int | column | |||
) | const |
Definition at line 106 of file ReverseMapper.cpp.
void ReverseMapper::setDiagram | ( | AbstractDiagram * | diagram | ) |
Definition at line 55 of file ReverseMapper.cpp.