QWT API (English)
7.0.1
Qt Widget Library for Technical Applications - English API Documentation
Loading...
Searching...
No Matches
src
plot
qwt_plot_spectrocurve.h
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
* Modified by ChenZongYan in 2024 <czy.t@163.com>
10
* Summary of major modifications (see ChangeLog.md for full history):
11
* 1. CMake build system & C++11 throughout.
12
* 2. Core panner/ zoomer refactored:
13
* - QwtPanner → QwtCachePanner (pixmap-cache version)
14
* - New real-time QwtPlotPanner derived from QwtPicker.
15
* 3. Zoomer supports multi-axis.
16
* 4. Parasite-plot framework:
17
* - QwtFigure, QwtPlotParasiteLayout, QwtPlotTransparentCanvas,
18
* - QwtPlotScaleEventDispatcher, built-in pan/zoom on axis.
19
* 5. New picker: QwtPlotSeriesDataPicker (works with date axis).
20
* 6. Raster & color-map extensions:
21
* - QwtGridRasterData (2-D table + interpolation)
22
* - QwtLinearColorMap::stopColors(), stopPos() API rename.
23
* 7. Bar-chart: expose pen/brush control.
24
* 8. Amalgamated build: single QwtPlot.h / QwtPlot.cpp pair in src-amalgamate.
25
*****************************************************************************/
26
27
#ifndef QWT_PLOT_CURVE_3D_H
28
#define QWT_PLOT_CURVE_3D_H
29
30
#include "qwt_global.h"
31
#include "qwt_plot_seriesitem.h"
32
33
class
QwtColorMap
;
34
47
class
QWT_EXPORT
QwtPlotSpectroCurve
48
:
public
QwtPlotSeriesItem
49
,
public
QwtSeriesStore
< QwtPoint3D >
50
{
51
public
:
61
enum
PaintAttribute
62
{
64
ClipPoints = 1
65
};
66
67
Q_DECLARE_FLAGS( PaintAttributes, PaintAttribute )
68
69
70
explicit
QwtPlotSpectroCurve
(
const
QString& title = QString() );
72
explicit
QwtPlotSpectroCurve
(
const
QwtText
& title );
73
75
virtual
~QwtPlotSpectroCurve
();
76
78
virtual
int
rtti
()
const override
;
79
81
void
setPaintAttribute( PaintAttribute,
bool
on =
true
);
83
bool
testPaintAttribute( PaintAttribute )
const
;
84
86
void
setSamples(
const
QVector< QwtPoint3D >
& );
88
void
setSamples(
QwtSeriesData< QwtPoint3D >
* );
89
91
void
setColorMap(
QwtColorMap
* );
93
const
QwtColorMap
* colorMap()
const
;
94
96
void
setColorRange(
const
QwtInterval
& );
98
QwtInterval
& colorRange()
const
;
99
101
virtual
void
drawSeries
( QPainter*,
102
const
QwtScaleMap
& xMap,
const
QwtScaleMap
& yMap,
103
const
QRectF& canvasRect,
int
from,
int
to )
const override
;
104
106
void
setPenWidth(
double
);
108
double
penWidth()
const
;
109
110
protected
:
112
virtual
void
drawDots( QPainter*,
113
const
QwtScaleMap
& xMap,
const
QwtScaleMap
& yMap,
114
const
QRectF& canvasRect,
int
from,
int
to )
const
;
115
116
private
:
118
void
init();
119
120
class
PrivateData;
121
PrivateData* m_data;
122
};
123
124
Q_DECLARE_OPERATORS_FOR_FLAGS( QwtPlotSpectroCurve::PaintAttributes )
125
126
#endif
QVector< QwtPoint3D >
QwtColorMap
QwtColorMap is used to map values into colors.
Definition
qwt_color_map.h:62
QwtInterval
A class representing an interval.
Definition
qwt_interval.h:45
QwtPlotItem::rtti
virtual int rtti() const
Runtime type information.
Definition
qwt_plot_item.cpp:215
QwtPlotSeriesItem
Base class for plot items representing a series of samples.
Definition
qwt_plot_seriesitem.h:53
QwtPlotSeriesItem::drawSeries
virtual void drawSeries(QPainter *painter, const QwtScaleMap &xMap, const QwtScaleMap &yMap, const QRectF &canvasRect, int from, int to) const =0
Draw a subset of the samples.
QwtPlotSpectroCurve
Curve that displays 3D points as dots, where the z coordinate is mapped to a color.
Definition
qwt_plot_spectrocurve.h:50
QwtPlotSpectroCurve::PaintAttribute
PaintAttribute
Paint attributes .
Definition
qwt_plot_spectrocurve.h:62
QwtScaleMap
A scale map.
Definition
qwt_scale_map.h:52
QwtSeriesData< QwtPoint3D >
QwtSeriesStore
Class storing a QwtSeriesData object.
Definition
qwt_series_store.h:109
QwtText
A class representing a text.
Definition
qwt_text.h:93
Generated by
1.9.8