Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
qwt
src
qwt_plot_spectrocurve.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_CURVE_3D_H
11
#define QWT_PLOT_CURVE_3D_H
12
13
#include "
qwt_global.h
"
14
#include "
qwt_plot_seriesitem.h
"
15
#include "
qwt_series_data.h
"
16
17
class
QwtSymbol
;
18
class
QwtColorMap
;
19
24
class
QWT_EXPORT
QwtPlotSpectroCurve
:
25
public
QwtPlotSeriesItem
,
QwtSeriesStore
<QwtPoint3D>
26
{
27
public
:
29
enum
PaintAttribute
30
{
32
ClipPoints = 1
33
};
34
36
typedef
QFlags<PaintAttribute>
PaintAttributes
;
37
38
explicit
QwtPlotSpectroCurve
(
const
QString &title = QString() );
39
explicit
QwtPlotSpectroCurve
(
const
QwtText
&title );
40
41
virtual
~
QwtPlotSpectroCurve
();
42
43
virtual
int
rtti
()
const
;
44
45
void
setPaintAttribute(
PaintAttribute
,
bool
on =
true
);
46
bool
testPaintAttribute(
PaintAttribute
)
const
;
47
48
void
setSamples(
const
QVector<QwtPoint3D> & );
49
void
setSamples(
QwtSeriesData<QwtPoint3D>
* );
50
51
52
void
setColorMap(
QwtColorMap
* );
53
const
QwtColorMap
*colorMap()
const
;
54
55
void
setColorRange(
const
QwtInterval
& );
56
QwtInterval
& colorRange()
const
;
57
58
virtual
void
drawSeries
( QPainter *,
59
const
QwtScaleMap
&xMap,
const
QwtScaleMap
&yMap,
60
const
QRectF &canvasRect,
int
from,
int
to )
const
;
61
62
void
setPenWidth(
double
width);
63
double
penWidth()
const
;
64
65
protected
:
66
virtual
void
drawDots( QPainter *,
67
const
QwtScaleMap
&xMap,
const
QwtScaleMap
&yMap,
68
const
QRectF &canvasRect,
int
from,
int
to )
const
;
69
70
private
:
71
void
init();
72
73
class
PrivateData
;
74
PrivateData
*
d_data
;
75
};
76
77
Q_DECLARE_OPERATORS_FOR_FLAGS(
QwtPlotSpectroCurve::PaintAttributes
)
78
79
#endif
QwtPlotItem::rtti
virtual int rtti() const
Definition:
qwt_plot_item.cpp:120
qwt_series_data.h
QwtInterval
A class representing an interval.
Definition:
qwt_interval.h:26
QWT_EXPORT
#define QWT_EXPORT
Definition:
qwt_global.h:38
QwtSeriesData< QwtPoint3D >
QwtPlotSpectroCurve::PaintAttribute
PaintAttribute
Paint attributes.
Definition:
qwt_plot_spectrocurve.h:29
QwtSymbol
A class for drawing symbols.
Definition:
qwt_symbol.h:30
qwt_plot_seriesitem.h
QwtPlotSpectroCurve::d_data
PrivateData * d_data
Definition:
qwt_plot_spectrocurve.h:73
QwtPlotSpectroCurve::PrivateData
Definition:
qwt_plot_spectrocurve.cpp:16
qwt_global.h
QwtSeriesStore
Class storing a QwtSeriesData object.
Definition:
qwt_series_store.h:65
QwtPlotSeriesItem::drawSeries
virtual void drawSeries(QPainter *painter, const QwtScaleMap &xMap, const QwtScaleMap &yMap, const QRectF &canvasRect, int from, int to) const =0
QwtText
A class representing a text.
Definition:
qwt_text.h:51
QwtPlotSpectroCurve::PaintAttributes
QFlags< PaintAttribute > PaintAttributes
Paint attributes.
Definition:
qwt_plot_spectrocurve.h:36
QwtColorMap
QwtColorMap is used to map values into colors.
Definition:
qwt_color_map.h:33
QwtScaleMap
A scale map.
Definition:
qwt_scale_map.h:30
QwtPlotSeriesItem
Base class for plot items representing a series of samples.
Definition:
qwt_plot_seriesitem.h:22
QwtPlotSpectroCurve
Curve that displays 3D points as dots, where the z coordinate is mapped to a color.
Definition:
qwt_plot_spectrocurve.h:24
plotjuggler
Author(s): Davide Faconti
autogenerated on Sat Jul 6 2019 03:44:17