qwt_interval_symbol.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_INTERVAL_SYMBOL_H
11 #define QWT_INTERVAL_SYMBOL_H
12 
13 #include "qwt_global.h"
14 #include <qnamespace.h>
15 
16 class QPainter;
17 class QPen;
18 class QBrush;
19 class QPointF;
20 class QColor;
21 
28 {
29 public:
31  enum Style
32  {
34  NoSymbol = -1,
35 
40  Bar,
41 
47  Box,
48 
54  UserSymbol = 1000
55  };
56 
57 public:
58  explicit QwtIntervalSymbol( Style = NoSymbol );
60  virtual ~QwtIntervalSymbol();
61 
62  QwtIntervalSymbol &operator=( const QwtIntervalSymbol & );
63  bool operator==( const QwtIntervalSymbol & ) const;
64  bool operator!=( const QwtIntervalSymbol & ) const;
65 
66  void setWidth( int );
67  int width() const;
68 
69  void setBrush( const QBrush & );
70  const QBrush& brush() const;
71 
72  void setPen( const QColor &, qreal width = 0.0, Qt::PenStyle = Qt::SolidLine );
73  void setPen( const QPen & );
74  const QPen& pen() const;
75 
76  void setStyle( Style );
77  Style style() const;
78 
79  virtual void draw( QPainter *, Qt::Orientation,
80  const QPointF& from, const QPointF& to ) const;
81 
82 private:
83  class PrivateData;
85 };
86 
87 #endif
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
#define QWT_EXPORT
Definition: qwt_global.h:38
A drawing primitive for displaying an interval like an error bar.


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