QCPLegend Class Reference

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

Inheritance diagram for QCPLegend:
Collaboration diagram for QCPLegend:

Public Types

enum  SelectablePart {
  spNone = 0x000, spLegendBox = 0x001, spItems = 0x002, spNone = 0x000,
  spLegendBox = 0x001, spItems = 0x002, spNone = 0x000, spLegendBox = 0x001,
  spItems = 0x002
}
 
enum  SelectablePart {
  spNone = 0x000, spLegendBox = 0x001, spItems = 0x002, spNone = 0x000,
  spLegendBox = 0x001, spItems = 0x002, spNone = 0x000, spLegendBox = 0x001,
  spItems = 0x002
}
 
enum  SelectablePart {
  spNone = 0x000, spLegendBox = 0x001, spItems = 0x002, spNone = 0x000,
  spLegendBox = 0x001, spItems = 0x002, spNone = 0x000, spLegendBox = 0x001,
  spItems = 0x002
}
 
- Public Types inherited from QCPLayoutGrid
enum  FillOrder { foRowsFirst, foColumnsFirst }
 
- 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
}
 

Signals

void selectionChanged (QCPLegend::SelectableParts parts)
 
void selectableChanged (QCPLegend::SelectableParts parts)
 
void selectionChanged (QCPLegend::SelectableParts parts)
 
void selectableChanged (QCPLegend::SelectableParts parts)
 
void selectionChanged (QCPLegend::SelectableParts parts)
 
void selectableChanged (QCPLegend::SelectableParts parts)
 
- Signals inherited from QCPLayerable
void layerChanged (QCPLayer *newLayer)
 
void layerChanged (QCPLayer *newLayer)
 
void layerChanged (QCPLayer *newLayer)
 

Public Member Functions

 QCPLegend ()
 
virtual ~QCPLegend ()
 
QPen borderPen () const
 
QBrush brush () const
 
QFont font () const
 
QColor textColor () const
 
QSize iconSize () const
 
int iconTextPadding () const
 
QPen iconBorderPen () const
 
SelectableParts selectableParts () const
 
SelectableParts selectedParts () const
 
QPen selectedBorderPen () const
 
QPen selectedIconBorderPen () const
 
QBrush selectedBrush () const
 
QFont selectedFont () const
 
QColor selectedTextColor () const
 
void setBorderPen (const QPen &pen)
 
void setBrush (const QBrush &brush)
 
void setFont (const QFont &font)
 
void setTextColor (const QColor &color)
 
void setIconSize (const QSize &size)
 
void setIconSize (int width, int height)
 
void setIconTextPadding (int padding)
 
void setIconBorderPen (const QPen &pen)
 
Q_SLOT void setSelectableParts (const SelectableParts &selectableParts)
 
Q_SLOT void setSelectedParts (const SelectableParts &selectedParts)
 
void setSelectedBorderPen (const QPen &pen)
 
void setSelectedIconBorderPen (const QPen &pen)
 
void setSelectedBrush (const QBrush &brush)
 
void setSelectedFont (const QFont &font)
 
void setSelectedTextColor (const QColor &color)
 
virtual double selectTest (const QPointF &pos, bool onlySelectable, QVariant *details=0) const
 
QCPAbstractLegendItemitem (int index) const
 
QCPPlottableLegendItemitemWithPlottable (const QCPAbstractPlottable *plottable) const
 
int itemCount () const
 
bool hasItem (QCPAbstractLegendItem *item) const
 
bool hasItemWithPlottable (const QCPAbstractPlottable *plottable) const
 
bool addItem (QCPAbstractLegendItem *item)
 
bool removeItem (int index)
 
bool removeItem (QCPAbstractLegendItem *item)
 
void clearItems ()
 
QList< QCPAbstractLegendItem * > selectedItems () const
 
 QCPLegend ()
 
virtual ~QCPLegend ()
 
QPen borderPen () const
 
QBrush brush () const
 
QFont font () const
 
QColor textColor () const
 
QSize iconSize () const
 
int iconTextPadding () const
 
QPen iconBorderPen () const
 
SelectableParts selectableParts () const
 
SelectableParts selectedParts () const
 
QPen selectedBorderPen () const
 
QPen selectedIconBorderPen () const
 
QBrush selectedBrush () const
 
QFont selectedFont () const
 
QColor selectedTextColor () const
 
void setBorderPen (const QPen &pen)
 
void setBrush (const QBrush &brush)
 
void setFont (const QFont &font)
 
void setTextColor (const QColor &color)
 
void setIconSize (const QSize &size)
 
void setIconSize (int width, int height)
 
void setIconTextPadding (int padding)
 
void setIconBorderPen (const QPen &pen)
 
Q_SLOT void setSelectableParts (const SelectableParts &selectableParts)
 
Q_SLOT void setSelectedParts (const SelectableParts &selectedParts)
 
void setSelectedBorderPen (const QPen &pen)
 
void setSelectedIconBorderPen (const QPen &pen)
 
void setSelectedBrush (const QBrush &brush)
 
void setSelectedFont (const QFont &font)
 
void setSelectedTextColor (const QColor &color)
 
virtual double selectTest (const QPointF &pos, bool onlySelectable, QVariant *details=0) const Q_DECL_OVERRIDE
 
QCPAbstractLegendItemitem (int index) const
 
QCPPlottableLegendItemitemWithPlottable (const QCPAbstractPlottable *plottable) const
 
int itemCount () const
 
bool hasItem (QCPAbstractLegendItem *item) const
 
bool hasItemWithPlottable (const QCPAbstractPlottable *plottable) const
 
bool addItem (QCPAbstractLegendItem *item)
 
bool removeItem (int index)
 
bool removeItem (QCPAbstractLegendItem *item)
 
void clearItems ()
 
QList< QCPAbstractLegendItem * > selectedItems () const
 
 QCPLegend ()
 
virtual ~QCPLegend ()
 
QPen borderPen () const
 
QBrush brush () const
 
QFont font () const
 
QColor textColor () const
 
QSize iconSize () const
 
int iconTextPadding () const
 
QPen iconBorderPen () const
 
SelectableParts selectableParts () const
 
SelectableParts selectedParts () const
 
QPen selectedBorderPen () const
 
QPen selectedIconBorderPen () const
 
QBrush selectedBrush () const
 
QFont selectedFont () const
 
QColor selectedTextColor () const
 
void setBorderPen (const QPen &pen)
 
void setBrush (const QBrush &brush)
 
void setFont (const QFont &font)
 
void setTextColor (const QColor &color)
 
void setIconSize (const QSize &size)
 
void setIconSize (int width, int height)
 
void setIconTextPadding (int padding)
 
void setIconBorderPen (const QPen &pen)
 
Q_SLOT void setSelectableParts (const SelectableParts &selectableParts)
 
Q_SLOT void setSelectedParts (const SelectableParts &selectedParts)
 
void setSelectedBorderPen (const QPen &pen)
 
void setSelectedIconBorderPen (const QPen &pen)
 
void setSelectedBrush (const QBrush &brush)
 
void setSelectedFont (const QFont &font)
 
void setSelectedTextColor (const QColor &color)
 
virtual double selectTest (const QPointF &pos, bool onlySelectable, QVariant *details=0) const
 
QCPAbstractLegendItemitem (int index) const
 
QCPPlottableLegendItemitemWithPlottable (const QCPAbstractPlottable *plottable) const
 
int itemCount () const
 
bool hasItem (QCPAbstractLegendItem *item) const
 
bool hasItemWithPlottable (const QCPAbstractPlottable *plottable) const
 
bool addItem (QCPAbstractLegendItem *item)
 
bool removeItem (int index)
 
bool removeItem (QCPAbstractLegendItem *item)
 
void clearItems ()
 
QList< QCPAbstractLegendItem * > selectedItems () const
 
- Public Member Functions inherited from QCPLayoutGrid
 QCPLayoutGrid ()
 
virtual ~QCPLayoutGrid ()
 
int rowCount () const
 
int columnCount () const
 
QList< double > columnStretchFactors () const
 
QList< double > rowStretchFactors () const
 
int columnSpacing () const
 
int rowSpacing () const
 
void setColumnStretchFactor (int column, double factor)
 
void setColumnStretchFactors (const QList< double > &factors)
 
void setRowStretchFactor (int row, double factor)
 
void setRowStretchFactors (const QList< double > &factors)
 
void setColumnSpacing (int pixels)
 
void setRowSpacing (int pixels)
 
virtual void updateLayout ()
 
virtual int elementCount () const
 
virtual QCPLayoutElementelementAt (int index) const
 
virtual QCPLayoutElementtakeAt (int index)
 
virtual bool take (QCPLayoutElement *element)
 
virtual QList< QCPLayoutElement * > elements (bool recursive) const
 
virtual void simplify ()
 
virtual QSize minimumSizeHint () const
 
virtual QSize maximumSizeHint () const
 
QCPLayoutElementelement (int row, int column) const
 
bool addElement (int row, int column, QCPLayoutElement *element)
 
bool hasElement (int row, int column)
 
void expandTo (int newRowCount, int newColumnCount)
 
void insertRow (int newIndex)
 
void insertColumn (int newIndex)
 
 QCPLayoutGrid ()
 
virtual ~QCPLayoutGrid ()
 
int rowCount () const
 
int columnCount () const
 
QList< double > columnStretchFactors () const
 
QList< double > rowStretchFactors () const
 
int columnSpacing () const
 
int rowSpacing () const
 
int wrap () const
 
FillOrder fillOrder () const
 
void setColumnStretchFactor (int column, double factor)
 
void setColumnStretchFactors (const QList< double > &factors)
 
void setRowStretchFactor (int row, double factor)
 
void setRowStretchFactors (const QList< double > &factors)
 
void setColumnSpacing (int pixels)
 
void setRowSpacing (int pixels)
 
void setWrap (int count)
 
void setFillOrder (FillOrder order, bool rearrange=true)
 
virtual void updateLayout () Q_DECL_OVERRIDE
 
virtual int elementCount () const Q_DECL_OVERRIDE
 
virtual QCPLayoutElementelementAt (int index) const Q_DECL_OVERRIDE
 
virtual QCPLayoutElementtakeAt (int index) Q_DECL_OVERRIDE
 
virtual bool take (QCPLayoutElement *element) Q_DECL_OVERRIDE
 
virtual QList< QCPLayoutElement * > elements (bool recursive) const Q_DECL_OVERRIDE
 
virtual void simplify () Q_DECL_OVERRIDE
 
virtual QSize minimumOuterSizeHint () const Q_DECL_OVERRIDE
 
virtual QSize maximumOuterSizeHint () const Q_DECL_OVERRIDE
 
QCPLayoutElementelement (int row, int column) const
 
bool addElement (int row, int column, QCPLayoutElement *element)
 
bool addElement (QCPLayoutElement *element)
 
bool hasElement (int row, int column)
 
void expandTo (int newRowCount, int newColumnCount)
 
void insertRow (int newIndex)
 
void insertColumn (int newIndex)
 
int rowColToIndex (int row, int column) const
 
void indexToRowCol (int index, int &row, int &column) const
 
 QCPLayoutGrid ()
 
virtual ~QCPLayoutGrid ()
 
int rowCount () const
 
int columnCount () const
 
QList< double > columnStretchFactors () const
 
QList< double > rowStretchFactors () const
 
int columnSpacing () const
 
int rowSpacing () const
 
void setColumnStretchFactor (int column, double factor)
 
void setColumnStretchFactors (const QList< double > &factors)
 
void setRowStretchFactor (int row, double factor)
 
void setRowStretchFactors (const QList< double > &factors)
 
void setColumnSpacing (int pixels)
 
void setRowSpacing (int pixels)
 
virtual void updateLayout ()
 
virtual int elementCount () const
 
virtual QCPLayoutElementelementAt (int index) const
 
virtual QCPLayoutElementtakeAt (int index)
 
virtual bool take (QCPLayoutElement *element)
 
virtual QList< QCPLayoutElement * > elements (bool recursive) const
 
virtual void simplify ()
 
virtual QSize minimumSizeHint () const
 
virtual QSize maximumSizeHint () const
 
QCPLayoutElementelement (int row, int column) const
 
bool addElement (int row, int column, QCPLayoutElement *element)
 
bool hasElement (int row, int column)
 
void expandTo (int newRowCount, int newColumnCount)
 
void insertRow (int newIndex)
 
void insertColumn (int newIndex)
 
- Public Member Functions inherited from QCPLayout
 QCPLayout ()
 
virtual void update (UpdatePhase phase)
 
bool removeAt (int index)
 
bool remove (QCPLayoutElement *element)
 
void clear ()
 
 QCPLayout ()
 
virtual void update (UpdatePhase phase) Q_DECL_OVERRIDE
 
bool removeAt (int index)
 
bool remove (QCPLayoutElement *element)
 
void clear ()
 
 QCPLayout ()
 
virtual void update (UpdatePhase phase)
 
bool removeAt (int index)
 
bool remove (QCPLayoutElement *element)
 
void clear ()
 
- 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)
 
 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)
 
 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)
 
- 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 void parentPlotInitialized (QCustomPlot *parentPlot)
 
virtual QCP::Interaction selectionCategory () const
 
virtual void applyDefaultAntialiasingHint (QCPPainter *painter) const
 
virtual void draw (QCPPainter *painter)
 
virtual void selectEvent (QMouseEvent *event, bool additive, const QVariant &details, bool *selectionStateChanged)
 
virtual void deselectEvent (bool *selectionStateChanged)
 
QPen getBorderPen () const
 
QBrush getBrush () const
 
virtual void parentPlotInitialized (QCustomPlot *parentPlot) Q_DECL_OVERRIDE
 
virtual QCP::Interaction selectionCategory () const Q_DECL_OVERRIDE
 
virtual void applyDefaultAntialiasingHint (QCPPainter *painter) const Q_DECL_OVERRIDE
 
virtual void draw (QCPPainter *painter) Q_DECL_OVERRIDE
 
virtual void selectEvent (QMouseEvent *event, bool additive, const QVariant &details, bool *selectionStateChanged) Q_DECL_OVERRIDE
 
virtual void deselectEvent (bool *selectionStateChanged) Q_DECL_OVERRIDE
 
QPen getBorderPen () const
 
QBrush getBrush () const
 
virtual void parentPlotInitialized (QCustomPlot *parentPlot)
 
virtual QCP::Interaction selectionCategory () const
 
virtual void applyDefaultAntialiasingHint (QCPPainter *painter) const
 
virtual void draw (QCPPainter *painter)
 
virtual void selectEvent (QMouseEvent *event, bool additive, const QVariant &details, bool *selectionStateChanged)
 
virtual void deselectEvent (bool *selectionStateChanged)
 
QPen getBorderPen () const
 
QBrush getBrush () const
 
- Protected Member Functions inherited from QCPLayoutGrid
void getMinimumRowColSizes (QVector< int > *minColWidths, QVector< int > *minRowHeights) const
 
void getMaximumRowColSizes (QVector< int > *maxColWidths, QVector< int > *maxRowHeights) const
 
void getMinimumRowColSizes (QVector< int > *minColWidths, QVector< int > *minRowHeights) const
 
void getMaximumRowColSizes (QVector< int > *maxColWidths, QVector< int > *maxRowHeights) const
 
void getMinimumRowColSizes (QVector< int > *minColWidths, QVector< int > *minRowHeights) const
 
void getMaximumRowColSizes (QVector< int > *maxColWidths, QVector< int > *maxRowHeights) const
 
- Protected Member Functions inherited from QCPLayout
void sizeConstraintsChanged () const
 
void adoptElement (QCPLayoutElement *el)
 
void releaseElement (QCPLayoutElement *el)
 
QVector< int > getSectionSizes (QVector< int > maxSizes, QVector< int > minSizes, QVector< double > stretchFactors, int totalSize) const
 
void sizeConstraintsChanged () const
 
void adoptElement (QCPLayoutElement *el)
 
void releaseElement (QCPLayoutElement *el)
 
QVector< int > getSectionSizes (QVector< int > maxSizes, QVector< int > minSizes, QVector< double > stretchFactors, int totalSize) const
 
void sizeConstraintsChanged () const
 
void adoptElement (QCPLayoutElement *el)
 
void releaseElement (QCPLayoutElement *el)
 
QVector< int > getSectionSizes (QVector< int > maxSizes, QVector< int > minSizes, QVector< double > stretchFactors, int totalSize) const
 
- 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 int calculateAutoMargin (QCP::MarginSide side)
 
virtual void layoutChanged ()
 
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)
 
- Protected Member Functions inherited from QCPLayerable
virtual QRect clipRect () 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
 
virtual QRect clipRect () 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
 
virtual QRect clipRect () 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

QPen mBorderPen
 
QPen mIconBorderPen
 
QBrush mBrush
 
QFont mFont
 
QColor mTextColor
 
QSize mIconSize
 
int mIconTextPadding
 
SelectableParts mSelectedParts
 
SelectableParts mSelectableParts
 
QPen mSelectedBorderPen
 
QPen mSelectedIconBorderPen
 
QBrush mSelectedBrush
 
QFont mSelectedFont
 
QColor mSelectedTextColor
 
- Protected Attributes inherited from QCPLayoutGrid
QList< QList< QCPLayoutElement * > > mElements
 
QList< double > mColumnStretchFactors
 
QList< double > mRowStretchFactors
 
int mColumnSpacing
 
int mRowSpacing
 
int mWrap
 
FillOrder mFillOrder
 
- 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 QCustomPlot
 
class QCPAbstractLegendItem
 

Additional Inherited Members

- Static Protected Member Functions inherited from QCPLayout
static QSize getFinalMinimumOuterSize (const QCPLayoutElement *el)
 
static QSize getFinalMaximumOuterSize (const QCPLayoutElement *el)
 

Member Enumeration Documentation

◆ SelectablePart [1/3]

Defines the selectable parts of a legend

See also
setSelectedParts, setSelectableParts
Enumerator
spNone 

0x000 None

spLegendBox 

0x001 The legend box (frame)

spItems 

0x002 Legend items individually (see selectedItems)

spNone 

0x000 None

spLegendBox 

0x001 The legend box (frame)

spItems 

0x002 Legend items individually (see selectedItems)

spNone 

0x000 None

spLegendBox 

0x001 The legend box (frame)

spItems 

0x002 Legend items individually (see selectedItems)

◆ SelectablePart [2/3]

Defines the selectable parts of a legend

See also
setSelectedParts, setSelectableParts
Enumerator
spNone 

0x000 None

spLegendBox 

0x001 The legend box (frame)

spItems 

0x002 Legend items individually (see selectedItems)

spNone 

0x000 None

spLegendBox 

0x001 The legend box (frame)

spItems 

0x002 Legend items individually (see selectedItems)

spNone 

0x000 None

spLegendBox 

0x001 The legend box (frame)

spItems 

0x002 Legend items individually (see selectedItems)

◆ SelectablePart [3/3]

Defines the selectable parts of a legend

See also
setSelectedParts, setSelectableParts
Enumerator
spNone 

0x000 None

spLegendBox 

0x001 The legend box (frame)

spItems 

0x002 Legend items individually (see selectedItems)

spNone 

0x000 None

spLegendBox 

0x001 The legend box (frame)

spItems 

0x002 Legend items individually (see selectedItems)

spNone 

0x000 None

spLegendBox 

0x001 The legend box (frame)

spItems 

0x002 Legend items individually (see selectedItems)

Constructor & Destructor Documentation

◆ QCPLegend() [1/3]

QCPLegend::QCPLegend ( )
explicit

◆ ~QCPLegend() [1/3]

virtual QCPLegend::~QCPLegend ( )
virtual

◆ QCPLegend() [2/3]

QCPLegend::QCPLegend ( )
explicit

◆ ~QCPLegend() [2/3]

virtual QCPLegend::~QCPLegend ( )
virtual

◆ QCPLegend() [3/3]

QCPLegend::QCPLegend ( )
explicit

◆ ~QCPLegend() [3/3]

virtual QCPLegend::~QCPLegend ( )
virtual

Member Function Documentation

◆ addItem() [1/3]

bool QCPLegend::addItem ( QCPAbstractLegendItem item)

◆ addItem() [2/3]

bool QCPLegend::addItem ( QCPAbstractLegendItem item)

◆ addItem() [3/3]

bool QCPLegend::addItem ( QCPAbstractLegendItem item)

◆ applyDefaultAntialiasingHint() [1/3]

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

Reimplemented from QCPLayoutElement.

◆ applyDefaultAntialiasingHint() [2/3]

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

Reimplemented from QCPLayoutElement.

◆ applyDefaultAntialiasingHint() [3/3]

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

Reimplemented from QCPLayoutElement.

◆ borderPen() [1/3]

QPen QCPLegend::borderPen ( ) const
inline

◆ borderPen() [2/3]

QPen QCPLegend::borderPen ( ) const
inline

◆ borderPen() [3/3]

QPen QCPLegend::borderPen ( ) const
inline

◆ brush() [1/3]

QBrush QCPLegend::brush ( ) const
inline

◆ brush() [2/3]

QBrush QCPLegend::brush ( ) const
inline

◆ brush() [3/3]

QBrush QCPLegend::brush ( ) const
inline

◆ clearItems() [1/3]

void QCPLegend::clearItems ( )

◆ clearItems() [2/3]

void QCPLegend::clearItems ( )

◆ clearItems() [3/3]

void QCPLegend::clearItems ( )

◆ deselectEvent() [1/3]

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

Reimplemented from QCPLayerable.

◆ deselectEvent() [2/3]

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

Reimplemented from QCPLayerable.

◆ deselectEvent() [3/3]

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

Reimplemented from QCPLayerable.

◆ draw() [1/3]

virtual void QCPLegend::draw ( QCPPainter painter)
protectedvirtual

Reimplemented from QCPLayoutElement.

◆ draw() [2/3]

virtual void QCPLegend::draw ( QCPPainter painter)
protectedvirtual

Reimplemented from QCPLayoutElement.

◆ draw() [3/3]

virtual void QCPLegend::draw ( QCPPainter painter)
protectedvirtual

Reimplemented from QCPLayoutElement.

◆ font() [1/3]

QFont QCPLegend::font ( ) const
inline

◆ font() [2/3]

QFont QCPLegend::font ( ) const
inline

◆ font() [3/3]

QFont QCPLegend::font ( ) const
inline

◆ getBorderPen() [1/3]

QPen QCPLegend::getBorderPen ( ) const
protected

◆ getBorderPen() [2/3]

QPen QCPLegend::getBorderPen ( ) const
protected

◆ getBorderPen() [3/3]

QPen QCPLegend::getBorderPen ( ) const
protected

◆ getBrush() [1/3]

QBrush QCPLegend::getBrush ( ) const
protected

◆ getBrush() [2/3]

QBrush QCPLegend::getBrush ( ) const
protected

◆ getBrush() [3/3]

QBrush QCPLegend::getBrush ( ) const
protected

◆ hasItem() [1/3]

bool QCPLegend::hasItem ( QCPAbstractLegendItem item) const

◆ hasItem() [2/3]

bool QCPLegend::hasItem ( QCPAbstractLegendItem item) const

◆ hasItem() [3/3]

bool QCPLegend::hasItem ( QCPAbstractLegendItem item) const

◆ hasItemWithPlottable() [1/3]

bool QCPLegend::hasItemWithPlottable ( const QCPAbstractPlottable plottable) const

◆ hasItemWithPlottable() [2/3]

bool QCPLegend::hasItemWithPlottable ( const QCPAbstractPlottable plottable) const

◆ hasItemWithPlottable() [3/3]

bool QCPLegend::hasItemWithPlottable ( const QCPAbstractPlottable plottable) const

◆ iconBorderPen() [1/3]

QPen QCPLegend::iconBorderPen ( ) const
inline

◆ iconBorderPen() [2/3]

QPen QCPLegend::iconBorderPen ( ) const
inline

◆ iconBorderPen() [3/3]

QPen QCPLegend::iconBorderPen ( ) const
inline

◆ iconSize() [1/3]

QSize QCPLegend::iconSize ( ) const
inline

◆ iconSize() [2/3]

QSize QCPLegend::iconSize ( ) const
inline

◆ iconSize() [3/3]

QSize QCPLegend::iconSize ( ) const
inline

◆ iconTextPadding() [1/3]

int QCPLegend::iconTextPadding ( ) const
inline

◆ iconTextPadding() [2/3]

int QCPLegend::iconTextPadding ( ) const
inline

◆ iconTextPadding() [3/3]

int QCPLegend::iconTextPadding ( ) const
inline

◆ item() [1/3]

QCPAbstractLegendItem* QCPLegend::item ( int  index) const

◆ item() [2/3]

QCPAbstractLegendItem* QCPLegend::item ( int  index) const

◆ item() [3/3]

QCPAbstractLegendItem* QCPLegend::item ( int  index) const

◆ itemCount() [1/3]

int QCPLegend::itemCount ( ) const

◆ itemCount() [2/3]

int QCPLegend::itemCount ( ) const

◆ itemCount() [3/3]

int QCPLegend::itemCount ( ) const

◆ itemWithPlottable() [1/3]

QCPPlottableLegendItem* QCPLegend::itemWithPlottable ( const QCPAbstractPlottable plottable) const

◆ itemWithPlottable() [2/3]

QCPPlottableLegendItem* QCPLegend::itemWithPlottable ( const QCPAbstractPlottable plottable) const

◆ itemWithPlottable() [3/3]

QCPPlottableLegendItem* QCPLegend::itemWithPlottable ( const QCPAbstractPlottable plottable) const

◆ parentPlotInitialized() [1/3]

virtual void QCPLegend::parentPlotInitialized ( QCustomPlot parentPlot)
protectedvirtual

Reimplemented from QCPLayoutElement.

◆ parentPlotInitialized() [2/3]

virtual void QCPLegend::parentPlotInitialized ( QCustomPlot parentPlot)
protectedvirtual

Reimplemented from QCPLayoutElement.

◆ parentPlotInitialized() [3/3]

virtual void QCPLegend::parentPlotInitialized ( QCustomPlot parentPlot)
protectedvirtual

Reimplemented from QCPLayoutElement.

◆ removeItem() [1/6]

bool QCPLegend::removeItem ( int  index)

◆ removeItem() [2/6]

bool QCPLegend::removeItem ( int  index)

◆ removeItem() [3/6]

bool QCPLegend::removeItem ( QCPAbstractLegendItem item)

◆ removeItem() [4/6]

bool QCPLegend::removeItem ( QCPAbstractLegendItem item)

◆ removeItem() [5/6]

bool QCPLegend::removeItem ( int  index)

◆ removeItem() [6/6]

bool QCPLegend::removeItem ( QCPAbstractLegendItem item)

◆ selectableChanged [1/3]

void QCPLegend::selectableChanged ( QCPLegend::SelectableParts  parts)
signal

◆ selectableChanged [2/3]

void QCPLegend::selectableChanged ( QCPLegend::SelectableParts  parts)
signal

◆ selectableChanged [3/3]

void QCPLegend::selectableChanged ( QCPLegend::SelectableParts  parts)
signal

◆ selectableParts() [1/3]

SelectableParts QCPLegend::selectableParts ( ) const
inline

◆ selectableParts() [2/3]

SelectableParts QCPLegend::selectableParts ( ) const
inline

◆ selectableParts() [3/3]

SelectableParts QCPLegend::selectableParts ( ) const
inline

◆ selectedBorderPen() [1/3]

QPen QCPLegend::selectedBorderPen ( ) const
inline

◆ selectedBorderPen() [2/3]

QPen QCPLegend::selectedBorderPen ( ) const
inline

◆ selectedBorderPen() [3/3]

QPen QCPLegend::selectedBorderPen ( ) const
inline

◆ selectedBrush() [1/3]

QBrush QCPLegend::selectedBrush ( ) const
inline

◆ selectedBrush() [2/3]

QBrush QCPLegend::selectedBrush ( ) const
inline

◆ selectedBrush() [3/3]

QBrush QCPLegend::selectedBrush ( ) const
inline

◆ selectedFont() [1/3]

QFont QCPLegend::selectedFont ( ) const
inline

◆ selectedFont() [2/3]

QFont QCPLegend::selectedFont ( ) const
inline

◆ selectedFont() [3/3]

QFont QCPLegend::selectedFont ( ) const
inline

◆ selectedIconBorderPen() [1/3]

QPen QCPLegend::selectedIconBorderPen ( ) const
inline

◆ selectedIconBorderPen() [2/3]

QPen QCPLegend::selectedIconBorderPen ( ) const
inline

◆ selectedIconBorderPen() [3/3]

QPen QCPLegend::selectedIconBorderPen ( ) const
inline

◆ selectedItems() [1/3]

QList<QCPAbstractLegendItem*> QCPLegend::selectedItems ( ) const

◆ selectedItems() [2/3]

QList<QCPAbstractLegendItem*> QCPLegend::selectedItems ( ) const

◆ selectedItems() [3/3]

QList<QCPAbstractLegendItem*> QCPLegend::selectedItems ( ) const

◆ selectedParts() [1/3]

SelectableParts QCPLegend::selectedParts ( ) const

◆ selectedParts() [2/3]

SelectableParts QCPLegend::selectedParts ( ) const

◆ selectedParts() [3/3]

SelectableParts QCPLegend::selectedParts ( ) const

◆ selectedTextColor() [1/3]

QColor QCPLegend::selectedTextColor ( ) const
inline

◆ selectedTextColor() [2/3]

QColor QCPLegend::selectedTextColor ( ) const
inline

◆ selectedTextColor() [3/3]

QColor QCPLegend::selectedTextColor ( ) const
inline

◆ selectEvent() [1/3]

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

Reimplemented from QCPLayerable.

◆ selectEvent() [2/3]

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

Reimplemented from QCPLayerable.

◆ selectEvent() [3/3]

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

Reimplemented from QCPLayerable.

◆ selectionCategory() [1/3]

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

Reimplemented from QCPLayerable.

◆ selectionCategory() [2/3]

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

Reimplemented from QCPLayerable.

◆ selectionCategory() [3/3]

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

Reimplemented from QCPLayerable.

◆ selectionChanged [1/3]

void QCPLegend::selectionChanged ( QCPLegend::SelectableParts  parts)
signal

◆ selectionChanged [2/3]

void QCPLegend::selectionChanged ( QCPLegend::SelectableParts  parts)
signal

◆ selectionChanged [3/3]

void QCPLegend::selectionChanged ( QCPLegend::SelectableParts  parts)
signal

◆ selectTest() [1/3]

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

Reimplemented from QCPLayoutElement.

◆ selectTest() [2/3]

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

Reimplemented from QCPLayoutElement.

◆ selectTest() [3/3]

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

Reimplemented from QCPLayoutElement.

◆ setBorderPen() [1/3]

void QCPLegend::setBorderPen ( const QPen &  pen)

◆ setBorderPen() [2/3]

void QCPLegend::setBorderPen ( const QPen &  pen)

◆ setBorderPen() [3/3]

void QCPLegend::setBorderPen ( const QPen &  pen)

◆ setBrush() [1/3]

void QCPLegend::setBrush ( const QBrush &  brush)

◆ setBrush() [2/3]

void QCPLegend::setBrush ( const QBrush &  brush)

◆ setBrush() [3/3]

void QCPLegend::setBrush ( const QBrush &  brush)

◆ setFont() [1/3]

void QCPLegend::setFont ( const QFont &  font)

◆ setFont() [2/3]

void QCPLegend::setFont ( const QFont &  font)

◆ setFont() [3/3]

void QCPLegend::setFont ( const QFont &  font)

◆ setIconBorderPen() [1/3]

void QCPLegend::setIconBorderPen ( const QPen &  pen)

◆ setIconBorderPen() [2/3]

void QCPLegend::setIconBorderPen ( const QPen &  pen)

◆ setIconBorderPen() [3/3]

void QCPLegend::setIconBorderPen ( const QPen &  pen)

◆ setIconSize() [1/6]

void QCPLegend::setIconSize ( const QSize &  size)

◆ setIconSize() [2/6]

void QCPLegend::setIconSize ( const QSize &  size)

◆ setIconSize() [3/6]

void QCPLegend::setIconSize ( int  width,
int  height 
)

◆ setIconSize() [4/6]

void QCPLegend::setIconSize ( int  width,
int  height 
)

◆ setIconSize() [5/6]

void QCPLegend::setIconSize ( const QSize &  size)

◆ setIconSize() [6/6]

void QCPLegend::setIconSize ( int  width,
int  height 
)

◆ setIconTextPadding() [1/3]

void QCPLegend::setIconTextPadding ( int  padding)

◆ setIconTextPadding() [2/3]

void QCPLegend::setIconTextPadding ( int  padding)

◆ setIconTextPadding() [3/3]

void QCPLegend::setIconTextPadding ( int  padding)

◆ setSelectableParts() [1/3]

Q_SLOT void QCPLegend::setSelectableParts ( const SelectableParts &  selectableParts)

◆ setSelectableParts() [2/3]

Q_SLOT void QCPLegend::setSelectableParts ( const SelectableParts &  selectableParts)

◆ setSelectableParts() [3/3]

Q_SLOT void QCPLegend::setSelectableParts ( const SelectableParts &  selectableParts)

◆ setSelectedBorderPen() [1/3]

void QCPLegend::setSelectedBorderPen ( const QPen &  pen)

◆ setSelectedBorderPen() [2/3]

void QCPLegend::setSelectedBorderPen ( const QPen &  pen)

◆ setSelectedBorderPen() [3/3]

void QCPLegend::setSelectedBorderPen ( const QPen &  pen)

◆ setSelectedBrush() [1/3]

void QCPLegend::setSelectedBrush ( const QBrush &  brush)

◆ setSelectedBrush() [2/3]

void QCPLegend::setSelectedBrush ( const QBrush &  brush)

◆ setSelectedBrush() [3/3]

void QCPLegend::setSelectedBrush ( const QBrush &  brush)

◆ setSelectedFont() [1/3]

void QCPLegend::setSelectedFont ( const QFont &  font)

◆ setSelectedFont() [2/3]

void QCPLegend::setSelectedFont ( const QFont &  font)

◆ setSelectedFont() [3/3]

void QCPLegend::setSelectedFont ( const QFont &  font)

◆ setSelectedIconBorderPen() [1/3]

void QCPLegend::setSelectedIconBorderPen ( const QPen &  pen)

◆ setSelectedIconBorderPen() [2/3]

void QCPLegend::setSelectedIconBorderPen ( const QPen &  pen)

◆ setSelectedIconBorderPen() [3/3]

void QCPLegend::setSelectedIconBorderPen ( const QPen &  pen)

◆ setSelectedParts() [1/3]

Q_SLOT void QCPLegend::setSelectedParts ( const SelectableParts &  selectedParts)

◆ setSelectedParts() [2/3]

Q_SLOT void QCPLegend::setSelectedParts ( const SelectableParts &  selectedParts)

◆ setSelectedParts() [3/3]

Q_SLOT void QCPLegend::setSelectedParts ( const SelectableParts &  selectedParts)

◆ setSelectedTextColor() [1/3]

void QCPLegend::setSelectedTextColor ( const QColor &  color)

◆ setSelectedTextColor() [2/3]

void QCPLegend::setSelectedTextColor ( const QColor &  color)

◆ setSelectedTextColor() [3/3]

void QCPLegend::setSelectedTextColor ( const QColor &  color)

◆ setTextColor() [1/3]

void QCPLegend::setTextColor ( const QColor &  color)

◆ setTextColor() [2/3]

void QCPLegend::setTextColor ( const QColor &  color)

◆ setTextColor() [3/3]

void QCPLegend::setTextColor ( const QColor &  color)

◆ textColor() [1/3]

QColor QCPLegend::textColor ( ) const
inline

◆ textColor() [2/3]

QColor QCPLegend::textColor ( ) const
inline

◆ textColor() [3/3]

QColor QCPLegend::textColor ( ) const
inline

Friends And Related Function Documentation

◆ QCPAbstractLegendItem

◆ QCustomPlot

QCustomPlot
friend

Member Data Documentation

◆ mBorderPen

QPen QCPLegend::mBorderPen
protected

◆ mBrush

QBrush QCPLegend::mBrush
protected

◆ mFont

QFont QCPLegend::mFont
protected

◆ mIconBorderPen

QPen QCPLegend::mIconBorderPen
protected

◆ mIconSize

QSize QCPLegend::mIconSize
protected

◆ mIconTextPadding

int QCPLegend::mIconTextPadding
protected

◆ mSelectableParts

SelectableParts QCPLegend::mSelectableParts
protected

◆ mSelectedBorderPen

QPen QCPLegend::mSelectedBorderPen
protected

◆ mSelectedBrush

QBrush QCPLegend::mSelectedBrush
protected

◆ mSelectedFont

QFont QCPLegend::mSelectedFont
protected

◆ mSelectedIconBorderPen

QPen QCPLegend::mSelectedIconBorderPen
protected

◆ mSelectedParts

SelectableParts QCPLegend::mSelectedParts
protected

◆ mSelectedTextColor

QColor QCPLegend::mSelectedTextColor
protected

◆ mTextColor

QColor QCPLegend::mTextColor
protected

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