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 #include "qwt_series_data.h"
15 #include <qimage.h>
16 
17 class QwtScaleMap;
18 class QPolygonF;
19 class QPolygon;
20 
30 {
31 public:
37  {
39  RoundPoints = 0x01,
40 
45  WeedOutPoints = 0x02,
46 
65  WeedOutIntermediatePoints = 0x04
66  };
67 
72  typedef QFlags<TransformationFlag> TransformationFlags;
73 
75  ~QwtPointMapper();
76 
77  void setFlags( TransformationFlags );
78  TransformationFlags flags() const;
79 
80  void setFlag( TransformationFlag, bool on = true );
81  bool testFlag( TransformationFlag ) const;
82 
83  void setBoundingRect( const QRectF & );
84  QRectF boundingRect() const;
85 
86  QPolygonF toPolygonF( const QwtScaleMap &xMap, const QwtScaleMap &yMap,
87  const QwtSeriesData<QPointF> *series, int from, int to ) const;
88 
89  QPolygon toPolygon( const QwtScaleMap &xMap, const QwtScaleMap &yMap,
90  const QwtSeriesData<QPointF> *series, int from, int to ) const;
91 
92  QPolygon toPoints( const QwtScaleMap &xMap, const QwtScaleMap &yMap,
93  const QwtSeriesData<QPointF> *series, int from, int to ) const;
94 
95  QPolygonF toPointsF( const QwtScaleMap &xMap, const QwtScaleMap &yMap,
96  const QwtSeriesData<QPointF> *series, int from, int to ) const;
97 
98  QImage toImage( const QwtScaleMap &xMap, const QwtScaleMap &yMap,
99  const QwtSeriesData<QPointF> *series, int from, int to,
100  const QPen &, bool antialiased, uint numThreads ) const;
101 
102 private:
103  Q_DISABLE_COPY(QwtPointMapper)
104 
105  class PrivateData;
106  PrivateData *d_data;
107 };
108 
109 Q_DECLARE_OPERATORS_FOR_FLAGS( QwtPointMapper::TransformationFlags )
110 
111 #endif
QFlags< TransformationFlag > TransformationFlags
Flags affecting the transformation process.
TransformationFlag
Flags affecting the transformation process.
#define QWT_EXPORT
Definition: qwt_global.h:38
A scale map.
Definition: qwt_scale_map.h:30
int flags
A helper class for translating a series of points.


plotjuggler
Author(s): Davide Faconti
autogenerated on Sat Jul 6 2019 03:44:17