QCPPainter Class Reference

#include </home/florent/devel/release/src/gepetto-viewer/plugins/pyqcustomplot/qcustomplot-1.3.2/qcustomplot.h>

Inheritance diagram for QCPPainter:
Collaboration diagram for QCPPainter:

Public Types

enum  PainterMode {
  pmDefault = 0x00, pmVectorized = 0x01, pmNoCaching = 0x02, pmNonCosmetic = 0x04,
  pmDefault = 0x00, pmVectorized = 0x01, pmNoCaching = 0x02, pmNonCosmetic = 0x04,
  pmDefault = 0x00, pmVectorized = 0x01, pmNoCaching = 0x02, pmNonCosmetic = 0x04
}
 
enum  PainterMode {
  pmDefault = 0x00, pmVectorized = 0x01, pmNoCaching = 0x02, pmNonCosmetic = 0x04,
  pmDefault = 0x00, pmVectorized = 0x01, pmNoCaching = 0x02, pmNonCosmetic = 0x04,
  pmDefault = 0x00, pmVectorized = 0x01, pmNoCaching = 0x02, pmNonCosmetic = 0x04
}
 
enum  PainterMode {
  pmDefault = 0x00, pmVectorized = 0x01, pmNoCaching = 0x02, pmNonCosmetic = 0x04,
  pmDefault = 0x00, pmVectorized = 0x01, pmNoCaching = 0x02, pmNonCosmetic = 0x04,
  pmDefault = 0x00, pmVectorized = 0x01, pmNoCaching = 0x02, pmNonCosmetic = 0x04
}
 

Public Member Functions

 QCPPainter ()
 
 QCPPainter (QPaintDevice *device)
 
 ~QCPPainter ()
 
bool antialiasing () const
 
PainterModes modes () const
 
void setAntialiasing (bool enabled)
 
void setMode (PainterMode mode, bool enabled=true)
 
void setModes (PainterModes modes)
 
bool begin (QPaintDevice *device)
 
void setPen (const QPen &pen)
 
void setPen (const QColor &color)
 
void setPen (Qt::PenStyle penStyle)
 
void drawLine (const QLineF &line)
 
void drawLine (const QPointF &p1, const QPointF &p2)
 
void save ()
 
void restore ()
 
void makeNonCosmetic ()
 
 QCPPainter ()
 
 QCPPainter (QPaintDevice *device)
 
bool antialiasing () const
 
PainterModes modes () const
 
void setAntialiasing (bool enabled)
 
void setMode (PainterMode mode, bool enabled=true)
 
void setModes (PainterModes modes)
 
bool begin (QPaintDevice *device)
 
void setPen (const QPen &pen)
 
void setPen (const QColor &color)
 
void setPen (Qt::PenStyle penStyle)
 
void drawLine (const QLineF &line)
 
void drawLine (const QPointF &p1, const QPointF &p2)
 
void save ()
 
void restore ()
 
void makeNonCosmetic ()
 
 QCPPainter ()
 
 QCPPainter (QPaintDevice *device)
 
 ~QCPPainter ()
 
bool antialiasing () const
 
PainterModes modes () const
 
void setAntialiasing (bool enabled)
 
void setMode (PainterMode mode, bool enabled=true)
 
void setModes (PainterModes modes)
 
bool begin (QPaintDevice *device)
 
void setPen (const QPen &pen)
 
void setPen (const QColor &color)
 
void setPen (Qt::PenStyle penStyle)
 
void drawLine (const QLineF &line)
 
void drawLine (const QPointF &p1, const QPointF &p2)
 
void save ()
 
void restore ()
 
void makeNonCosmetic ()
 

Protected Attributes

PainterModes mModes
 
bool mIsAntialiasing
 
QStack< bool > mAntialiasingStack
 

Member Enumeration Documentation

◆ PainterMode [1/3]

Defines special modes the painter can operate in. They disable or enable certain subsets of features/fixes/workarounds, depending on whether they are wanted on the respective output device.

Enumerator
pmDefault 

0x00 Default mode for painting on screen devices

pmVectorized 

0x01 Mode for vectorized painting (e.g. PDF export). For example, this prevents some antialiasing fixes.

pmNoCaching 

0x02 Mode for all sorts of exports (e.g. PNG, PDF,...). For example, this prevents using cached pixmap labels

pmNonCosmetic 

0x04 Turns pen widths 0 to 1, i.e. disables cosmetic pens. (A cosmetic pen is always drawn with width 1 pixel in the vector image/pdf viewer, independent of zoom.)

pmDefault 

0x00 Default mode for painting on screen devices

pmVectorized 

0x01 Mode for vectorized painting (e.g. PDF export). For example, this prevents some antialiasing fixes.

pmNoCaching 

0x02 Mode for all sorts of exports (e.g. PNG, PDF,...). For example, this prevents using cached pixmap labels

pmNonCosmetic 

0x04 Turns pen widths 0 to 1, i.e. disables cosmetic pens. (A cosmetic pen is always drawn with width 1 pixel in the vector image/pdf viewer, independent of zoom.)

pmDefault 

0x00 Default mode for painting on screen devices

pmVectorized 

0x01 Mode for vectorized painting (e.g. PDF export). For example, this prevents some antialiasing fixes.

pmNoCaching 

0x02 Mode for all sorts of exports (e.g. PNG, PDF,...). For example, this prevents using cached pixmap labels

pmNonCosmetic 

0x04 Turns pen widths 0 to 1, i.e. disables cosmetic pens. (A cosmetic pen is always drawn with width 1 pixel in the vector image/pdf viewer, independent of zoom.)

◆ PainterMode [2/3]

Defines special modes the painter can operate in. They disable or enable certain subsets of features/fixes/workarounds, depending on whether they are wanted on the respective output device.

Enumerator
pmDefault 

0x00 Default mode for painting on screen devices

pmVectorized 

0x01 Mode for vectorized painting (e.g. PDF export). For example, this prevents some antialiasing fixes.

pmNoCaching 

0x02 Mode for all sorts of exports (e.g. PNG, PDF,...). For example, this prevents using cached pixmap labels

pmNonCosmetic 

0x04 Turns pen widths 0 to 1, i.e. disables cosmetic pens. (A cosmetic pen is always drawn with width 1 pixel in the vector image/pdf viewer, independent of zoom.)

pmDefault 

0x00 Default mode for painting on screen devices

pmVectorized 

0x01 Mode for vectorized painting (e.g. PDF export). For example, this prevents some antialiasing fixes.

pmNoCaching 

0x02 Mode for all sorts of exports (e.g. PNG, PDF,...). For example, this prevents using cached pixmap labels

pmNonCosmetic 

0x04 Turns pen widths 0 to 1, i.e. disables cosmetic pens. (A cosmetic pen is always drawn with width 1 pixel in the vector image/pdf viewer, independent of zoom.)

pmDefault 

0x00 Default mode for painting on screen devices

pmVectorized 

0x01 Mode for vectorized painting (e.g. PDF export). For example, this prevents some antialiasing fixes.

pmNoCaching 

0x02 Mode for all sorts of exports (e.g. PNG, PDF,...). For example, this prevents using cached pixmap labels

pmNonCosmetic 

0x04 Turns pen widths 0 to 1, i.e. disables cosmetic pens. (A cosmetic pen is always drawn with width 1 pixel in the vector image/pdf viewer, independent of zoom.)

◆ PainterMode [3/3]

Defines special modes the painter can operate in. They disable or enable certain subsets of features/fixes/workarounds, depending on whether they are wanted on the respective output device.

Enumerator
pmDefault 

0x00 Default mode for painting on screen devices

pmVectorized 

0x01 Mode for vectorized painting (e.g. PDF export). For example, this prevents some antialiasing fixes.

pmNoCaching 

0x02 Mode for all sorts of exports (e.g. PNG, PDF,...). For example, this prevents using cached pixmap labels

pmNonCosmetic 

0x04 Turns pen widths 0 to 1, i.e. disables cosmetic pens. (A cosmetic pen is always drawn with width 1 pixel in the vector image/pdf viewer, independent of zoom.)

pmDefault 

0x00 Default mode for painting on screen devices

pmVectorized 

0x01 Mode for vectorized painting (e.g. PDF export). For example, this prevents some antialiasing fixes.

pmNoCaching 

0x02 Mode for all sorts of exports (e.g. PNG, PDF,...). For example, this prevents using cached pixmap labels

pmNonCosmetic 

0x04 Turns pen widths 0 to 1, i.e. disables cosmetic pens. (A cosmetic pen is always drawn with width 1 pixel in the vector image/pdf viewer, independent of zoom.)

pmDefault 

0x00 Default mode for painting on screen devices

pmVectorized 

0x01 Mode for vectorized painting (e.g. PDF export). For example, this prevents some antialiasing fixes.

pmNoCaching 

0x02 Mode for all sorts of exports (e.g. PNG, PDF,...). For example, this prevents using cached pixmap labels

pmNonCosmetic 

0x04 Turns pen widths 0 to 1, i.e. disables cosmetic pens. (A cosmetic pen is always drawn with width 1 pixel in the vector image/pdf viewer, independent of zoom.)

Constructor & Destructor Documentation

◆ QCPPainter() [1/6]

QCPPainter::QCPPainter ( )

◆ QCPPainter() [2/6]

QCPPainter::QCPPainter ( QPaintDevice *  device)

◆ ~QCPPainter() [1/2]

QCPPainter::~QCPPainter ( )

◆ QCPPainter() [3/6]

QCPPainter::QCPPainter ( )

◆ QCPPainter() [4/6]

QCPPainter::QCPPainter ( QPaintDevice *  device)
explicit

◆ QCPPainter() [5/6]

QCPPainter::QCPPainter ( )

◆ QCPPainter() [6/6]

QCPPainter::QCPPainter ( QPaintDevice *  device)

◆ ~QCPPainter() [2/2]

QCPPainter::~QCPPainter ( )

Member Function Documentation

◆ antialiasing() [1/3]

bool QCPPainter::antialiasing ( ) const
inline

◆ antialiasing() [2/3]

bool QCPPainter::antialiasing ( ) const
inline

◆ antialiasing() [3/3]

bool QCPPainter::antialiasing ( ) const
inline

◆ begin() [1/3]

bool QCPPainter::begin ( QPaintDevice *  device)

◆ begin() [2/3]

bool QCPPainter::begin ( QPaintDevice *  device)

◆ begin() [3/3]

bool QCPPainter::begin ( QPaintDevice *  device)

◆ drawLine() [1/6]

void QCPPainter::drawLine ( const QLineF &  line)

◆ drawLine() [2/6]

void QCPPainter::drawLine ( const QLineF &  line)

◆ drawLine() [3/6]

void QCPPainter::drawLine ( const QPointF &  p1,
const QPointF &  p2 
)
inline

◆ drawLine() [4/6]

void QCPPainter::drawLine ( const QPointF &  p1,
const QPointF &  p2 
)
inline

◆ drawLine() [5/6]

void QCPPainter::drawLine ( const QLineF &  line)

◆ drawLine() [6/6]

void QCPPainter::drawLine ( const QPointF &  p1,
const QPointF &  p2 
)
inline

◆ makeNonCosmetic() [1/3]

void QCPPainter::makeNonCosmetic ( )

◆ makeNonCosmetic() [2/3]

void QCPPainter::makeNonCosmetic ( )

◆ makeNonCosmetic() [3/3]

void QCPPainter::makeNonCosmetic ( )

◆ modes() [1/3]

PainterModes QCPPainter::modes ( ) const
inline

◆ modes() [2/3]

PainterModes QCPPainter::modes ( ) const
inline

◆ modes() [3/3]

PainterModes QCPPainter::modes ( ) const
inline

◆ restore() [1/3]

void QCPPainter::restore ( )

◆ restore() [2/3]

void QCPPainter::restore ( )

◆ restore() [3/3]

void QCPPainter::restore ( )

◆ save() [1/3]

void QCPPainter::save ( )

◆ save() [2/3]

void QCPPainter::save ( )

◆ save() [3/3]

void QCPPainter::save ( )

◆ setAntialiasing() [1/3]

void QCPPainter::setAntialiasing ( bool  enabled)

◆ setAntialiasing() [2/3]

void QCPPainter::setAntialiasing ( bool  enabled)

◆ setAntialiasing() [3/3]

void QCPPainter::setAntialiasing ( bool  enabled)

◆ setMode() [1/3]

void QCPPainter::setMode ( PainterMode  mode,
bool  enabled = true 
)

◆ setMode() [2/3]

void QCPPainter::setMode ( PainterMode  mode,
bool  enabled = true 
)

◆ setMode() [3/3]

void QCPPainter::setMode ( PainterMode  mode,
bool  enabled = true 
)

◆ setModes() [1/3]

void QCPPainter::setModes ( PainterModes  modes)

◆ setModes() [2/3]

void QCPPainter::setModes ( PainterModes  modes)

◆ setModes() [3/3]

void QCPPainter::setModes ( PainterModes  modes)

◆ setPen() [1/9]

void QCPPainter::setPen ( const QPen &  pen)

◆ setPen() [2/9]

void QCPPainter::setPen ( const QPen &  pen)

◆ setPen() [3/9]

void QCPPainter::setPen ( const QColor &  color)

◆ setPen() [4/9]

void QCPPainter::setPen ( const QColor &  color)

◆ setPen() [5/9]

void QCPPainter::setPen ( Qt::PenStyle  penStyle)

◆ setPen() [6/9]

void QCPPainter::setPen ( Qt::PenStyle  penStyle)

◆ setPen() [7/9]

void QCPPainter::setPen ( const QPen &  pen)

◆ setPen() [8/9]

void QCPPainter::setPen ( const QColor &  color)

◆ setPen() [9/9]

void QCPPainter::setPen ( Qt::PenStyle  penStyle)

Member Data Documentation

◆ mAntialiasingStack

QStack< bool > QCPPainter::mAntialiasingStack
protected

◆ mIsAntialiasing

bool QCPPainter::mIsAntialiasing
protected

◆ mModes

PainterModes QCPPainter::mModes
protected

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