QCPAbstractLegendItem Class Referenceabstract

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

Inheritance diagram for QCPAbstractLegendItem:
Collaboration diagram for QCPAbstractLegendItem:

Signals

void selectionChanged (bool selected)
 
void selectableChanged (bool selectable)
 
void selectionChanged (bool selected)
 
void selectableChanged (bool selectable)
 
void selectionChanged (bool selected)
 
void selectableChanged (bool selectable)
 
- Signals inherited from QCPLayerable
void layerChanged (QCPLayer *newLayer)
 
void layerChanged (QCPLayer *newLayer)
 
void layerChanged (QCPLayer *newLayer)
 

Public Member Functions

 QCPAbstractLegendItem (QCPLegend *parent)
 
QCPLegendparentLegend () const
 
QFont font () const
 
QColor textColor () const
 
QFont selectedFont () const
 
QColor selectedTextColor () const
 
bool selectable () const
 
bool selected () const
 
void setFont (const QFont &font)
 
void setTextColor (const QColor &color)
 
void setSelectedFont (const QFont &font)
 
void setSelectedTextColor (const QColor &color)
 
Q_SLOT void setSelectable (bool selectable)
 
Q_SLOT void setSelected (bool selected)
 
virtual double selectTest (const QPointF &pos, bool onlySelectable, QVariant *details=0) const
 
 QCPAbstractLegendItem (QCPLegend *parent)
 
QCPLegendparentLegend () const
 
QFont font () const
 
QColor textColor () const
 
QFont selectedFont () const
 
QColor selectedTextColor () const
 
bool selectable () const
 
bool selected () const
 
void setFont (const QFont &font)
 
void setTextColor (const QColor &color)
 
void setSelectedFont (const QFont &font)
 
void setSelectedTextColor (const QColor &color)
 
Q_SLOT void setSelectable (bool selectable)
 
Q_SLOT void setSelected (bool selected)
 
virtual double selectTest (const QPointF &pos, bool onlySelectable, QVariant *details=0) const Q_DECL_OVERRIDE
 
 QCPAbstractLegendItem (QCPLegend *parent)
 
QCPLegendparentLegend () const
 
QFont font () const
 
QColor textColor () const
 
QFont selectedFont () const
 
QColor selectedTextColor () const
 
bool selectable () const
 
bool selected () const
 
void setFont (const QFont &font)
 
void setTextColor (const QColor &color)
 
void setSelectedFont (const QFont &font)
 
void setSelectedTextColor (const QColor &color)
 
Q_SLOT void setSelectable (bool selectable)
 
Q_SLOT void setSelected (bool selected)
 
virtual double selectTest (const QPointF &pos, bool onlySelectable, QVariant *details=0) const
 
- Public Member Functions inherited from QCPLayoutElement
 QCPLayoutElement (QCustomPlot *parentPlot=0)
 
virtual ~QCPLayoutElement ()
 
QCPLayoutlayout () const
 
QRect rect () const
 
QRect outerRect () const
 
QMargins margins () const
 
QMargins minimumMargins () const
 
QCP::MarginSides autoMargins () const
 
QSize minimumSize () const
 
QSize maximumSize () const
 
QCPMarginGroupmarginGroup (QCP::MarginSide side) const
 
QHash< QCP::MarginSide, QCPMarginGroup * > marginGroups () const
 
void setOuterRect (const QRect &rect)
 
void setMargins (const QMargins &margins)
 
void setMinimumMargins (const QMargins &margins)
 
void setAutoMargins (QCP::MarginSides sides)
 
void setMinimumSize (const QSize &size)
 
void setMinimumSize (int width, int height)
 
void setMaximumSize (const QSize &size)
 
void setMaximumSize (int width, int height)
 
void setMarginGroup (QCP::MarginSides sides, QCPMarginGroup *group)
 
virtual void update (UpdatePhase phase)
 
virtual QSize minimumSizeHint () const
 
virtual QSize maximumSizeHint () const
 
virtual QList< QCPLayoutElement * > elements (bool recursive) const
 
 QCPLayoutElement (QCustomPlot *parentPlot=0)
 
virtual ~QCPLayoutElement ()
 
QCPLayoutlayout () const
 
QRect rect () const
 
QRect outerRect () const
 
QMargins margins () const
 
QMargins minimumMargins () const
 
QCP::MarginSides autoMargins () const
 
QSize minimumSize () const
 
QSize maximumSize () const
 
SizeConstraintRect sizeConstraintRect () const
 
QCPMarginGroupmarginGroup (QCP::MarginSide side) const
 
QHash< QCP::MarginSide, QCPMarginGroup * > marginGroups () const
 
void setOuterRect (const QRect &rect)
 
void setMargins (const QMargins &margins)
 
void setMinimumMargins (const QMargins &margins)
 
void setAutoMargins (QCP::MarginSides sides)
 
void setMinimumSize (const QSize &size)
 
void setMinimumSize (int width, int height)
 
void setMaximumSize (const QSize &size)
 
void setMaximumSize (int width, int height)
 
void setSizeConstraintRect (SizeConstraintRect constraintRect)
 
void setMarginGroup (QCP::MarginSides sides, QCPMarginGroup *group)
 
virtual void update (UpdatePhase phase)
 
virtual QSize minimumOuterSizeHint () const
 
virtual QSize maximumOuterSizeHint () const
 
virtual QList< QCPLayoutElement * > elements (bool recursive) const
 
 QCPLayoutElement (QCustomPlot *parentPlot=0)
 
virtual ~QCPLayoutElement ()
 
QCPLayoutlayout () const
 
QRect rect () const
 
QRect outerRect () const
 
QMargins margins () const
 
QMargins minimumMargins () const
 
QCP::MarginSides autoMargins () const
 
QSize minimumSize () const
 
QSize maximumSize () const
 
QCPMarginGroupmarginGroup (QCP::MarginSide side) const
 
QHash< QCP::MarginSide, QCPMarginGroup * > marginGroups () const
 
void setOuterRect (const QRect &rect)
 
void setMargins (const QMargins &margins)
 
void setMinimumMargins (const QMargins &margins)
 
void setAutoMargins (QCP::MarginSides sides)
 
void setMinimumSize (const QSize &size)
 
void setMinimumSize (int width, int height)
 
void setMaximumSize (const QSize &size)
 
void setMaximumSize (int width, int height)
 
void setMarginGroup (QCP::MarginSides sides, QCPMarginGroup *group)
 
virtual void update (UpdatePhase phase)
 
virtual QSize minimumSizeHint () const
 
virtual QSize maximumSizeHint () const
 
virtual QList< QCPLayoutElement * > elements (bool recursive) const
 
- Public Member Functions inherited from QCPLayerable
 QCPLayerable (QCustomPlot *plot, QString targetLayer=QString(), QCPLayerable *parentLayerable=0)
 
 ~QCPLayerable ()
 
bool visible () const
 
QCustomPlotparentPlot () const
 
QCPLayerableparentLayerable () const
 
QCPLayerlayer () const
 
bool antialiased () const
 
void setVisible (bool on)
 
Q_SLOT bool setLayer (QCPLayer *layer)
 
bool setLayer (const QString &layerName)
 
void setAntialiased (bool enabled)
 
bool realVisibility () const
 
 QCPLayerable (QCustomPlot *plot, QString targetLayer=QString(), QCPLayerable *parentLayerable=0)
 
virtual ~QCPLayerable ()
 
bool visible () const
 
QCustomPlotparentPlot () const
 
QCPLayerableparentLayerable () const
 
QCPLayerlayer () const
 
bool antialiased () const
 
void setVisible (bool on)
 
Q_SLOT bool setLayer (QCPLayer *layer)
 
bool setLayer (const QString &layerName)
 
void setAntialiased (bool enabled)
 
bool realVisibility () const
 
 QCPLayerable (QCustomPlot *plot, QString targetLayer=QString(), QCPLayerable *parentLayerable=0)
 
 ~QCPLayerable ()
 
bool visible () const
 
QCustomPlotparentPlot () const
 
QCPLayerableparentLayerable () const
 
QCPLayerlayer () const
 
bool antialiased () const
 
void setVisible (bool on)
 
Q_SLOT bool setLayer (QCPLayer *layer)
 
bool setLayer (const QString &layerName)
 
void setAntialiased (bool enabled)
 
bool realVisibility () const
 

Protected Member Functions

virtual QCP::Interaction selectionCategory () const
 
virtual void applyDefaultAntialiasingHint (QCPPainter *painter) const
 
virtual QRect clipRect () const
 
virtual void draw (QCPPainter *painter)=0
 
virtual void selectEvent (QMouseEvent *event, bool additive, const QVariant &details, bool *selectionStateChanged)
 
virtual void deselectEvent (bool *selectionStateChanged)
 
virtual QCP::Interaction selectionCategory () const Q_DECL_OVERRIDE
 
virtual void applyDefaultAntialiasingHint (QCPPainter *painter) const Q_DECL_OVERRIDE
 
virtual QRect clipRect () const Q_DECL_OVERRIDE
 
virtual void draw (QCPPainter *painter) Q_DECL_OVERRIDE=0
 
virtual void selectEvent (QMouseEvent *event, bool additive, const QVariant &details, bool *selectionStateChanged) Q_DECL_OVERRIDE
 
virtual void deselectEvent (bool *selectionStateChanged) Q_DECL_OVERRIDE
 
virtual QCP::Interaction selectionCategory () const
 
virtual void applyDefaultAntialiasingHint (QCPPainter *painter) const
 
virtual QRect clipRect () const
 
virtual void draw (QCPPainter *painter)=0
 
virtual void selectEvent (QMouseEvent *event, bool additive, const QVariant &details, bool *selectionStateChanged)
 
virtual void deselectEvent (bool *selectionStateChanged)
 
- Protected Member Functions inherited from QCPLayoutElement
virtual int calculateAutoMargin (QCP::MarginSide side)
 
virtual void mousePressEvent (QMouseEvent *event)
 
virtual void mouseMoveEvent (QMouseEvent *event)
 
virtual void mouseReleaseEvent (QMouseEvent *event)
 
virtual void mouseDoubleClickEvent (QMouseEvent *event)
 
virtual void wheelEvent (QWheelEvent *event)
 
virtual void parentPlotInitialized (QCustomPlot *parentPlot)
 
virtual int calculateAutoMargin (QCP::MarginSide side)
 
virtual void layoutChanged ()
 
virtual void parentPlotInitialized (QCustomPlot *parentPlot) Q_DECL_OVERRIDE
 
virtual int calculateAutoMargin (QCP::MarginSide side)
 
virtual void mousePressEvent (QMouseEvent *event)
 
virtual void mouseMoveEvent (QMouseEvent *event)
 
virtual void mouseReleaseEvent (QMouseEvent *event)
 
virtual void mouseDoubleClickEvent (QMouseEvent *event)
 
virtual void wheelEvent (QWheelEvent *event)
 
virtual void parentPlotInitialized (QCustomPlot *parentPlot)
 
- Protected Member Functions inherited from QCPLayerable
void initializeParentPlot (QCustomPlot *parentPlot)
 
void setParentLayerable (QCPLayerable *parentLayerable)
 
bool moveToLayer (QCPLayer *layer, bool prepend)
 
void applyAntialiasingHint (QCPPainter *painter, bool localAntialiased, QCP::AntialiasedElement overrideElement) const
 
virtual void mousePressEvent (QMouseEvent *event, const QVariant &details)
 
virtual void mouseMoveEvent (QMouseEvent *event, const QPointF &startPos)
 
virtual void mouseReleaseEvent (QMouseEvent *event, const QPointF &startPos)
 
virtual void mouseDoubleClickEvent (QMouseEvent *event, const QVariant &details)
 
void initializeParentPlot (QCustomPlot *parentPlot)
 
void setParentLayerable (QCPLayerable *parentLayerable)
 
bool moveToLayer (QCPLayer *layer, bool prepend)
 
void applyAntialiasingHint (QCPPainter *painter, bool localAntialiased, QCP::AntialiasedElement overrideElement) const
 
void initializeParentPlot (QCustomPlot *parentPlot)
 
void setParentLayerable (QCPLayerable *parentLayerable)
 
bool moveToLayer (QCPLayer *layer, bool prepend)
 
void applyAntialiasingHint (QCPPainter *painter, bool localAntialiased, QCP::AntialiasedElement overrideElement) const
 

Protected Attributes

QCPLegendmParentLegend
 
QFont mFont
 
QColor mTextColor
 
QFont mSelectedFont
 
QColor mSelectedTextColor
 
bool mSelectable
 
bool mSelected
 
- Protected Attributes inherited from QCPLayoutElement
QCPLayoutmParentLayout
 
QSize mMinimumSize
 
QSize mMaximumSize
 
QRect mRect
 
QRect mOuterRect
 
QMargins mMargins
 
QMargins mMinimumMargins
 
QCP::MarginSides mAutoMargins
 
QHash< QCP::MarginSide, QCPMarginGroup * > mMarginGroups
 
SizeConstraintRect mSizeConstraintRect
 
- Protected Attributes inherited from QCPLayerable
bool mVisible
 
QCustomPlotmParentPlot
 
QPointer< QCPLayerablemParentLayerable
 
QCPLayermLayer
 
bool mAntialiased
 

Friends

class QCPLegend
 

Additional Inherited Members

- Public Types inherited from QCPLayoutElement
enum  UpdatePhase {
  upPreparation, upMargins, upLayout, upPreparation,
  upMargins, upLayout, upPreparation, upMargins,
  upLayout
}
 
enum  UpdatePhase {
  upPreparation, upMargins, upLayout, upPreparation,
  upMargins, upLayout, upPreparation, upMargins,
  upLayout
}
 
enum  SizeConstraintRect { scrInnerRect, scrOuterRect }
 
enum  UpdatePhase {
  upPreparation, upMargins, upLayout, upPreparation,
  upMargins, upLayout, upPreparation, upMargins,
  upLayout
}
 

Constructor & Destructor Documentation

◆ QCPAbstractLegendItem() [1/3]

QCPAbstractLegendItem::QCPAbstractLegendItem ( QCPLegend parent)
explicit

◆ QCPAbstractLegendItem() [2/3]

QCPAbstractLegendItem::QCPAbstractLegendItem ( QCPLegend parent)
explicit

◆ QCPAbstractLegendItem() [3/3]

QCPAbstractLegendItem::QCPAbstractLegendItem ( QCPLegend parent)
explicit

Member Function Documentation

◆ applyDefaultAntialiasingHint() [1/3]

virtual void QCPAbstractLegendItem::applyDefaultAntialiasingHint ( QCPPainter painter) const
protectedvirtual

Reimplemented from QCPLayoutElement.

◆ applyDefaultAntialiasingHint() [2/3]

virtual void QCPAbstractLegendItem::applyDefaultAntialiasingHint ( QCPPainter painter) const
protectedvirtual

Reimplemented from QCPLayoutElement.

◆ applyDefaultAntialiasingHint() [3/3]

virtual void QCPAbstractLegendItem::applyDefaultAntialiasingHint ( QCPPainter painter) const
protectedvirtual

Reimplemented from QCPLayoutElement.

◆ clipRect() [1/3]

virtual QRect QCPAbstractLegendItem::clipRect ( ) const
protectedvirtual

Reimplemented from QCPLayerable.

◆ clipRect() [2/3]

virtual QRect QCPAbstractLegendItem::clipRect ( ) const
protectedvirtual

Reimplemented from QCPLayerable.

◆ clipRect() [3/3]

virtual QRect QCPAbstractLegendItem::clipRect ( ) const
protectedvirtual

Reimplemented from QCPLayerable.

◆ deselectEvent() [1/3]

virtual void QCPAbstractLegendItem::deselectEvent ( bool *  selectionStateChanged)
protectedvirtual

Reimplemented from QCPLayerable.

◆ deselectEvent() [2/3]

virtual void QCPAbstractLegendItem::deselectEvent ( bool *  selectionStateChanged)
protectedvirtual

Reimplemented from QCPLayerable.

◆ deselectEvent() [3/3]

virtual void QCPAbstractLegendItem::deselectEvent ( bool *  selectionStateChanged)
protectedvirtual

Reimplemented from QCPLayerable.

◆ draw() [1/3]

virtual void QCPAbstractLegendItem::draw ( QCPPainter painter)
protectedpure virtual

◆ draw() [2/3]

virtual void QCPAbstractLegendItem::draw ( QCPPainter painter)
protectedpure virtual

◆ draw() [3/3]

virtual void QCPAbstractLegendItem::draw ( QCPPainter painter)
protectedpure virtual

◆ font() [1/3]

QFont QCPAbstractLegendItem::font ( ) const
inline

◆ font() [2/3]

QFont QCPAbstractLegendItem::font ( ) const
inline

◆ font() [3/3]

QFont QCPAbstractLegendItem::font ( ) const
inline

◆ parentLegend() [1/3]

QCPLegend* QCPAbstractLegendItem::parentLegend ( ) const
inline

◆ parentLegend() [2/3]

QCPLegend* QCPAbstractLegendItem::parentLegend ( ) const
inline

◆ parentLegend() [3/3]

QCPLegend* QCPAbstractLegendItem::parentLegend ( ) const
inline

◆ selectable() [1/3]

bool QCPAbstractLegendItem::selectable ( ) const
inline

◆ selectable() [2/3]

bool QCPAbstractLegendItem::selectable ( ) const
inline

◆ selectable() [3/3]

bool QCPAbstractLegendItem::selectable ( ) const
inline

◆ selectableChanged [1/3]

void QCPAbstractLegendItem::selectableChanged ( bool  selectable)
signal

◆ selectableChanged [2/3]

void QCPAbstractLegendItem::selectableChanged ( bool  selectable)
signal

◆ selectableChanged [3/3]

void QCPAbstractLegendItem::selectableChanged ( bool  selectable)
signal

◆ selected() [1/3]

bool QCPAbstractLegendItem::selected ( ) const
inline

◆ selected() [2/3]

bool QCPAbstractLegendItem::selected ( ) const
inline

◆ selected() [3/3]

bool QCPAbstractLegendItem::selected ( ) const
inline

◆ selectedFont() [1/3]

QFont QCPAbstractLegendItem::selectedFont ( ) const
inline

◆ selectedFont() [2/3]

QFont QCPAbstractLegendItem::selectedFont ( ) const
inline

◆ selectedFont() [3/3]

QFont QCPAbstractLegendItem::selectedFont ( ) const
inline

◆ selectedTextColor() [1/3]

QColor QCPAbstractLegendItem::selectedTextColor ( ) const
inline

◆ selectedTextColor() [2/3]

QColor QCPAbstractLegendItem::selectedTextColor ( ) const
inline

◆ selectedTextColor() [3/3]

QColor QCPAbstractLegendItem::selectedTextColor ( ) const
inline

◆ selectEvent() [1/3]

virtual void QCPAbstractLegendItem::selectEvent ( QMouseEvent *  event,
bool  additive,
const QVariant &  details,
bool *  selectionStateChanged 
)
protectedvirtual

Reimplemented from QCPLayerable.

◆ selectEvent() [2/3]

virtual void QCPAbstractLegendItem::selectEvent ( QMouseEvent *  event,
bool  additive,
const QVariant &  details,
bool *  selectionStateChanged 
)
protectedvirtual

Reimplemented from QCPLayerable.

◆ selectEvent() [3/3]

virtual void QCPAbstractLegendItem::selectEvent ( QMouseEvent *  event,
bool  additive,
const QVariant &  details,
bool *  selectionStateChanged 
)
protectedvirtual

Reimplemented from QCPLayerable.

◆ selectionCategory() [1/3]

virtual QCP::Interaction QCPAbstractLegendItem::selectionCategory ( ) const
protectedvirtual

Reimplemented from QCPLayerable.

◆ selectionCategory() [2/3]

virtual QCP::Interaction QCPAbstractLegendItem::selectionCategory ( ) const
protectedvirtual

Reimplemented from QCPLayerable.

◆ selectionCategory() [3/3]

virtual QCP::Interaction QCPAbstractLegendItem::selectionCategory ( ) const
protectedvirtual

Reimplemented from QCPLayerable.

◆ selectionChanged [1/3]

void QCPAbstractLegendItem::selectionChanged ( bool  selected)
signal

◆ selectionChanged [2/3]

void QCPAbstractLegendItem::selectionChanged ( bool  selected)
signal

◆ selectionChanged [3/3]

void QCPAbstractLegendItem::selectionChanged ( bool  selected)
signal

◆ selectTest() [1/3]

virtual double QCPAbstractLegendItem::selectTest ( const QPointF &  pos,
bool  onlySelectable,
QVariant *  details = 0 
) const
virtual

Reimplemented from QCPLayoutElement.

◆ selectTest() [2/3]

virtual double QCPAbstractLegendItem::selectTest ( const QPointF &  pos,
bool  onlySelectable,
QVariant *  details = 0 
) const
virtual

Reimplemented from QCPLayoutElement.

◆ selectTest() [3/3]

virtual double QCPAbstractLegendItem::selectTest ( const QPointF &  pos,
bool  onlySelectable,
QVariant *  details = 0 
) const
virtual

Reimplemented from QCPLayoutElement.

◆ setFont() [1/3]

void QCPAbstractLegendItem::setFont ( const QFont &  font)

◆ setFont() [2/3]

void QCPAbstractLegendItem::setFont ( const QFont &  font)

◆ setFont() [3/3]

void QCPAbstractLegendItem::setFont ( const QFont &  font)

◆ setSelectable() [1/3]

Q_SLOT void QCPAbstractLegendItem::setSelectable ( bool  selectable)

◆ setSelectable() [2/3]

Q_SLOT void QCPAbstractLegendItem::setSelectable ( bool  selectable)

◆ setSelectable() [3/3]

Q_SLOT void QCPAbstractLegendItem::setSelectable ( bool  selectable)

◆ setSelected() [1/3]

Q_SLOT void QCPAbstractLegendItem::setSelected ( bool  selected)

◆ setSelected() [2/3]

Q_SLOT void QCPAbstractLegendItem::setSelected ( bool  selected)

◆ setSelected() [3/3]

Q_SLOT void QCPAbstractLegendItem::setSelected ( bool  selected)

◆ setSelectedFont() [1/3]

void QCPAbstractLegendItem::setSelectedFont ( const QFont &  font)

◆ setSelectedFont() [2/3]

void QCPAbstractLegendItem::setSelectedFont ( const QFont &  font)

◆ setSelectedFont() [3/3]

void QCPAbstractLegendItem::setSelectedFont ( const QFont &  font)

◆ setSelectedTextColor() [1/3]

void QCPAbstractLegendItem::setSelectedTextColor ( const QColor &  color)

◆ setSelectedTextColor() [2/3]

void QCPAbstractLegendItem::setSelectedTextColor ( const QColor &  color)

◆ setSelectedTextColor() [3/3]

void QCPAbstractLegendItem::setSelectedTextColor ( const QColor &  color)

◆ setTextColor() [1/3]

void QCPAbstractLegendItem::setTextColor ( const QColor &  color)

◆ setTextColor() [2/3]

void QCPAbstractLegendItem::setTextColor ( const QColor &  color)

◆ setTextColor() [3/3]

void QCPAbstractLegendItem::setTextColor ( const QColor &  color)

◆ textColor() [1/3]

QColor QCPAbstractLegendItem::textColor ( ) const
inline

◆ textColor() [2/3]

QColor QCPAbstractLegendItem::textColor ( ) const
inline

◆ textColor() [3/3]

QColor QCPAbstractLegendItem::textColor ( ) const
inline

Friends And Related Function Documentation

◆ QCPLegend

QCPLegend
friend

Member Data Documentation

◆ mFont

QFont QCPAbstractLegendItem::mFont
protected

◆ mParentLegend

QCPLegend * QCPAbstractLegendItem::mParentLegend
protected

◆ mSelectable

bool QCPAbstractLegendItem::mSelectable
protected

◆ mSelected

bool QCPAbstractLegendItem::mSelected
protected

◆ mSelectedFont

QFont QCPAbstractLegendItem::mSelectedFont
protected

◆ mSelectedTextColor

QColor QCPAbstractLegendItem::mSelectedTextColor
protected

◆ mTextColor

QColor QCPAbstractLegendItem::mTextColor
protected

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