QCPLayer Class Reference

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

Inheritance diagram for QCPLayer:
Collaboration diagram for QCPLayer:

Public Types

enum  LayerMode { lmLogical, lmBuffered }
 

Public Member Functions

 QCPLayer (QCustomPlot *parentPlot, const QString &layerName)
 
 ~QCPLayer ()
 
QCustomPlotparentPlot () const
 
QString name () const
 
int index () const
 
QList< QCPLayerable * > children () const
 
bool visible () const
 
void setVisible (bool visible)
 
 QCPLayer (QCustomPlot *parentPlot, const QString &layerName)
 
virtual ~QCPLayer ()
 
QCustomPlotparentPlot () const
 
QString name () const
 
int index () const
 
QList< QCPLayerable * > children () const
 
bool visible () const
 
LayerMode mode () const
 
void setVisible (bool visible)
 
void setMode (LayerMode mode)
 
void replot ()
 
 QCPLayer (QCustomPlot *parentPlot, const QString &layerName)
 
 ~QCPLayer ()
 
QCustomPlotparentPlot () const
 
QString name () const
 
int index () const
 
QList< QCPLayerable * > children () const
 
bool visible () const
 
void setVisible (bool visible)
 

Protected Member Functions

void addChild (QCPLayerable *layerable, bool prepend)
 
void removeChild (QCPLayerable *layerable)
 
void draw (QCPPainter *painter)
 
void drawToPaintBuffer ()
 
void addChild (QCPLayerable *layerable, bool prepend)
 
void removeChild (QCPLayerable *layerable)
 
void addChild (QCPLayerable *layerable, bool prepend)
 
void removeChild (QCPLayerable *layerable)
 

Protected Attributes

QCustomPlotmParentPlot
 
QString mName
 
int mIndex
 
QList< QCPLayerable * > mChildren
 
bool mVisible
 
LayerMode mMode
 
QWeakPointer< QCPAbstractPaintBuffermPaintBuffer
 

Friends

class QCustomPlot
 
class QCPLayerable
 

Member Enumeration Documentation

◆ LayerMode

Defines the different rendering modes of a layer. Depending on the mode, certain layers can be replotted individually, without the need to replot (possibly complex) layerables on other layers.

See also
setMode
Enumerator
lmLogical 

Layer is used only for rendering order, and shares paint buffer with all other adjacent logical layers.

lmBuffered 

Layer has its own paint buffer and may be replotted individually (see replot).

Constructor & Destructor Documentation

◆ QCPLayer() [1/3]

QCPLayer::QCPLayer ( QCustomPlot parentPlot,
const QString &  layerName 
)

◆ ~QCPLayer() [1/3]

QCPLayer::~QCPLayer ( )

◆ QCPLayer() [2/3]

QCPLayer::QCPLayer ( QCustomPlot parentPlot,
const QString &  layerName 
)

◆ ~QCPLayer() [2/3]

virtual QCPLayer::~QCPLayer ( )
virtual

◆ QCPLayer() [3/3]

QCPLayer::QCPLayer ( QCustomPlot parentPlot,
const QString &  layerName 
)

◆ ~QCPLayer() [3/3]

QCPLayer::~QCPLayer ( )

Member Function Documentation

◆ addChild() [1/3]

void QCPLayer::addChild ( QCPLayerable layerable,
bool  prepend 
)
protected

◆ addChild() [2/3]

void QCPLayer::addChild ( QCPLayerable layerable,
bool  prepend 
)
protected

◆ addChild() [3/3]

void QCPLayer::addChild ( QCPLayerable layerable,
bool  prepend 
)
protected

◆ children() [1/3]

QList<QCPLayerable*> QCPLayer::children ( ) const
inline

◆ children() [2/3]

QList<QCPLayerable*> QCPLayer::children ( ) const
inline

◆ children() [3/3]

QList<QCPLayerable*> QCPLayer::children ( ) const
inline

◆ draw()

void QCPLayer::draw ( QCPPainter painter)
protected

◆ drawToPaintBuffer()

void QCPLayer::drawToPaintBuffer ( )
protected

◆ index() [1/3]

int QCPLayer::index ( ) const
inline

◆ index() [2/3]

int QCPLayer::index ( ) const
inline

◆ index() [3/3]

int QCPLayer::index ( ) const
inline

◆ mode()

LayerMode QCPLayer::mode ( ) const
inline

◆ name() [1/3]

QString QCPLayer::name ( ) const
inline

◆ name() [2/3]

QString QCPLayer::name ( ) const
inline

◆ name() [3/3]

QString QCPLayer::name ( ) const
inline

◆ parentPlot() [1/3]

QCustomPlot* QCPLayer::parentPlot ( ) const
inline

◆ parentPlot() [2/3]

QCustomPlot* QCPLayer::parentPlot ( ) const
inline

◆ parentPlot() [3/3]

QCustomPlot* QCPLayer::parentPlot ( ) const
inline

◆ removeChild() [1/3]

void QCPLayer::removeChild ( QCPLayerable layerable)
protected

◆ removeChild() [2/3]

void QCPLayer::removeChild ( QCPLayerable layerable)
protected

◆ removeChild() [3/3]

void QCPLayer::removeChild ( QCPLayerable layerable)
protected

◆ replot()

void QCPLayer::replot ( )

◆ setMode()

void QCPLayer::setMode ( LayerMode  mode)

◆ setVisible() [1/3]

void QCPLayer::setVisible ( bool  visible)

◆ setVisible() [2/3]

void QCPLayer::setVisible ( bool  visible)

◆ setVisible() [3/3]

void QCPLayer::setVisible ( bool  visible)

◆ visible() [1/3]

bool QCPLayer::visible ( ) const
inline

◆ visible() [2/3]

bool QCPLayer::visible ( ) const
inline

◆ visible() [3/3]

bool QCPLayer::visible ( ) const
inline

Friends And Related Function Documentation

◆ QCPLayerable

QCPLayerable
friend

◆ QCustomPlot

QCustomPlot
friend

Member Data Documentation

◆ mChildren

QList< QCPLayerable * > QCPLayer::mChildren
protected

◆ mIndex

int QCPLayer::mIndex
protected

◆ mMode

LayerMode QCPLayer::mMode
protected

◆ mName

QString QCPLayer::mName
protected

◆ mPaintBuffer

QWeakPointer<QCPAbstractPaintBuffer> QCPLayer::mPaintBuffer
protected

◆ mParentPlot

QCustomPlot * QCPLayer::mParentPlot
protected

◆ mVisible

bool QCPLayer::mVisible
protected

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