Main Page · Class Overview · Hierarchy · All Classes · Special Pages
Public Functions | Protected Functions
QCPPolarLegendItem Class Reference

A legend item for polar plots. More...

Inheritance diagram for QCPPolarLegendItem:
Inheritance graph

Public Functions

  QCPPolarLegendItem (QCPLegend *parent, QCPPolarGraph *graph)
 
QCPPolarGraphpolarGraph ()
 
- Public Functions inherited from QCPAbstractLegendItem
 
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=nullptr) const
 
- Public Functions inherited from QCPLayoutElement
  QCPLayoutElement (QCustomPlot *parentPlot=nullptr)
 
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  maximumOuterSizeHint () const
 
virtual QList< QCPLayoutElement * >  elements (bool recursive) const
 
- Public Functions inherited from QCPLayerable
  QCPLayerable (QCustomPlot *plot, QString targetLayer=QString(), QCPLayerable *parentLayerable=nullptr)
 
bool  visible () const
 
QCustomPlotparentPlot () 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 Functions

virtual void  draw (QCPPainter *painter)
 
virtual QSize  minimumOuterSizeHint () const
 
QPen  getIconBorderPen () const
 
QColor  getTextColor () const
 
QFont  getFont () const
 
- Protected Functions inherited from QCPAbstractLegendItem
 
virtual void  applyDefaultAntialiasingHint (QCPPainter *painter) const
 
virtual QRect  clipRect () const
 
virtual void  selectEvent (QMouseEvent *event, bool additive, const QVariant &details, bool *selectionStateChanged)
 
virtual void  deselectEvent (bool *selectionStateChanged)
 
- Protected Functions inherited from QCPLayoutElement
virtual int  calculateAutoMargin (QCP::MarginSide side)
 
virtual void  layoutChanged ()
 
virtual void  parentPlotInitialized (QCustomPlot *parentPlot)
 
- Protected Functions inherited from QCPLayerable
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)
 
virtual void  wheelEvent (QWheelEvent *event)
 
void  initializeParentPlot (QCustomPlot *parentPlot)
 
 
bool  moveToLayer (QCPLayer *layer, bool prepend)
 
void  applyAntialiasingHint (QCPPainter *painter, bool localAntialiased, QCP::AntialiasedElement overrideElement) const
 

Additional Inherited Members

- Public Types inherited from QCPLayoutElement
enum   UpdatePhase
 
 
- Signals inherited from QCPAbstractLegendItem
void  selectionChanged (bool selected)
 
void  selectableChanged (bool selectable)
 
- Signals inherited from QCPLayerable
void  layerChanged (QCPLayer *newLayer)
 

Detailed Description

A legend item for polar plots.

Warning
In this QCustomPlot version, polar plots are a tech preview. Expect documentation and functionality to be incomplete, as well as changing public interfaces in the future.

Member Function Documentation

§ draw()

void QCPPolarLegendItem::draw ( QCPPainterpainter )
protectedvirtual

This function draws the layerable with the specified painter. It is only called by QCustomPlot, if the layerable is visible (setVisible).

Before this function is called, the painter's antialiasing state is set via applyDefaultAntialiasingHint, see the documentation there. Further, the clipping rectangle was set to clipRect.

Implements QCPAbstractLegendItem.

§ minimumOuterSizeHint()

QSize QCPPolarLegendItem::minimumOuterSizeHint ( ) const
protectedvirtual

Returns the suggested minimum size this layout element (the outerRect) may be compressed to, if no manual minimum size is set.

if a minimum size (setMinimumSize) was not set manually, parent layouts use the returned size (usually indirectly through QCPLayout::getFinalMinimumOuterSize) to determine the minimum allowed size of this layout element.

A manual minimum size is considered set if it is non-zero.

The default implementation simply returns the sum of the horizontal margins for the width and the sum of the vertical margins for the height. Reimplementations may use their detailed knowledge about the layout element's content to provide size hints.

Reimplemented from QCPLayoutElement.


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

AltStyle によって変換されたページ (->オリジナル) /