KD Chart API Documentation
3.1
src
KDChart
ChartGraphicsItem.h
Go to the documentation of this file.
1
/****************************************************************************
2
**
3
** This file is part of the KD Chart library.
4
**
5
** SPDX-FileCopyrightText: 2001 Klarälvdalens Datakonsult AB, a KDAB Group company <info@kdab.com>
6
**
7
** SPDX-License-Identifier: MIT
8
**
9
****************************************************************************/
10
11
#ifndef CHARTGRAPHICSITEM_H
12
#define CHARTGRAPHICSITEM_H
13
14
#include <QGraphicsPolygonItem>
15
16
namespace
KDChart
{
17
22
class
ChartGraphicsItem
:
public
QGraphicsPolygonItem
23
{
24
public
:
25
enum
26
{
27
Type
= UserType + 1
28
};
29
30
ChartGraphicsItem
();
31
32
ChartGraphicsItem
(
int
row
,
int
column
);
33
34
int
row
()
const
35
{
36
return
m_row;
37
}
38
int
column
()
const
39
{
40
return
m_column;
41
}
42
int
type
()
const override
43
{
44
return
Type
;
45
}
46
47
private
:
48
int
m_row = -1;
49
int
m_column = -1;
50
};
51
}
52
53
#endif
KDChart::ChartGraphicsItem
Graphics item used inside of the ReverseMapper.
Definition:
ChartGraphicsItem.h:23
KDChart::ChartGraphicsItem::row
int row() const
Definition:
ChartGraphicsItem.h:34
KDChart::ChartGraphicsItem::type
int type() const override
Definition:
ChartGraphicsItem.h:42
KDChart::ChartGraphicsItem::ChartGraphicsItem
ChartGraphicsItem()
Definition:
ChartGraphicsItem.cpp:15
KDChart::ChartGraphicsItem::Type
@ Type
Definition:
ChartGraphicsItem.h:27
KDChart::ChartGraphicsItem::column
int column() const
Definition:
ChartGraphicsItem.h:38
KDChart
Definition:
CartesianCoordinateTransformation.h:23
© 2001 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/
Generated by doxygen 1.9.1