qwt_vectorfield_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_VECTOR_FIELD_SYMBOL_H
11 #define QWT_VECTOR_FIELD_SYMBOL_H
12 
13 #include "qwt_global.h"
14 
15 class QPainter;
16 class QPainterPath;
17 
33 {
34  public:
36  virtual ~QwtVectorFieldSymbol();
37 
42  virtual void setLength( qreal length ) = 0;
43 
48  virtual qreal length() const = 0;
49 
51  virtual void paint( QPainter* ) const = 0;
52 
53  private:
54  Q_DISABLE_COPY(QwtVectorFieldSymbol)
55 };
56 
62 {
63  public:
64  QwtVectorFieldArrow( qreal headWidth = 6.0, qreal tailWidth = 1.0 );
66 
67  virtual void setLength( qreal length ) QWT_OVERRIDE;
68  virtual qreal length() const QWT_OVERRIDE;
69 
70  virtual void paint( QPainter* ) const QWT_OVERRIDE;
71 
72  private:
73  class PrivateData;
75 };
76 
82 {
83  public:
84  QwtVectorFieldThinArrow( qreal headWidth = 6.0 );
86 
87  virtual void setLength( qreal length ) QWT_OVERRIDE;
88  virtual qreal length() const QWT_OVERRIDE;
89 
90  virtual void paint( QPainter* ) const QWT_OVERRIDE;
91 
92  private:
93  class PrivateData;
95 };
96 
97 #endif
QwtVectorFieldArrow
Definition: qwt_vectorfield_symbol.h:61
QwtVectorFieldThinArrow::PrivateData
Definition: qwt_vectorfield_symbol.cpp:100
qwt_global.h
QwtVectorFieldThinArrow
Definition: qwt_vectorfield_symbol.h:81
QwtVectorFieldSymbol::setLength
virtual void setLength(qreal length)=0
QwtVectorFieldArrow::PrivateData
Definition: qwt_vectorfield_symbol.cpp:25
QwtVectorFieldArrow::m_data
PrivateData * m_data
Definition: qwt_vectorfield_symbol.h:73
QwtVectorFieldSymbol::length
virtual qreal length() const =0
QwtVectorFieldSymbol::paint
virtual void paint(QPainter *) const =0
Draw the symbol/arrow.
QWT_OVERRIDE
#define QWT_OVERRIDE
Definition: qwt_global.h:53
QWT_EXPORT
#define QWT_EXPORT
Definition: qwt_global.h:38
QwtVectorFieldThinArrow::m_data
PrivateData * m_data
Definition: qwt_vectorfield_symbol.h:93
QwtVectorFieldSymbol
Definition: qwt_vectorfield_symbol.h:32


plotjuggler
Author(s): Davide Faconti
autogenerated on Sun Aug 11 2024 02:24:25