Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
3rdparty
qwt
src
qwt_vectorfield_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_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
32
class
QWT_EXPORT
QwtVectorFieldSymbol
33
{
34
public
:
35
QwtVectorFieldSymbol
();
36
virtual
~
QwtVectorFieldSymbol
();
37
38
virtual
void
setLength( qreal length ) = 0;
39
virtual
qreal length()
const
= 0;
40
41
virtual
void
paint( QPainter * )
const
= 0;
42
43
private
:
44
Q_DISABLE_COPY(
QwtVectorFieldSymbol
)
45
};
46
51
class
QWT_EXPORT
QwtVectorFieldArrow
:
public
QwtVectorFieldSymbol
52
{
53
public
:
54
QwtVectorFieldArrow
( qreal headWidth = 6.0, qreal tailWidth = 1.0 );
55
virtual
~
QwtVectorFieldArrow
()
QWT_OVERRIDE
;
56
57
virtual
void
setLength
( qreal length )
QWT_OVERRIDE
;
58
virtual
qreal
length
()
const
QWT_OVERRIDE
;
59
virtual
void
paint
( QPainter * )
const
QWT_OVERRIDE
;
60
61
private
:
62
class
PrivateData
;
63
PrivateData
*
d_data
;
64
};
65
70
class
QWT_EXPORT
QwtVectorFieldThinArrow
:
public
QwtVectorFieldSymbol
71
{
72
public
:
73
QwtVectorFieldThinArrow
( qreal headWidth = 6.0 );
74
virtual
~
QwtVectorFieldThinArrow
()
QWT_OVERRIDE
;
75
76
virtual
void
setLength
( qreal length )
QWT_OVERRIDE
;
77
virtual
qreal
length
()
const
QWT_OVERRIDE
;
78
virtual
void
paint
( QPainter * )
const
QWT_OVERRIDE
;
79
80
private
:
81
class
PrivateData
;
82
PrivateData
*
d_data
;
83
};
84
85
#endif
QwtVectorFieldSymbol::length
virtual qreal length() const =0
QwtVectorFieldArrow::d_data
PrivateData * d_data
Definition:
qwt_vectorfield_symbol.h:62
QWT_EXPORT
#define QWT_EXPORT
Definition:
qwt_global.h:38
QwtVectorFieldThinArrow
Definition:
qwt_vectorfield_symbol.h:70
QwtVectorFieldArrow::PrivateData
Definition:
qwt_vectorfield_symbol.cpp:23
QwtVectorFieldThinArrow::d_data
PrivateData * d_data
Definition:
qwt_vectorfield_symbol.h:81
qwt_global.h
QwtVectorFieldSymbol
Definition:
qwt_vectorfield_symbol.h:32
QwtVectorFieldArrow
Definition:
qwt_vectorfield_symbol.h:51
QwtVectorFieldThinArrow::PrivateData
Definition:
qwt_vectorfield_symbol.cpp:87
QwtVectorFieldSymbol::paint
virtual void paint(QPainter *) const =0
QWT_OVERRIDE
#define QWT_OVERRIDE
Definition:
qwt_global.h:53
QwtVectorFieldSymbol::setLength
virtual void setLength(qreal length)=0
plotjuggler
Author(s): Davide Faconti
autogenerated on Sun Dec 6 2020 03:48:10