KD Chart 2
[rev.2.7]
|
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 () | |
ReverseMapper (AbstractDiagram *diagram) | |
void | setDiagram (AbstractDiagram *diagram) |
~ReverseMapper () | |
The ReverseMapper stores information about objects on a chart and their respective model indexes.
Definition at line 44 of file ReverseMapper.h.
ReverseMapper::ReverseMapper | ( | ) |
Definition at line 38 of file ReverseMapper.cpp.
|
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 123 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 150 of file ReverseMapper.cpp.
References addCircle(), and addPolygon().
void ReverseMapper::addPolygon | ( | int | row, |
int | column, | ||
const QPolygonF & | polygon | ||
) |
Definition at line 135 of file ReverseMapper.cpp.
References addItem().
Referenced by addCircle(), addLine(), addRect(), and KDChart::PaintingHelpers::paintThreeDLines().
void ReverseMapper::addRect | ( | int | row, |
int | column, | ||
const QRectF & | rect | ||
) |
Definition at line 130 of file ReverseMapper.cpp.
References addPolygon().
QRectF ReverseMapper::boundingRect | ( | int | row, |
int | column | ||
) | const |
Definition at line 115 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 87 of file ReverseMapper.cpp.
References KDChart::ChartGraphicsItem::column(), and KDChart::ChartGraphicsItem::row().
QModelIndexList ReverseMapper::indexesIn | ( | const QRect & | rect | ) | const |
Definition at line 68 of file ReverseMapper.cpp.
References KDChart::ChartGraphicsItem::column(), and KDChart::ChartGraphicsItem::row().
QPolygonF ReverseMapper::polygon | ( | int | row, |
int | column | ||
) | const |
Definition at line 107 of file ReverseMapper.cpp.
void ReverseMapper::setDiagram | ( | AbstractDiagram * | diagram | ) |
Definition at line 55 of file ReverseMapper.cpp.