qwt_point_mapper.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_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 
71  Q_DECLARE_FLAGS( TransformationFlags, TransformationFlag )
72 
74  ~QwtPointMapper();
75 
76  void setFlags( TransformationFlags );
77  TransformationFlags flags() const;
78 
79  void setFlag( TransformationFlag, bool on = true );
80  bool testFlag( TransformationFlag ) const;
81 
82  void setBoundingRect( const QRectF& );
83  QRectF boundingRect() const;
84 
85  QPolygonF toPolygonF( const QwtScaleMap& xMap, const QwtScaleMap& yMap,
86  const QwtSeriesData< QPointF >* series, int from, int to ) const;
87 
88  QPolygon toPolygon( const QwtScaleMap& xMap, const QwtScaleMap& yMap,
89  const QwtSeriesData< QPointF >* series, int from, int to ) const;
90 
91  QPolygon toPoints( const QwtScaleMap& xMap, const QwtScaleMap& yMap,
92  const QwtSeriesData< QPointF >* series, int from, int to ) const;
93 
94  QPolygonF toPointsF( const QwtScaleMap& xMap, const QwtScaleMap& yMap,
95  const QwtSeriesData< QPointF >* series, int from, int to ) const;
96 
97  QImage toImage( const QwtScaleMap& xMap, const QwtScaleMap& yMap,
98  const QwtSeriesData< QPointF >* series, int from, int to,
99  const QPen&, bool antialiased, uint numThreads ) const;
100 
101  private:
102  Q_DISABLE_COPY(QwtPointMapper)
103 
104  class PrivateData;
105  PrivateData* m_data;
106 };
107 
108 Q_DECLARE_OPERATORS_FOR_FLAGS( QwtPointMapper::TransformationFlags )
109 
110 #endif
QwtPointMapper::PrivateData
Definition: qwt_point_mapper.cpp:534
qwt_global.h
QwtPointMapper
A helper class for translating a series of points.
Definition: qwt_point_mapper.h:32
QwtSeriesData
Abstract interface for iterating over samples.
Definition: qwt_plot_barchart.h:18
QwtPointMapper::TransformationFlag
TransformationFlag
Flags affecting the transformation process.
Definition: qwt_point_mapper.h:39
QwtScaleMap
A scale map.
Definition: qwt_scale_map.h:26
QWT_EXPORT
#define QWT_EXPORT
Definition: qwt_global.h:38
ads::internal::setFlag
void setFlag(T &Flags, typename T::enum_type flag, bool on=true)
Definition: ads_globals.h:230


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