KD Chart 2  [rev.2.7]
Public Member Functions | List of all members
KDChart::ReverseMapper Class Reference

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 ()
 

Detailed Description

The ReverseMapper stores information about objects on a chart and their respective model indexes.

Definition at line 44 of file ReverseMapper.h.

Constructor & Destructor Documentation

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.

Member Function Documentation

void ReverseMapper::addCircle ( int  row,
int  column,
const QPointF &  location,
const QSizeF &  diameter 
)

Definition at line 142 of file ReverseMapper.cpp.

References addPolygon().

Referenced by addLine().

void ReverseMapper::addItem ( ChartGraphicsItem item)
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
QModelIndexList ReverseMapper::indexesIn ( const QRect &  rect) const
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.


The documentation for this class was generated from the following files:

Klarälvdalens Datakonsult AB (KDAB)
"The Qt, C++ and OpenGL Experts"
https://www.kdab.com/

https://www.kdab.com/development-resources/qt-tools/kd-chart/