QCPBars Class Reference

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

Inheritance diagram for QCPBars:
Collaboration diagram for QCPBars:

Public Types

enum  WidthType {
  wtAbsolute, wtAxisRectRatio, wtPlotCoords, wtAbsolute,
  wtAxisRectRatio, wtPlotCoords, wtAbsolute, wtAxisRectRatio,
  wtPlotCoords
}
 
enum  WidthType {
  wtAbsolute, wtAxisRectRatio, wtPlotCoords, wtAbsolute,
  wtAxisRectRatio, wtPlotCoords, wtAbsolute, wtAxisRectRatio,
  wtPlotCoords
}
 
enum  WidthType {
  wtAbsolute, wtAxisRectRatio, wtPlotCoords, wtAbsolute,
  wtAxisRectRatio, wtPlotCoords, wtAbsolute, wtAxisRectRatio,
  wtPlotCoords
}
 

Public Member Functions

 QCPBars (QCPAxis *keyAxis, QCPAxis *valueAxis)
 
virtual ~QCPBars ()
 
double width () const
 
WidthType widthType () const
 
QCPBarsGroupbarsGroup () const
 
double baseValue () const
 
QCPBarsbarBelow () const
 
QCPBarsbarAbove () const
 
QCPBarDataMapdata () const
 
void setWidth (double width)
 
void setWidthType (WidthType widthType)
 
void setBarsGroup (QCPBarsGroup *barsGroup)
 
void setBaseValue (double baseValue)
 
void setData (QCPBarDataMap *data, bool copy=false)
 
void setData (const QVector< double > &key, const QVector< double > &value)
 
void moveBelow (QCPBars *bars)
 
void moveAbove (QCPBars *bars)
 
void addData (const QCPBarDataMap &dataMap)
 
void addData (const QCPBarData &data)
 
void addData (double key, double value)
 
void addData (const QVector< double > &keys, const QVector< double > &values)
 
void removeDataBefore (double key)
 
void removeDataAfter (double key)
 
void removeData (double fromKey, double toKey)
 
void removeData (double key)
 
virtual void clearData ()
 
virtual double selectTest (const QPointF &pos, bool onlySelectable, QVariant *details=0) const
 
 QCPBars (QCPAxis *keyAxis, QCPAxis *valueAxis)
 
virtual ~QCPBars ()
 
double width () const
 
WidthType widthType () const
 
QCPBarsGroupbarsGroup () const
 
double baseValue () const
 
double stackingGap () const
 
QCPBarsbarBelow () const
 
QCPBarsbarAbove () const
 
QSharedPointer< QCPBarsDataContainerdata () const
 
void setData (QSharedPointer< QCPBarsDataContainer > data)
 
void setData (const QVector< double > &keys, const QVector< double > &values, bool alreadySorted=false)
 
void setWidth (double width)
 
void setWidthType (WidthType widthType)
 
void setBarsGroup (QCPBarsGroup *barsGroup)
 
void setBaseValue (double baseValue)
 
void setStackingGap (double pixels)
 
void addData (const QVector< double > &keys, const QVector< double > &values, bool alreadySorted=false)
 
void addData (double key, double value)
 
void moveBelow (QCPBars *bars)
 
void moveAbove (QCPBars *bars)
 
virtual QCPDataSelection selectTestRect (const QRectF &rect, bool onlySelectable) const Q_DECL_OVERRIDE
 
virtual double selectTest (const QPointF &pos, bool onlySelectable, QVariant *details=0) const Q_DECL_OVERRIDE
 
virtual QCPRange getKeyRange (bool &foundRange, QCP::SignDomain inSignDomain=QCP::sdBoth) const Q_DECL_OVERRIDE
 
virtual QCPRange getValueRange (bool &foundRange, QCP::SignDomain inSignDomain=QCP::sdBoth, const QCPRange &inKeyRange=QCPRange()) const Q_DECL_OVERRIDE
 
virtual QPointF dataPixelPosition (int index) const Q_DECL_OVERRIDE
 
 QCPBars (QCPAxis *keyAxis, QCPAxis *valueAxis)
 
virtual ~QCPBars ()
 
double width () const
 
WidthType widthType () const
 
QCPBarsGroupbarsGroup () const
 
double baseValue () const
 
QCPBarsbarBelow () const
 
QCPBarsbarAbove () const
 
QCPBarDataMapdata () const
 
void setWidth (double width)
 
void setWidthType (WidthType widthType)
 
void setBarsGroup (QCPBarsGroup *barsGroup)
 
void setBaseValue (double baseValue)
 
void setData (QCPBarDataMap *data, bool copy=false)
 
void setData (const QVector< double > &key, const QVector< double > &value)
 
void moveBelow (QCPBars *bars)
 
void moveAbove (QCPBars *bars)
 
void addData (const QCPBarDataMap &dataMap)
 
void addData (const QCPBarData &data)
 
void addData (double key, double value)
 
void addData (const QVector< double > &keys, const QVector< double > &values)
 
void removeDataBefore (double key)
 
void removeDataAfter (double key)
 
void removeData (double fromKey, double toKey)
 
void removeData (double key)
 
virtual void clearData ()
 
virtual double selectTest (const QPointF &pos, bool onlySelectable, QVariant *details=0) const
 
- Public Member Functions inherited from QCPAbstractPlottable
 QCPAbstractPlottable (QCPAxis *keyAxis, QCPAxis *valueAxis)
 
QString name () const
 
bool antialiasedFill () const
 
bool antialiasedScatters () const
 
bool antialiasedErrorBars () const
 
QPen pen () const
 
QPen selectedPen () const
 
QBrush brush () const
 
QBrush selectedBrush () const
 
QCPAxiskeyAxis () const
 
QCPAxisvalueAxis () const
 
bool selectable () const
 
bool selected () const
 
void setName (const QString &name)
 
void setAntialiasedFill (bool enabled)
 
void setAntialiasedScatters (bool enabled)
 
void setAntialiasedErrorBars (bool enabled)
 
void setPen (const QPen &pen)
 
void setSelectedPen (const QPen &pen)
 
void setBrush (const QBrush &brush)
 
void setSelectedBrush (const QBrush &brush)
 
void setKeyAxis (QCPAxis *axis)
 
void setValueAxis (QCPAxis *axis)
 
Q_SLOT void setSelectable (bool selectable)
 
Q_SLOT void setSelected (bool selected)
 
virtual bool addToLegend ()
 
virtual bool removeFromLegend () const
 
void rescaleAxes (bool onlyEnlarge=false) const
 
void rescaleKeyAxis (bool onlyEnlarge=false) const
 
void rescaleValueAxis (bool onlyEnlarge=false) const
 
 QCPAbstractPlottable (QCPAxis *keyAxis, QCPAxis *valueAxis)
 
virtual ~QCPAbstractPlottable ()
 
QString name () const
 
bool antialiasedFill () const
 
bool antialiasedScatters () const
 
QPen pen () const
 
QBrush brush () const
 
QCPAxiskeyAxis () const
 
QCPAxisvalueAxis () const
 
QCP::SelectionType selectable () const
 
bool selected () const
 
QCPDataSelection selection () const
 
QCPSelectionDecoratorselectionDecorator () const
 
void setName (const QString &name)
 
void setAntialiasedFill (bool enabled)
 
void setAntialiasedScatters (bool enabled)
 
void setPen (const QPen &pen)
 
void setBrush (const QBrush &brush)
 
void setKeyAxis (QCPAxis *axis)
 
void setValueAxis (QCPAxis *axis)
 
Q_SLOT void setSelectable (QCP::SelectionType selectable)
 
Q_SLOT void setSelection (QCPDataSelection selection)
 
void setSelectionDecorator (QCPSelectionDecorator *decorator)
 
void coordsToPixels (double key, double value, double &x, double &y) const
 
const QPointF coordsToPixels (double key, double value) const
 
void pixelsToCoords (double x, double y, double &key, double &value) const
 
void pixelsToCoords (const QPointF &pixelPos, double &key, double &value) const
 
void rescaleAxes (bool onlyEnlarge=false) const
 
void rescaleKeyAxis (bool onlyEnlarge=false) const
 
void rescaleValueAxis (bool onlyEnlarge=false, bool inKeyRange=false) const
 
bool addToLegend (QCPLegend *legend)
 
bool addToLegend ()
 
bool removeFromLegend (QCPLegend *legend) const
 
bool removeFromLegend () const
 
 QCPAbstractPlottable (QCPAxis *keyAxis, QCPAxis *valueAxis)
 
QString name () const
 
bool antialiasedFill () const
 
bool antialiasedScatters () const
 
bool antialiasedErrorBars () const
 
QPen pen () const
 
QPen selectedPen () const
 
QBrush brush () const
 
QBrush selectedBrush () const
 
QCPAxiskeyAxis () const
 
QCPAxisvalueAxis () const
 
bool selectable () const
 
bool selected () const
 
void setName (const QString &name)
 
void setAntialiasedFill (bool enabled)
 
void setAntialiasedScatters (bool enabled)
 
void setAntialiasedErrorBars (bool enabled)
 
void setPen (const QPen &pen)
 
void setSelectedPen (const QPen &pen)
 
void setBrush (const QBrush &brush)
 
void setSelectedBrush (const QBrush &brush)
 
void setKeyAxis (QCPAxis *axis)
 
void setValueAxis (QCPAxis *axis)
 
Q_SLOT void setSelectable (bool selectable)
 
Q_SLOT void setSelected (bool selected)
 
virtual bool addToLegend ()
 
virtual bool removeFromLegend () const
 
void rescaleAxes (bool onlyEnlarge=false) const
 
void rescaleKeyAxis (bool onlyEnlarge=false) const
 
void rescaleValueAxis (bool onlyEnlarge=false) 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
 
- Public Member Functions inherited from QCPAbstractPlottable1D< QCPBarsData >
 QCPAbstractPlottable1D (QCPAxis *keyAxis, QCPAxis *valueAxis)
 
virtual ~QCPAbstractPlottable1D ()
 
virtual int dataCount () const Q_DECL_OVERRIDE
 
virtual double dataMainKey (int index) const Q_DECL_OVERRIDE
 
virtual double dataSortKey (int index) const Q_DECL_OVERRIDE
 
virtual double dataMainValue (int index) const Q_DECL_OVERRIDE
 
virtual QCPRange dataValueRange (int index) const Q_DECL_OVERRIDE
 
virtual bool sortKeyIsMainKey () const Q_DECL_OVERRIDE
 
virtual int findBegin (double sortKey, bool expandedRange=true) const Q_DECL_OVERRIDE
 
virtual int findEnd (double sortKey, bool expandedRange=true) const Q_DECL_OVERRIDE
 
virtual QCPPlottableInterface1Dinterface1D () Q_DECL_OVERRIDE
 
- Public Member Functions inherited from QCPPlottableInterface1D
virtual ~QCPPlottableInterface1D ()
 

Protected Member Functions

virtual void draw (QCPPainter *painter)
 
virtual void drawLegendIcon (QCPPainter *painter, const QRectF &rect) const
 
virtual QCPRange getKeyRange (bool &foundRange, SignDomain inSignDomain=sdBoth) const
 
virtual QCPRange getValueRange (bool &foundRange, SignDomain inSignDomain=sdBoth) const
 
void getVisibleDataBounds (QCPBarDataMap::const_iterator &lower, QCPBarDataMap::const_iterator &upperEnd) const
 
QPolygonF getBarPolygon (double key, double value) const
 
void getPixelWidth (double key, double &lower, double &upper) const
 
double getStackedBaseValue (double key, bool positive) const
 
virtual void draw (QCPPainter *painter) Q_DECL_OVERRIDE
 
virtual void drawLegendIcon (QCPPainter *painter, const QRectF &rect) const Q_DECL_OVERRIDE
 
void getVisibleDataBounds (QCPBarsDataContainer::const_iterator &begin, QCPBarsDataContainer::const_iterator &end) const
 
QRectF getBarRect (double key, double value) const
 
void getPixelWidth (double key, double &lower, double &upper) const
 
double getStackedBaseValue (double key, bool positive) const
 
virtual void draw (QCPPainter *painter)
 
virtual void drawLegendIcon (QCPPainter *painter, const QRectF &rect) const
 
virtual QCPRange getKeyRange (bool &foundRange, SignDomain inSignDomain=sdBoth) const
 
virtual QCPRange getValueRange (bool &foundRange, SignDomain inSignDomain=sdBoth) const
 
void getVisibleDataBounds (QCPBarDataMap::const_iterator &lower, QCPBarDataMap::const_iterator &upperEnd) const
 
QPolygonF getBarPolygon (double key, double value) const
 
void getPixelWidth (double key, double &lower, double &upper) const
 
double getStackedBaseValue (double key, bool positive) const
 
- Protected Member Functions inherited from QCPAbstractPlottable
virtual QRect clipRect () const
 
virtual QCP::Interaction selectionCategory () const
 
void applyDefaultAntialiasingHint (QCPPainter *painter) const
 
virtual void selectEvent (QMouseEvent *event, bool additive, const QVariant &details, bool *selectionStateChanged)
 
virtual void deselectEvent (bool *selectionStateChanged)
 
void coordsToPixels (double key, double value, double &x, double &y) const
 
const QPointF coordsToPixels (double key, double value) const
 
void pixelsToCoords (double x, double y, double &key, double &value) const
 
void pixelsToCoords (const QPointF &pixelPos, double &key, double &value) const
 
QPen mainPen () const
 
QBrush mainBrush () const
 
void applyFillAntialiasingHint (QCPPainter *painter) const
 
void applyScattersAntialiasingHint (QCPPainter *painter) const
 
void applyErrorBarsAntialiasingHint (QCPPainter *painter) const
 
double distSqrToLine (const QPointF &start, const QPointF &end, const QPointF &point) const
 
virtual QRect clipRect () const Q_DECL_OVERRIDE
 
virtual QCP::Interaction selectionCategory () const Q_DECL_OVERRIDE
 
void applyDefaultAntialiasingHint (QCPPainter *painter) const 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
 
void applyFillAntialiasingHint (QCPPainter *painter) const
 
void applyScattersAntialiasingHint (QCPPainter *painter) const
 
virtual QRect clipRect () const
 
virtual QCP::Interaction selectionCategory () const
 
void applyDefaultAntialiasingHint (QCPPainter *painter) const
 
virtual void selectEvent (QMouseEvent *event, bool additive, const QVariant &details, bool *selectionStateChanged)
 
virtual void deselectEvent (bool *selectionStateChanged)
 
void coordsToPixels (double key, double value, double &x, double &y) const
 
const QPointF coordsToPixels (double key, double value) const
 
void pixelsToCoords (double x, double y, double &key, double &value) const
 
void pixelsToCoords (const QPointF &pixelPos, double &key, double &value) const
 
QPen mainPen () const
 
QBrush mainBrush () const
 
void applyFillAntialiasingHint (QCPPainter *painter) const
 
void applyScattersAntialiasingHint (QCPPainter *painter) const
 
void applyErrorBarsAntialiasingHint (QCPPainter *painter) const
 
double distSqrToLine (const QPointF &start, const QPointF &end, const QPointF &point) const
 
- Protected Member Functions inherited from QCPLayerable
virtual void parentPlotInitialized (QCustomPlot *parentPlot)
 
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 parentPlotInitialized (QCustomPlot *parentPlot)
 
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)
 
void setParentLayerable (QCPLayerable *parentLayerable)
 
bool moveToLayer (QCPLayer *layer, bool prepend)
 
void applyAntialiasingHint (QCPPainter *painter, bool localAntialiased, QCP::AntialiasedElement overrideElement) const
 
virtual void parentPlotInitialized (QCustomPlot *parentPlot)
 
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 Member Functions inherited from QCPAbstractPlottable1D< QCPBarsData >
void getDataSegments (QList< QCPDataRange > &selectedSegments, QList< QCPDataRange > &unselectedSegments) const
 
void drawPolyline (QCPPainter *painter, const QVector< QPointF > &lineData) const
 

Static Protected Member Functions

static void connectBars (QCPBars *lower, QCPBars *upper)
 
static void connectBars (QCPBars *lower, QCPBars *upper)
 
static void connectBars (QCPBars *lower, QCPBars *upper)
 

Protected Attributes

QCPBarDataMapmData
 
double mWidth
 
WidthType mWidthType
 
QCPBarsGroupmBarsGroup
 
double mBaseValue
 
QPointer< QCPBarsmBarBelow
 
QPointer< QCPBarsmBarAbove
 
double mStackingGap
 
- Protected Attributes inherited from QCPAbstractPlottable
QString mName
 
bool mAntialiasedFill
 
bool mAntialiasedScatters
 
bool mAntialiasedErrorBars
 
QPen mPen
 
QPen mSelectedPen
 
QBrush mBrush
 
QBrush mSelectedBrush
 
QPointer< QCPAxismKeyAxis
 
QPointer< QCPAxismValueAxis
 
bool mSelectable
 
bool mSelected
 
QCP::SelectionType mSelectable
 
QCPDataSelection mSelection
 
QCPSelectionDecoratormSelectionDecorator
 
- Protected Attributes inherited from QCPLayerable
bool mVisible
 
QCustomPlotmParentPlot
 
QPointer< QCPLayerablemParentLayerable
 
QCPLayermLayer
 
bool mAntialiased
 
- Protected Attributes inherited from QCPAbstractPlottable1D< QCPBarsData >
QSharedPointer< QCPDataContainer< QCPBarsData > > mDataContainer
 

Friends

class QCustomPlot
 
class QCPLegend
 
class QCPBarsGroup
 

Additional Inherited Members

- Signals inherited from QCPAbstractPlottable
void selectionChanged (bool selected)
 
void selectableChanged (bool selectable)
 
void selectionChanged (bool selected)
 
void selectionChanged (const QCPDataSelection &selection)
 
void selectableChanged (QCP::SelectionType 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)
 
- Protected Types inherited from QCPAbstractPlottable
enum  SignDomain {
  sdNegative, sdBoth, sdPositive, sdNegative,
  sdBoth, sdPositive
}
 
enum  SignDomain {
  sdNegative, sdBoth, sdPositive, sdNegative,
  sdBoth, sdPositive
}
 

Member Enumeration Documentation

◆ WidthType [1/3]

Defines the ways the width of the bar can be specified. Thus it defines what the number passed to setWidth actually means.

See also
setWidthType, setWidth
Enumerator
wtAbsolute 

Bar width is in absolute pixels.

wtAxisRectRatio 

Bar width is given by a fraction of the axis rect size.

wtPlotCoords 

Bar width is in key coordinates and thus scales with the key axis range.

wtAbsolute 

Bar width is in absolute pixels.

wtAxisRectRatio 

Bar width is given by a fraction of the axis rect size.

wtPlotCoords 

Bar width is in key coordinates and thus scales with the key axis range.

wtAbsolute 

Bar width is in absolute pixels.

wtAxisRectRatio 

Bar width is given by a fraction of the axis rect size.

wtPlotCoords 

Bar width is in key coordinates and thus scales with the key axis range.

◆ WidthType [2/3]

Defines the ways the width of the bar can be specified. Thus it defines what the number passed to setWidth actually means.

See also
setWidthType, setWidth
Enumerator
wtAbsolute 

Bar width is in absolute pixels.

wtAxisRectRatio 

Bar width is given by a fraction of the axis rect size.

wtPlotCoords 

Bar width is in key coordinates and thus scales with the key axis range.

wtAbsolute 

Bar width is in absolute pixels.

wtAxisRectRatio 

Bar width is given by a fraction of the axis rect size.

wtPlotCoords 

Bar width is in key coordinates and thus scales with the key axis range.

wtAbsolute 

Bar width is in absolute pixels.

wtAxisRectRatio 

Bar width is given by a fraction of the axis rect size.

wtPlotCoords 

Bar width is in key coordinates and thus scales with the key axis range.

◆ WidthType [3/3]

Defines the ways the width of the bar can be specified. Thus it defines what the number passed to setWidth actually means.

See also
setWidthType, setWidth
Enumerator
wtAbsolute 

Bar width is in absolute pixels.

wtAxisRectRatio 

Bar width is given by a fraction of the axis rect size.

wtPlotCoords 

Bar width is in key coordinates and thus scales with the key axis range.

wtAbsolute 

Bar width is in absolute pixels.

wtAxisRectRatio 

Bar width is given by a fraction of the axis rect size.

wtPlotCoords 

Bar width is in key coordinates and thus scales with the key axis range.

wtAbsolute 

Bar width is in absolute pixels.

wtAxisRectRatio 

Bar width is given by a fraction of the axis rect size.

wtPlotCoords 

Bar width is in key coordinates and thus scales with the key axis range.

Constructor & Destructor Documentation

◆ QCPBars() [1/3]

QCPBars::QCPBars ( QCPAxis keyAxis,
QCPAxis valueAxis 
)
explicit

◆ ~QCPBars() [1/3]

virtual QCPBars::~QCPBars ( )
virtual

◆ QCPBars() [2/3]

QCPBars::QCPBars ( QCPAxis keyAxis,
QCPAxis valueAxis 
)
explicit

◆ ~QCPBars() [2/3]

virtual QCPBars::~QCPBars ( )
virtual

◆ QCPBars() [3/3]

QCPBars::QCPBars ( QCPAxis keyAxis,
QCPAxis valueAxis 
)
explicit

◆ ~QCPBars() [3/3]

virtual QCPBars::~QCPBars ( )
virtual

Member Function Documentation

◆ addData() [1/10]

void QCPBars::addData ( const QCPBarDataMap dataMap)

◆ addData() [2/10]

void QCPBars::addData ( const QCPBarDataMap dataMap)

◆ addData() [3/10]

void QCPBars::addData ( const QCPBarData data)

◆ addData() [4/10]

void QCPBars::addData ( const QCPBarData data)

◆ addData() [5/10]

void QCPBars::addData ( double  key,
double  value 
)

◆ addData() [6/10]

void QCPBars::addData ( double  key,
double  value 
)

◆ addData() [7/10]

void QCPBars::addData ( const QVector< double > &  keys,
const QVector< double > &  values 
)

◆ addData() [8/10]

void QCPBars::addData ( const QVector< double > &  keys,
const QVector< double > &  values 
)

◆ addData() [9/10]

void QCPBars::addData ( const QVector< double > &  keys,
const QVector< double > &  values,
bool  alreadySorted = false 
)

◆ addData() [10/10]

void QCPBars::addData ( double  key,
double  value 
)

◆ barAbove() [1/3]

QCPBars* QCPBars::barAbove ( ) const
inline

◆ barAbove() [2/3]

QCPBars* QCPBars::barAbove ( ) const
inline

◆ barAbove() [3/3]

QCPBars* QCPBars::barAbove ( ) const
inline

◆ barBelow() [1/3]

QCPBars* QCPBars::barBelow ( ) const
inline

◆ barBelow() [2/3]

QCPBars* QCPBars::barBelow ( ) const
inline

◆ barBelow() [3/3]

QCPBars* QCPBars::barBelow ( ) const
inline

◆ barsGroup() [1/3]

QCPBarsGroup* QCPBars::barsGroup ( ) const
inline

◆ barsGroup() [2/3]

QCPBarsGroup* QCPBars::barsGroup ( ) const
inline

◆ barsGroup() [3/3]

QCPBarsGroup* QCPBars::barsGroup ( ) const
inline

◆ baseValue() [1/3]

double QCPBars::baseValue ( ) const
inline

◆ baseValue() [2/3]

double QCPBars::baseValue ( ) const
inline

◆ baseValue() [3/3]

double QCPBars::baseValue ( ) const
inline

◆ clearData() [1/2]

virtual void QCPBars::clearData ( )
virtual

Implements QCPAbstractPlottable.

◆ clearData() [2/2]

virtual void QCPBars::clearData ( )
virtual

Implements QCPAbstractPlottable.

◆ connectBars() [1/3]

static void QCPBars::connectBars ( QCPBars lower,
QCPBars upper 
)
staticprotected

◆ connectBars() [2/3]

static void QCPBars::connectBars ( QCPBars lower,
QCPBars upper 
)
staticprotected

◆ connectBars() [3/3]

static void QCPBars::connectBars ( QCPBars lower,
QCPBars upper 
)
staticprotected

◆ data() [1/3]

QCPBarDataMap* QCPBars::data ( ) const
inline

◆ data() [2/3]

QCPBarDataMap* QCPBars::data ( ) const
inline

◆ data() [3/3]

QSharedPointer<QCPBarsDataContainer> QCPBars::data ( ) const
inline

◆ dataPixelPosition()

virtual QPointF QCPBars::dataPixelPosition ( int  index) const
virtual

Returns the pixel position on the widget surface at which the data point at the given index appears.

Usually this corresponds to the point of dataMainKey/dataMainValue, in pixel coordinates. However, depending on the plottable, this might be a different apparent position than just a coord-to-pixel transform of those values. For example, QCPBars apparent data values can be shifted depending on their stacking, bar grouping or configured base value.

Reimplemented from QCPAbstractPlottable1D< QCPBarsData >.

◆ draw() [1/3]

virtual void QCPBars::draw ( QCPPainter painter)
protectedvirtual

Implements QCPAbstractPlottable.

◆ draw() [2/3]

virtual void QCPBars::draw ( QCPPainter painter)
protectedvirtual

Implements QCPAbstractPlottable.

◆ draw() [3/3]

virtual void QCPBars::draw ( QCPPainter painter)
protectedvirtual

Implements QCPAbstractPlottable.

◆ drawLegendIcon() [1/3]

virtual void QCPBars::drawLegendIcon ( QCPPainter painter,
const QRectF &  rect 
) const
protectedvirtual

Implements QCPAbstractPlottable.

◆ drawLegendIcon() [2/3]

virtual void QCPBars::drawLegendIcon ( QCPPainter painter,
const QRectF &  rect 
) const
protectedvirtual

Implements QCPAbstractPlottable.

◆ drawLegendIcon() [3/3]

virtual void QCPBars::drawLegendIcon ( QCPPainter painter,
const QRectF &  rect 
) const
protectedvirtual

Implements QCPAbstractPlottable.

◆ getBarPolygon() [1/2]

QPolygonF QCPBars::getBarPolygon ( double  key,
double  value 
) const
protected

◆ getBarPolygon() [2/2]

QPolygonF QCPBars::getBarPolygon ( double  key,
double  value 
) const
protected

◆ getBarRect()

QRectF QCPBars::getBarRect ( double  key,
double  value 
) const
protected

◆ getKeyRange() [1/3]

virtual QCPRange QCPBars::getKeyRange ( bool &  foundRange,
SignDomain  inSignDomain = sdBoth 
) const
protectedvirtual

Implements QCPAbstractPlottable.

◆ getKeyRange() [2/3]

virtual QCPRange QCPBars::getKeyRange ( bool &  foundRange,
SignDomain  inSignDomain = sdBoth 
) const
protectedvirtual

Implements QCPAbstractPlottable.

◆ getKeyRange() [3/3]

virtual QCPRange QCPBars::getKeyRange ( bool &  foundRange,
QCP::SignDomain  inSignDomain = QCP::sdBoth 
) const
virtual

Implements QCPAbstractPlottable.

◆ getPixelWidth() [1/3]

void QCPBars::getPixelWidth ( double  key,
double &  lower,
double &  upper 
) const
protected

◆ getPixelWidth() [2/3]

void QCPBars::getPixelWidth ( double  key,
double &  lower,
double &  upper 
) const
protected

◆ getPixelWidth() [3/3]

void QCPBars::getPixelWidth ( double  key,
double &  lower,
double &  upper 
) const
protected

◆ getStackedBaseValue() [1/3]

double QCPBars::getStackedBaseValue ( double  key,
bool  positive 
) const
protected

◆ getStackedBaseValue() [2/3]

double QCPBars::getStackedBaseValue ( double  key,
bool  positive 
) const
protected

◆ getStackedBaseValue() [3/3]

double QCPBars::getStackedBaseValue ( double  key,
bool  positive 
) const
protected

◆ getValueRange() [1/3]

virtual QCPRange QCPBars::getValueRange ( bool &  foundRange,
SignDomain  inSignDomain = sdBoth 
) const
protectedvirtual

Implements QCPAbstractPlottable.

◆ getValueRange() [2/3]

virtual QCPRange QCPBars::getValueRange ( bool &  foundRange,
SignDomain  inSignDomain = sdBoth 
) const
protectedvirtual

Implements QCPAbstractPlottable.

◆ getValueRange() [3/3]

virtual QCPRange QCPBars::getValueRange ( bool &  foundRange,
QCP::SignDomain  inSignDomain = QCP::sdBoth,
const QCPRange inKeyRange = QCPRange() 
) const
virtual

Implements QCPAbstractPlottable.

◆ getVisibleDataBounds() [1/3]

void QCPBars::getVisibleDataBounds ( QCPBarDataMap::const_iterator &  lower,
QCPBarDataMap::const_iterator &  upperEnd 
) const
protected

◆ getVisibleDataBounds() [2/3]

void QCPBars::getVisibleDataBounds ( QCPBarDataMap::const_iterator &  lower,
QCPBarDataMap::const_iterator &  upperEnd 
) const
protected

◆ getVisibleDataBounds() [3/3]

void QCPBars::getVisibleDataBounds ( QCPBarsDataContainer::const_iterator begin,
QCPBarsDataContainer::const_iterator end 
) const
protected

◆ moveAbove() [1/3]

void QCPBars::moveAbove ( QCPBars bars)

◆ moveAbove() [2/3]

void QCPBars::moveAbove ( QCPBars bars)

◆ moveAbove() [3/3]

void QCPBars::moveAbove ( QCPBars bars)

◆ moveBelow() [1/3]

void QCPBars::moveBelow ( QCPBars bars)

◆ moveBelow() [2/3]

void QCPBars::moveBelow ( QCPBars bars)

◆ moveBelow() [3/3]

void QCPBars::moveBelow ( QCPBars bars)

◆ removeData() [1/4]

void QCPBars::removeData ( double  fromKey,
double  toKey 
)

◆ removeData() [2/4]

void QCPBars::removeData ( double  fromKey,
double  toKey 
)

◆ removeData() [3/4]

void QCPBars::removeData ( double  key)

◆ removeData() [4/4]

void QCPBars::removeData ( double  key)

◆ removeDataAfter() [1/2]

void QCPBars::removeDataAfter ( double  key)

◆ removeDataAfter() [2/2]

void QCPBars::removeDataAfter ( double  key)

◆ removeDataBefore() [1/2]

void QCPBars::removeDataBefore ( double  key)

◆ removeDataBefore() [2/2]

void QCPBars::removeDataBefore ( double  key)

◆ selectTest() [1/3]

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

Implements QCPAbstractPlottable.

◆ selectTest() [2/3]

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

Implements QCPAbstractPlottable.

◆ selectTest() [3/3]

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

Implements QCPAbstractPlottable.

◆ selectTestRect()

virtual QCPDataSelection QCPBars::selectTestRect ( const QRectF &  rect,
bool  onlySelectable 
) const
virtual

Implements a rect-selection algorithm assuming the data (accessed via the 1D data interface) is point-like. Most subclasses will want to reimplement this method again, to provide a more accurate hit test based on the true data visualization geometry.

Reimplemented from QCPAbstractPlottable1D< QCPBarsData >.

◆ setBarsGroup() [1/3]

void QCPBars::setBarsGroup ( QCPBarsGroup barsGroup)

◆ setBarsGroup() [2/3]

void QCPBars::setBarsGroup ( QCPBarsGroup barsGroup)

◆ setBarsGroup() [3/3]

void QCPBars::setBarsGroup ( QCPBarsGroup barsGroup)

◆ setBaseValue() [1/3]

void QCPBars::setBaseValue ( double  baseValue)

◆ setBaseValue() [2/3]

void QCPBars::setBaseValue ( double  baseValue)

◆ setBaseValue() [3/3]

void QCPBars::setBaseValue ( double  baseValue)

◆ setData() [1/6]

void QCPBars::setData ( QCPBarDataMap data,
bool  copy = false 
)

◆ setData() [2/6]

void QCPBars::setData ( QCPBarDataMap data,
bool  copy = false 
)

◆ setData() [3/6]

void QCPBars::setData ( const QVector< double > &  key,
const QVector< double > &  value 
)

◆ setData() [4/6]

void QCPBars::setData ( const QVector< double > &  key,
const QVector< double > &  value 
)

◆ setData() [5/6]

void QCPBars::setData ( QSharedPointer< QCPBarsDataContainer data)

◆ setData() [6/6]

void QCPBars::setData ( const QVector< double > &  keys,
const QVector< double > &  values,
bool  alreadySorted = false 
)

◆ setStackingGap()

void QCPBars::setStackingGap ( double  pixels)

◆ setWidth() [1/3]

void QCPBars::setWidth ( double  width)

◆ setWidth() [2/3]

void QCPBars::setWidth ( double  width)

◆ setWidth() [3/3]

void QCPBars::setWidth ( double  width)

◆ setWidthType() [1/3]

void QCPBars::setWidthType ( WidthType  widthType)

◆ setWidthType() [2/3]

void QCPBars::setWidthType ( WidthType  widthType)

◆ setWidthType() [3/3]

void QCPBars::setWidthType ( WidthType  widthType)

◆ stackingGap()

double QCPBars::stackingGap ( ) const
inline

◆ width() [1/3]

double QCPBars::width ( ) const
inline

◆ width() [2/3]

double QCPBars::width ( ) const
inline

◆ width() [3/3]

double QCPBars::width ( ) const
inline

◆ widthType() [1/3]

WidthType QCPBars::widthType ( ) const
inline

◆ widthType() [2/3]

WidthType QCPBars::widthType ( ) const
inline

◆ widthType() [3/3]

WidthType QCPBars::widthType ( ) const
inline

Friends And Related Function Documentation

◆ QCPBarsGroup

QCPBarsGroup
friend

◆ QCPLegend

QCPLegend
friend

◆ QCustomPlot

QCustomPlot
friend

Member Data Documentation

◆ mBarAbove

QPointer< QCPBars > QCPBars::mBarAbove
protected

◆ mBarBelow

QPointer< QCPBars > QCPBars::mBarBelow
protected

◆ mBarsGroup

QCPBarsGroup * QCPBars::mBarsGroup
protected

◆ mBaseValue

double QCPBars::mBaseValue
protected

◆ mData

QCPBarDataMap * QCPBars::mData
protected

◆ mStackingGap

double QCPBars::mStackingGap
protected

◆ mWidth

double QCPBars::mWidth
protected

◆ mWidthType

WidthType QCPBars::mWidthType
protected

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