qwt_plot_spectrocurve.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_PLOT_CURVE_3D_H
11 #define QWT_PLOT_CURVE_3D_H
12 
13 #include "qwt_global.h"
14 #include "qwt_plot_seriesitem.h"
15 
16 class QwtColorMap;
17 
23  : public QwtPlotSeriesItem
24  , public QwtSeriesStore< QwtPoint3D >
25 {
26  public:
29  {
31  ClipPoints = 1
32  };
33 
34  Q_DECLARE_FLAGS( PaintAttributes, PaintAttribute )
35 
36  explicit QwtPlotSpectroCurve( const QString& title = QString() );
37  explicit QwtPlotSpectroCurve( const QwtText& title );
38 
39  virtual ~QwtPlotSpectroCurve();
40 
41  virtual int rtti() const QWT_OVERRIDE;
42 
43  void setPaintAttribute( PaintAttribute, bool on = true );
44  bool testPaintAttribute( PaintAttribute ) const;
45 
46  void setSamples( const QVector< QwtPoint3D >& );
47  void setSamples( QwtSeriesData< QwtPoint3D >* );
48 
49 
50  void setColorMap( QwtColorMap* );
51  const QwtColorMap* colorMap() const;
52 
53  void setColorRange( const QwtInterval& );
54  QwtInterval& colorRange() const;
55 
56  virtual void drawSeries( QPainter*,
57  const QwtScaleMap& xMap, const QwtScaleMap& yMap,
58  const QRectF& canvasRect, int from, int to ) const QWT_OVERRIDE;
59 
60  void setPenWidth( double );
61  double penWidth() const;
62 
63  protected:
64  virtual void drawDots( QPainter*,
65  const QwtScaleMap& xMap, const QwtScaleMap& yMap,
66  const QRectF& canvasRect, int from, int to ) const;
67 
68  private:
69  void init();
70 
71  class PrivateData;
72  PrivateData* m_data;
73 };
74 
75 Q_DECLARE_OPERATORS_FOR_FLAGS( QwtPlotSpectroCurve::PaintAttributes )
76 
77 #endif
QwtPlotSeriesItem
Base class for plot items representing a series of samples.
Definition: qwt_plot_seriesitem.h:24
QVector
Definition: qwt_clipper.h:23
qwt_global.h
QwtScaleRendererReal::penWidth
qreal penWidth(const QPainter *painter, const QwtScaleDraw *scaleDraw)
Definition: qwt_scale_draw.cpp:28
QwtInterval
A class representing an interval.
Definition: qwt_interval.h:22
QwtPlotSpectroCurve::PaintAttribute
PaintAttribute
Paint attributes.
Definition: qwt_plot_spectrocurve.h:28
QwtText
A class representing a text.
Definition: qwt_text.h:51
QwtSeriesData
Abstract interface for iterating over samples.
Definition: qwt_plot_barchart.h:18
QwtScaleMap
A scale map.
Definition: qwt_scale_map.h:26
QwtPlotSpectroCurve
Curve that displays 3D points as dots, where the z coordinate is mapped to a color.
Definition: qwt_plot_spectrocurve.h:22
qwt_plot_seriesitem.h
QWT_OVERRIDE
#define QWT_OVERRIDE
Definition: qwt_global.h:53
QWT_EXPORT
#define QWT_EXPORT
Definition: qwt_global.h:38
QwtColorMap
QwtColorMap is used to map values into colors.
Definition: qwt_color_map.h:37
QwtSeriesStore
Class storing a QwtSeriesData object.
Definition: qwt_series_store.h:66
QwtPoint3D
QwtPoint3D class defines a 3D point in double coordinates.
Definition: qwt_point_3d.h:22
QwtPlotSpectroCurve::PrivateData
Definition: qwt_plot_spectrocurve.cpp:18
QwtPlotItem::rtti
virtual int rtti() const
Definition: qwt_plot_item.cpp:136


plotjuggler
Author(s): Davide Faconti
autogenerated on Mon Nov 11 2024 03:23:46