Qwt User's Guide: qwt_interval_symbol.h Source File

Qwt User's Guide 6.2.0

qwt_interval_symbol.h
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
27 class QWT_EXPORT QwtIntervalSymbol
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 );
59 QwtIntervalSymbol( const QwtIntervalSymbol& );
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;
85 PrivateData* m_data;
86 };
87
88 #endif
QwtIntervalSymbol
A drawing primitive for displaying an interval like an error bar.
Definition: qwt_interval_symbol.h:28
QwtIntervalSymbol::Style
Style
Symbol style.
Definition: qwt_interval_symbol.h:32
QwtIntervalSymbol::Bar
@ Bar
Definition: qwt_interval_symbol.h:40
QwtIntervalSymbol::Box
@ Box
Definition: qwt_interval_symbol.h:47