KD Chart API Documentation 3.1
Loading...
Searching...
No Matches
KDChartZoomParameters.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 ZOOMPARAMETERS_H
12#define ZOOMPARAMETERS_H
13
14//
15// W A R N I N G
16// -------------
17//
18// This file is not part of the KD Chart API. It exists purely as an
19// implementation detail. This header file may change from version to
20// version without notice, or even be removed.
21//
22// We mean it.
23//
24
25#include <QPointF>
26
27namespace KDChart {
33{
34public:
36 {
37 }
38
42 , xCenter(center.x())
43 , yCenter(center.y())
44 {
45 }
46
48 {
49 xCenter = center.x();
50 yCenter = center.y();
51 }
52 const QPointF center() const
53 {
54 return QPointF(xCenter, yCenter);
55 }
56
57 qreal xFactor = 1.0;
58 qreal yFactor = 1.0;
59
60 qreal xCenter = 0.5;
61 qreal yCenter = 0.5;
62};
63}
64
65#endif
const QPointF center() const
void setCenter(const QPointF &center)
ZoomParameters(qreal xFactor, qreal yFactor, const QPointF &center)
qreal x() const const
qreal y() const const

© 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 on Wed May 1 2024 00:01:10 for KD Chart API Documentation by doxygen 1.9.8