qwt_interval_symbol.h
Go to the documentation of this file.
1 /******************************************************************************
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 
61  virtual ~QwtIntervalSymbol();
62 
63  QwtIntervalSymbol& operator=( const QwtIntervalSymbol& );
64  bool operator==( const QwtIntervalSymbol& ) const;
65  bool operator!=( const QwtIntervalSymbol& ) const;
66 
67  void setWidth( int );
68  int width() const;
69 
70  void setBrush( const QBrush& );
71  const QBrush& brush() const;
72 
73  void setPen( const QColor&, qreal width = 0.0, Qt::PenStyle = Qt::SolidLine );
74  void setPen( const QPen& );
75  const QPen& pen() const;
76 
77  void setStyle( Style );
78  Style style() const;
79 
80  virtual void draw( QPainter*, Qt::Orientation,
81  const QPointF& from, const QPointF& to ) const;
82 
83  private:
84  class PrivateData;
86 };
87 
88 #endif
qwt_global.h
QwtIntervalSymbol::PrivateData
Definition: qwt_interval_symbol.cpp:17
operator==
bool operator==(QwtEventPattern::MousePattern b1, QwtEventPattern::MousePattern b2)
Compare operator.
Definition: qwt_event_pattern.h:228
sol::operator!=
constexpr bool operator!=(const optional< T > &lhs, const optional< U > &rhs)
\group relop
Definition: sol.hpp:6020
QWT_EXPORT
#define QWT_EXPORT
Definition: qwt_global.h:38
QwtIntervalSymbol::Bar
@ Bar
Definition: qwt_interval_symbol.h:40
QwtIntervalSymbol
A drawing primitive for displaying an interval like an error bar.
Definition: qwt_interval_symbol.h:27
QwtIntervalSymbol::Box
@ Box
Definition: qwt_interval_symbol.h:47
QwtIntervalSymbol::Style
Style
Symbol style.
Definition: qwt_interval_symbol.h:31
QwtIntervalSymbol::m_data
PrivateData * m_data
Definition: qwt_interval_symbol.h:84


plotjuggler
Author(s): Davide Faconti
autogenerated on Mon Nov 11 2024 03:23:45