Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
qwt
src
qwt_plot_marker.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_PLOT_MARKER_H
11
#define QWT_PLOT_MARKER_H
12
13
#include <qpen.h>
14
#include <qfont.h>
15
#include <qstring.h>
16
#include <qbrush.h>
17
#include "
qwt_global.h
"
18
#include "
qwt_plot_item.h
"
19
20
class
QRectF;
21
class
QwtText
;
22
class
QwtSymbol
;
23
48
class
QWT_EXPORT
QwtPlotMarker
:
public
QwtPlotItem
49
{
50
public
:
51
56
enum
LineStyle
57
{
59
NoLine
,
60
62
HLine
,
63
65
VLine
,
66
68
Cross
69
};
70
71
explicit
QwtPlotMarker
(
const
QString &title = QString() );
72
explicit
QwtPlotMarker
(
const
QwtText
&title );
73
74
virtual
~
QwtPlotMarker
();
75
76
virtual
int
rtti
()
const
;
77
78
double
xValue()
const
;
79
double
yValue()
const
;
80
QPointF
value
()
const
;
81
82
void
setXValue(
double
);
83
void
setYValue(
double
);
84
void
setValue
(
double
,
double
);
85
void
setValue
(
const
QPointF & );
86
87
void
setLineStyle(
LineStyle
st );
88
LineStyle
lineStyle()
const
;
89
90
void
setLinePen(
const
QColor &, qreal width = 0.0, Qt::PenStyle = Qt::SolidLine );
91
void
setLinePen(
const
QPen &p );
92
const
QPen &linePen()
const
;
93
94
void
setSymbol(
const
QwtSymbol
* );
95
const
QwtSymbol
*symbol()
const
;
96
97
void
setLabel(
const
QwtText
& );
98
QwtText
label()
const
;
99
100
void
setLabelAlignment( Qt::Alignment );
101
Qt::Alignment labelAlignment()
const
;
102
103
void
setLabelOrientation( Qt::Orientation );
104
Qt::Orientation labelOrientation()
const
;
105
106
void
setSpacing(
int
);
107
int
spacing()
const
;
108
109
virtual
void
draw
( QPainter *,
110
const
QwtScaleMap
&xMap,
const
QwtScaleMap
&yMap,
111
const
QRectF & )
const
;
112
113
virtual
QRectF
boundingRect
()
const
;
114
115
virtual
QwtGraphic
legendIcon
(
int
index,
const
QSizeF & )
const
;
116
117
protected
:
118
virtual
void
drawLines( QPainter *,
119
const
QRectF &,
const
QPointF & )
const
;
120
121
virtual
void
drawSymbol( QPainter *,
122
const
QRectF &,
const
QPointF & )
const
;
123
124
virtual
void
drawLabel( QPainter *,
125
const
QRectF &,
const
QPointF & )
const
;
126
127
private
:
128
129
class
PrivateData
;
130
PrivateData
*
d_data
;
131
};
132
133
#endif
QwtPlotMarker::PrivateData
Definition:
qwt_plot_marker.cpp:18
QwtPlotMarker::d_data
PrivateData * d_data
Definition:
qwt_plot_marker.h:129
qwt_plot_item.h
QwtPlotItem::draw
virtual void draw(QPainter *painter, const QwtScaleMap &xMap, const QwtScaleMap &yMap, const QRectF &canvasRect) const =0
Draw the item.
QwtPlotItem::rtti
virtual int rtti() const
Definition:
qwt_plot_item.cpp:120
QWT_EXPORT
#define QWT_EXPORT
Definition:
qwt_global.h:38
setValue
TFSIMD_FORCE_INLINE void setValue(const tfScalar &x, const tfScalar &y, const tfScalar &z)
QwtSymbol
A class for drawing symbols.
Definition:
qwt_symbol.h:30
qwt_global.h
value
T value
QwtText
A class representing a text.
Definition:
qwt_text.h:51
QwtGraphic
A paint device for scalable graphics.
Definition:
qwt_graphic.h:74
QwtPlotItem::legendIcon
virtual QwtGraphic legendIcon(int index, const QSizeF &) const
Definition:
qwt_plot_item.cpp:371
QwtPlotMarker::HLine
A horizontal line.
Definition:
qwt_plot_marker.h:62
QwtScaleMap
A scale map.
Definition:
qwt_scale_map.h:30
QwtPlotMarker::NoLine
No line.
Definition:
qwt_plot_marker.h:59
QwtPlotItem
Base class for items on the plot canvas.
Definition:
qwt_plot_item.h:64
QwtPlotMarker::LineStyle
LineStyle
Definition:
qwt_plot_marker.h:56
QwtPlotMarker
A class for drawing markers.
Definition:
qwt_plot_marker.h:48
QwtPlotMarker::VLine
A vertical line.
Definition:
qwt_plot_marker.h:65
QwtPlotItem::boundingRect
virtual QRectF boundingRect() const
Definition:
qwt_plot_item.cpp:537
plotjuggler
Author(s): Davide Faconti
autogenerated on Sat Jul 6 2019 03:44:17