qwt_scale_div.h
Go to the documentation of this file.
1 /* -*- mode: C++ ; c-file-style: "stroustrup" -*- *****************************
2  * Qwt Widget Library
3  * Copyright (C) 1997 Josef Wilgen
4  * Copyright (C) 2002 Uwe Rathmann
5  *
6  * This library is free software; you can redistribute it and/or
7  * modify it under the terms of the Qwt License, Version 1.0
8  *****************************************************************************/
9 
10 #ifndef QWT_SCALE_DIV_H
11 #define QWT_SCALE_DIV_H
12 
13 #include "qwt_global.h"
14 #include <qlist.h>
15 
16 class QwtInterval;
17 
34 {
35 public:
37  enum TickType
38  {
40  NoTick = -1,
41 
44 
47 
50 
52  NTickTypes
53  };
54 
55  explicit QwtScaleDiv( double lowerBound = 0.0,
56  double upperBound = 0.0 );
57 
58  explicit QwtScaleDiv( const QwtInterval &, QList<double>[NTickTypes] );
59 
60  explicit QwtScaleDiv( double lowerBound, double upperBound,
61  QList<double>[NTickTypes] );
62 
63  explicit QwtScaleDiv( double lowerBound, double upperBound,
64  const QList<double> &minorTicks, const QList<double> &mediumTicks,
65  const QList<double> &majorTicks );
66 
67  bool operator==( const QwtScaleDiv & ) const;
68  bool operator!=( const QwtScaleDiv & ) const;
69 
70  void setInterval( double lowerBound, double upperBound );
71  void setInterval( const QwtInterval & );
72  QwtInterval interval() const;
73 
74  void setLowerBound( double );
75  double lowerBound() const;
76 
77  void setUpperBound( double );
78  double upperBound() const;
79 
80  double range() const;
81 
82  bool contains( double value ) const;
83 
84  void setTicks( int tickType, const QList<double> & );
85  QList<double> ticks( int tickType ) const;
86 
87  bool isEmpty() const;
88  bool isIncreasing() const;
89 
90  void invert();
91  QwtScaleDiv inverted() const;
92 
93  QwtScaleDiv bounded( double lowerBound, double upperBound ) const;
94 
95 private:
96  double d_lowerBound;
97  double d_upperBound;
98  QList<double> d_ticks[NTickTypes];
99 };
100 
101 Q_DECLARE_TYPEINFO( QwtScaleDiv, Q_MOVABLE_TYPE );
102 
103 #ifndef QT_NO_DEBUG_STREAM
104 QWT_EXPORT QDebug operator<<( QDebug, const QwtScaleDiv & );
105 #endif
106 
107 #endif
enum MQTTPropertyCodes value
constexpr bool operator!=(const optional< T > &lhs, const optional< U > &rhs)
relop
Definition: sol.hpp:5324
bool operator==(fp x, fp y)
Definition: format-inl.h:1167
A class representing an interval.
Definition: qwt_interval.h:22
#define QWT_EXPORT
Definition: qwt_global.h:38
A class representing a scale division.
Definition: qwt_scale_div.h:33
TickType
Scale tick types.
Definition: qwt_scale_div.h:37
Q_DECLARE_TYPEINFO(QwtScaleDiv, Q_MOVABLE_TYPE)
double d_upperBound
Definition: qwt_scale_div.h:97
QWT_EXPORT QDebug operator<<(QDebug, const QwtScaleDiv &)
double d_lowerBound
Definition: qwt_scale_div.h:96


plotjuggler
Author(s): Davide Faconti
autogenerated on Sun Dec 6 2020 03:48:10