3rdparty
qwt
src
qwt_compass.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_COMPASS_H
11
#define QWT_COMPASS_H
12
13
#include "
qwt_global.h
"
14
#include "
qwt_dial.h
"
15
#include "
qwt_round_scale_draw.h
"
16
17
class
QwtCompassRose
;
18
class
QString;
19
template
<
class
Key,
class
T >
class
QMap
;
20
21
32
class
QWT_EXPORT
QwtCompassScaleDraw
:
public
QwtRoundScaleDraw
33
{
34
public
:
35
explicit
QwtCompassScaleDraw
();
36
explicit
QwtCompassScaleDraw
(
const
QMap< double, QString >
&
map
);
37
38
virtual
~
QwtCompassScaleDraw
();
39
40
void
setLabelMap(
const
QMap< double, QString >
&
map
);
41
QMap< double, QString >
labelMap()
const
;
42
43
virtual
QwtText
label
(
double
value )
const
QWT_OVERRIDE
;
44
45
private
:
46
class
PrivateData
;
47
PrivateData
*
m_data
;
48
};
49
61
class
QWT_EXPORT
QwtCompass
:
public
QwtDial
62
{
63
Q_OBJECT
64
65
public
:
66
explicit
QwtCompass
( QWidget* parent = NULL );
67
virtual
~
QwtCompass
();
68
69
void
setRose(
QwtCompassRose
* rose );
70
const
QwtCompassRose
* rose()
const
;
71
QwtCompassRose
* rose();
72
73
protected
:
74
virtual
void
drawRose( QPainter*,
const
QPointF& center,
75
double
radius,
double
north, QPalette::ColorGroup )
const
;
76
77
virtual
void
drawScaleContents
( QPainter*,
78
const
QPointF& center,
double
radius )
const
QWT_OVERRIDE
;
79
80
virtual
void
keyPressEvent
( QKeyEvent* )
QWT_OVERRIDE
;
81
82
private
:
83
class
PrivateData
;
84
PrivateData
*
m_data
;
85
};
86
87
#endif
QwtRoundScaleDraw
A class for drawing round scales.
Definition:
qwt_round_scale_draw.h:31
qwt_dial.h
QwtCompass::PrivateData
Definition:
qwt_compass.cpp:133
QwtDial
QwtDial class provides a rounded range control.
Definition:
qwt_dial.h:50
QwtCompassScaleDraw::m_data
PrivateData * m_data
Definition:
qwt_compass.h:46
QwtAbstractSlider::keyPressEvent
virtual void keyPressEvent(QKeyEvent *) QWT_OVERRIDE
Definition:
qwt_abstract_slider.cpp:370
qwt_global.h
QwtCompass
A Compass Widget.
Definition:
qwt_compass.h:61
QwtCompassScaleDraw::PrivateData
Definition:
qwt_compass.cpp:17
QMap
Definition:
qwt_compass.h:19
QwtText
A class representing a text.
Definition:
qwt_text.h:51
range_format::map
@ map
QwtDial::drawScaleContents
virtual void drawScaleContents(QPainter *painter, const QPointF ¢er, double radius) const
Definition:
qwt_dial.cpp:506
QwtAbstractScaleDraw::label
virtual QwtText label(double) const
Convert a value into its representing label.
Definition:
qwt_abstract_scale_draw.cpp:375
qwt_round_scale_draw.h
QWT_OVERRIDE
#define QWT_OVERRIDE
Definition:
qwt_global.h:53
QWT_EXPORT
#define QWT_EXPORT
Definition:
qwt_global.h:38
QwtCompass::m_data
PrivateData * m_data
Definition:
qwt_compass.h:83
QwtCompassScaleDraw
A special scale draw made for QwtCompass.
Definition:
qwt_compass.h:32
QwtCompassRose
Abstract base class for a compass rose.
Definition:
qwt_compass_rose.h:21
plotjuggler
Author(s): Davide Faconti
autogenerated on Mon Nov 11 2024 03:23:45