##// END OF EJS Templates
fix painting coordinates and added LGPL
fix painting coordinates and added LGPL

File last commit:

r7:a8e6b5a8e8d0 tip default
r7:a8e6b5a8e8d0 tip default
Show More
qcolorbaraxis.h
76 lines | 2.4 KiB | text/x-c | CLexer
winter
fix painting coordinates and added LGPL
r7 /*------------------------------------------------------------------------------
-- This file is a part of the ColorMapChart API
-- Copyright (C) 2016, Plasma Physics Laboratory - CNRS
--
-- This program is free software; you can redistribute it and/or modify
-- it under the terms of the GNU General Public License as published by
-- the Free Software Foundation; either version 2 of the License, or
-- (at your option) any later version.
--
-- This program is distributed in the hope that it will be useful,
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-- GNU General Public License for more details.
--
-- You should have received a copy of the GNU General Public License
-- along with this program; if not, write to the Free Software
-- Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
-------------------------------------------------------------------------------*/
/*-- Author : Hugo Winter
-- Mail : hugo.winter@lpp.polytechnique.fr
----------------------------------------------------------------------------*/
winter
work on color bar axis
r1 #ifndef QCOLORBARAXIS_H
#define QCOLORBARAXIS_H
#include <QtCharts/QAbstractAxis>
QT_CHARTS_BEGIN_NAMESPACE
class QColorBarAxisPrivate;
class QT_CHARTS_EXPORT QColorBarAxis : public QAbstractAxis
{
Q_OBJECT
public:
winter
improvements in execution time, colorbar ok, more work to do on axes,
r3 explicit QColorBarAxis(QRectF plotArea,QLinearGradient gradient, qreal min, qreal max,QObject *parent = 0);
winter
work on color bar axis
r1 ~QColorBarAxis();
protected:
QColorBarAxis(QColorBarAxisPrivate &d, QObject *parent = 0);
public:
AxisType type() const;
//range handling
winter
more work on colorbar axis, stuck with qtchart mecanism
r2 void setMin(qreal min);
winter
work on color bar axis
r1 qreal min() const;
winter
more work on colorbar axis, stuck with qtchart mecanism
r2 void setMax(qreal max);
winter
work on color bar axis
r1 qreal max() const;
winter
more work on colorbar axis, stuck with qtchart mecanism
r2 void setRange(qreal min, qreal max);
winter
work on color bar axis
r1
//ticks handling
winter
more work on colorbar axis, stuck with qtchart mecanism
r2 void setTickCount(int count);
int tickCount() const;
void setMinorTickCount(int count);
int minorTickCount() const;
winter
work on color bar axis
r1
void setLabelFormat(const QString &format);
QString labelFormat() const;
Q_SIGNALS:
void minChanged(qreal min);
void maxChanged(qreal max);
void rangeChanged(qreal min, qreal max);
winter
more work on colorbar axis, stuck with qtchart mecanism
r2 void tickCountChanged(int tickCount);
void minorTickCountChanged(int tickCount);
winter
work on color bar axis
r1 void labelFormatChanged(const QString &format);
private:
Q_DECLARE_PRIVATE(QColorBarAxis)
Q_DISABLE_COPY(QColorBarAxis)
};
QT_CHARTS_END_NAMESPACE
#endif // QCOLORBARAXIS_H