QWT API (English) 7.0.1
Qt Widget Library for Technical Applications - English API Documentation
Loading...
Searching...
No Matches
Classes | Public Types | Public Member Functions | List of all members
QwtPointMapper Class Reference

A helper class for translating a series of points. More...

#include <qwt_point_mapper.h>

Classes

class  PrivateData
 

Public Types

enum  TransformationFlag { RoundPoints = 0x01 , WeedOutPoints = 0x02 , WeedOutIntermediatePoints = 0x04 }
 Flags affecting the transformation process. More...
 

Public Member Functions

 QwtPointMapper ()
 Constructor.
 
 ~QwtPointMapper ()
 Destructor.
 
void setFlags (TransformationFlags)
 Set the flags affecting the transformation process.
 
TransformationFlags flags () const
 Get the flags affecting the transformation process.
 
void setFlag (TransformationFlag, bool on=true)
 Modify a flag affecting the transformation process.
 
bool testFlag (TransformationFlag) const
 Test if a flag is set.
 
void setBoundingRect (const QRectF &)
 Set a bounding rectangle for the point mapping algorithm.
 
QRectF boundingRect () const
 Get the bounding rectangle.
 
QPolygonF toPolygonF (const QwtScaleMap &xMap, const QwtScaleMap &yMap, const QwtSeriesData< QPointF > *series, int from, int to) const
 Translate a series of points into a QPolygonF.
 
QPolygon toPolygon (const QwtScaleMap &xMap, const QwtScaleMap &yMap, const QwtSeriesData< QPointF > *series, int from, int to) const
 Translate a series of points into a QPolygon.
 
QPolygon toPoints (const QwtScaleMap &xMap, const QwtScaleMap &yMap, const QwtSeriesData< QPointF > *series, int from, int to) const
 Translate a series of points into a QPolygon (scattered points)
 
QPolygonF toPointsF (const QwtScaleMap &xMap, const QwtScaleMap &yMap, const QwtSeriesData< QPointF > *series, int from, int to) const
 Translate a series into a QPolygonF (scattered points)
 
QImage toImage (const QwtScaleMap &xMap, const QwtScaleMap &yMap, const QwtSeriesData< QPointF > *series, int from, int to, const QPen &, bool antialiased, uint numThreads) const
 Translate a series into a QImage.
 

Detailed Description

A helper class for translating a series of points.

Member Enumeration Documentation

◆ TransformationFlag

Flags affecting the transformation process.

Enumerator
RoundPoints 

Round points to integer values

WeedOutPoints 

Try to remove points, that are translated to the same position

WeedOutIntermediatePoints 

An even more aggressive weeding algorithm.

Constructor & Destructor Documentation

◆ QwtPointMapper()

QwtPointMapper::QwtPointMapper ( )

Constructor.

◆ ~QwtPointMapper()

QwtPointMapper::~QwtPointMapper ( )

Destructor.

Member Function Documentation

◆ boundingRect()

QRectF QwtPointMapper::boundingRect ( ) const

Get the bounding rectangle.

◆ flags()

QwtPointMapper::TransformationFlags QwtPointMapper::flags ( ) const

Get the flags affecting the transformation process.

◆ setBoundingRect()

void QwtPointMapper::setBoundingRect ( const QRectF &  rect)

Set a bounding rectangle for the point mapping algorithm.

◆ setFlag()

void QwtPointMapper::setFlag ( TransformationFlag  flag,
bool  on = true 
)

Modify a flag affecting the transformation process.

◆ setFlags()

void QwtPointMapper::setFlags ( TransformationFlags  flags)

Set the flags affecting the transformation process.

◆ testFlag()

bool QwtPointMapper::testFlag ( TransformationFlag  flag) const

Test if a flag is set.

◆ toImage()

QImage QwtPointMapper::toImage ( const QwtScaleMap xMap,
const QwtScaleMap yMap,
const QwtSeriesData< QPointF > *  series,
int  from,
int  to,
const QPen &  pen,
bool  antialiased,
uint  numThreads 
) const

Translate a series into a QImage.

◆ toPoints()

QPolygon QwtPointMapper::toPoints ( const QwtScaleMap xMap,
const QwtScaleMap yMap,
const QwtSeriesData< QPointF > *  series,
int  from,
int  to 
) const

Translate a series of points into a QPolygon (scattered points)

◆ toPointsF()

QPolygonF QwtPointMapper::toPointsF ( const QwtScaleMap xMap,
const QwtScaleMap yMap,
const QwtSeriesData< QPointF > *  series,
int  from,
int  to 
) const

Translate a series into a QPolygonF (scattered points)

◆ toPolygon()

QPolygon QwtPointMapper::toPolygon ( const QwtScaleMap xMap,
const QwtScaleMap yMap,
const QwtSeriesData< QPointF > *  series,
int  from,
int  to 
) const

Translate a series of points into a QPolygon.

◆ toPolygonF()

QPolygonF QwtPointMapper::toPolygonF ( const QwtScaleMap xMap,
const QwtScaleMap yMap,
const QwtSeriesData< QPointF > *  series,
int  from,
int  to 
) const

Translate a series of points into a QPolygonF.


The documentation for this class was generated from the following files: