qwt_point_mapper.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_POINT_MAPPER_H
11 #define QWT_POINT_MAPPER_H
12 
13 #include "qwt_global.h"
14 
15 class QwtScaleMap;
16 template <typename T> class QwtSeriesData;
17 class QPolygonF;
18 class QPointF;
19 class QRectF;
20 class QPolygon;
21 class QPen;
22 class QImage;
23 
33 {
34 public:
40  {
42  RoundPoints = 0x01,
43 
48  WeedOutPoints = 0x02,
49 
68  WeedOutIntermediatePoints = 0x04
69  };
70 
75  typedef QFlags<TransformationFlag> TransformationFlags;
76 
78  ~QwtPointMapper();
79 
80  void setFlags( TransformationFlags );
81  TransformationFlags flags() const;
82 
83  void setFlag( TransformationFlag, bool on = true );
84  bool testFlag( TransformationFlag ) const;
85 
86  void setBoundingRect( const QRectF & );
87  QRectF boundingRect() const;
88 
89  QPolygonF toPolygonF( const QwtScaleMap &xMap, const QwtScaleMap &yMap,
90  const QwtSeriesData<QPointF> *series, int from, int to ) const;
91 
92  QPolygon toPolygon( const QwtScaleMap &xMap, const QwtScaleMap &yMap,
93  const QwtSeriesData<QPointF> *series, int from, int to ) const;
94 
95  QPolygon toPoints( const QwtScaleMap &xMap, const QwtScaleMap &yMap,
96  const QwtSeriesData<QPointF> *series, int from, int to ) const;
97 
98  QPolygonF toPointsF( const QwtScaleMap &xMap, const QwtScaleMap &yMap,
99  const QwtSeriesData<QPointF> *series, int from, int to ) const;
100 
101  QImage toImage( const QwtScaleMap &xMap, const QwtScaleMap &yMap,
102  const QwtSeriesData<QPointF> *series, int from, int to,
103  const QPen &, bool antialiased, uint numThreads ) const;
104 
105 private:
106  Q_DISABLE_COPY(QwtPointMapper)
107 
108  class PrivateData;
109  PrivateData *d_data;
110 };
111 
112 Q_DECLARE_OPERATORS_FOR_FLAGS( QwtPointMapper::TransformationFlags )
113 
114 #endif
QFlags< TransformationFlag > TransformationFlags
Flags affecting the transformation process.
TransformationFlag
Flags affecting the transformation process.
#define QWT_EXPORT
Definition: qwt_global.h:38
Abstract interface for iterating over samples.
void setFlag(T &Flags, typename T::enum_type flag, bool on=true)
Definition: ads_globals.h:230
A scale map.
Definition: qwt_scale_map.h:26
A helper class for translating a series of points.


plotjuggler
Author(s): Davide Faconti
autogenerated on Sun Dec 6 2020 03:48:10