|
| QCPColorScale (QCustomPlot *parentPlot) |
|
virtual | ~QCPColorScale () |
|
QCPAxis * | axis () const |
|
QCPAxis::AxisType | type () const |
|
QCPRange | dataRange () const |
|
QCPAxis::ScaleType | dataScaleType () const |
|
QCPColorGradient | gradient () const |
|
QString | label () const |
|
int | barWidth () const |
|
bool | rangeDrag () const |
|
bool | rangeZoom () const |
|
void | setType (QCPAxis::AxisType type) |
|
Q_SLOT void | setDataRange (const QCPRange &dataRange) |
|
Q_SLOT void | setDataScaleType (QCPAxis::ScaleType scaleType) |
|
Q_SLOT void | setGradient (const QCPColorGradient &gradient) |
|
void | setLabel (const QString &str) |
|
void | setBarWidth (int width) |
|
void | setRangeDrag (bool enabled) |
|
void | setRangeZoom (bool enabled) |
|
QList< QCPColorMap * > | colorMaps () const |
|
void | rescaleDataRange (bool onlyVisibleMaps) |
|
virtual void | update (UpdatePhase phase) Q_DECL_OVERRIDE |
|
| QCPColorScale (QCustomPlot *parentPlot) |
|
virtual | ~QCPColorScale () |
|
QCPAxis * | axis () const |
|
QCPAxis::AxisType | type () const |
|
QCPRange | dataRange () const |
|
QCPAxis::ScaleType | dataScaleType () const |
|
QCPColorGradient | gradient () const |
|
QString | label () const |
|
int | barWidth () const |
|
bool | rangeDrag () const |
|
bool | rangeZoom () const |
|
void | setType (QCPAxis::AxisType type) |
|
Q_SLOT void | setDataRange (const QCPRange &dataRange) |
|
Q_SLOT void | setDataScaleType (QCPAxis::ScaleType scaleType) |
|
Q_SLOT void | setGradient (const QCPColorGradient &gradient) |
|
void | setLabel (const QString &str) |
|
void | setBarWidth (int width) |
|
void | setRangeDrag (bool enabled) |
|
void | setRangeZoom (bool enabled) |
|
QList< QCPColorMap * > | colorMaps () const |
|
void | rescaleDataRange (bool onlyVisibleMaps) |
|
virtual void | update (UpdatePhase phase) Q_DECL_OVERRIDE |
|
| QCPColorScale (QCustomPlot *parentPlot) |
|
virtual | ~QCPColorScale () |
|
QCPAxis * | axis () const |
|
QCPAxis::AxisType | type () const |
|
QCPRange | dataRange () const |
|
QCPAxis::ScaleType | dataScaleType () const |
|
QCPColorGradient | gradient () const |
|
QString | label () const |
|
int | barWidth () const |
|
bool | rangeDrag () const |
|
bool | rangeZoom () const |
|
void | setType (QCPAxis::AxisType type) |
|
Q_SLOT void | setDataRange (const QCPRange &dataRange) |
|
Q_SLOT void | setDataScaleType (QCPAxis::ScaleType scaleType) |
|
Q_SLOT void | setGradient (const QCPColorGradient &gradient) |
|
void | setLabel (const QString &str) |
|
void | setBarWidth (int width) |
|
void | setRangeDrag (bool enabled) |
|
void | setRangeZoom (bool enabled) |
|
QList< QCPColorMap * > | colorMaps () const |
|
void | rescaleDataRange (bool onlyVisibleMaps) |
|
virtual void | update (UpdatePhase phase) Q_DECL_OVERRIDE |
|
| QCPColorScale (QCustomPlot *parentPlot) |
|
virtual | ~QCPColorScale () |
|
QCPAxis * | axis () const |
|
QCPAxis::AxisType | type () const |
|
QCPRange | dataRange () const |
|
QCPAxis::ScaleType | dataScaleType () const |
|
QCPColorGradient | gradient () const |
|
QString | label () const |
|
int | barWidth () const |
|
bool | rangeDrag () const |
|
bool | rangeZoom () const |
|
void | setType (QCPAxis::AxisType type) |
|
Q_SLOT void | setDataRange (const QCPRange &dataRange) |
|
Q_SLOT void | setDataScaleType (QCPAxis::ScaleType scaleType) |
|
Q_SLOT void | setGradient (const QCPColorGradient &gradient) |
|
void | setLabel (const QString &str) |
|
void | setBarWidth (int width) |
|
void | setRangeDrag (bool enabled) |
|
void | setRangeZoom (bool enabled) |
|
QList< QCPColorMap * > | colorMaps () const |
|
void | rescaleDataRange (bool onlyVisibleMaps) |
|
virtual void | update (UpdatePhase phase) Q_DECL_OVERRIDE |
|
| QCPColorScale (QCustomPlot *parentPlot) |
|
virtual | ~QCPColorScale () |
|
QCPAxis * | axis () const |
|
QCPAxis::AxisType | type () const |
|
QCPRange | dataRange () const |
|
QCPAxis::ScaleType | dataScaleType () const |
|
QCPColorGradient | gradient () const |
|
QString | label () const |
|
int | barWidth () const |
|
bool | rangeDrag () const |
|
bool | rangeZoom () const |
|
void | setType (QCPAxis::AxisType type) |
|
Q_SLOT void | setDataRange (const QCPRange &dataRange) |
|
Q_SLOT void | setDataScaleType (QCPAxis::ScaleType scaleType) |
|
Q_SLOT void | setGradient (const QCPColorGradient &gradient) |
|
void | setLabel (const QString &str) |
|
void | setBarWidth (int width) |
|
void | setRangeDrag (bool enabled) |
|
void | setRangeZoom (bool enabled) |
|
QList< QCPColorMap * > | colorMaps () const |
|
void | rescaleDataRange (bool onlyVisibleMaps) |
|
virtual void | update (UpdatePhase phase) Q_DECL_OVERRIDE |
|
| QCPLayoutElement (QCustomPlot *parentPlot=0) |
|
virtual | ~QCPLayoutElement () |
|
QCPLayout * | layout () 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 |
|
QCPMarginGroup * | marginGroup (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 QSize | minimumOuterSizeHint () const |
|
virtual QSize | maximumOuterSizeHint () const |
|
virtual QList< QCPLayoutElement * > | elements (bool recursive) const |
|
virtual double | selectTest (const QPointF &pos, bool onlySelectable, QVariant *details=0) const Q_DECL_OVERRIDE |
|
| QCPLayoutElement (QCustomPlot *parentPlot=0) |
|
virtual | ~QCPLayoutElement () |
|
QCPLayout * | layout () 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 |
|
QCPMarginGroup * | marginGroup (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 QSize | minimumOuterSizeHint () const |
|
virtual QSize | maximumOuterSizeHint () const |
|
virtual QList< QCPLayoutElement * > | elements (bool recursive) const |
|
virtual double | selectTest (const QPointF &pos, bool onlySelectable, QVariant *details=0) const Q_DECL_OVERRIDE |
|
| QCPLayoutElement (QCustomPlot *parentPlot=0) |
|
virtual | ~QCPLayoutElement () |
|
QCPLayout * | layout () 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 |
|
QCPMarginGroup * | marginGroup (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 QSize | minimumOuterSizeHint () const |
|
virtual QSize | maximumOuterSizeHint () const |
|
virtual QList< QCPLayoutElement * > | elements (bool recursive) const |
|
virtual double | selectTest (const QPointF &pos, bool onlySelectable, QVariant *details=0) const Q_DECL_OVERRIDE |
|
| QCPLayoutElement (QCustomPlot *parentPlot=0) |
|
virtual | ~QCPLayoutElement () |
|
QCPLayout * | layout () 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 |
|
QCPMarginGroup * | marginGroup (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 QSize | minimumOuterSizeHint () const |
|
virtual QSize | maximumOuterSizeHint () const |
|
virtual QList< QCPLayoutElement * > | elements (bool recursive) const |
|
virtual double | selectTest (const QPointF &pos, bool onlySelectable, QVariant *details=0) const Q_DECL_OVERRIDE |
|
| QCPLayoutElement (QCustomPlot *parentPlot=0) |
|
virtual | ~QCPLayoutElement () |
|
QCPLayout * | layout () 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 |
|
QCPMarginGroup * | marginGroup (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 QSize | minimumOuterSizeHint () const |
|
virtual QSize | maximumOuterSizeHint () const |
|
virtual QList< QCPLayoutElement * > | elements (bool recursive) const |
|
virtual double | selectTest (const QPointF &pos, bool onlySelectable, QVariant *details=0) const Q_DECL_OVERRIDE |
|
| QCPLayerable (QCustomPlot *plot, QString targetLayer=QString(), QCPLayerable *parentLayerable=0) |
|
virtual | ~QCPLayerable () |
|
bool | visible () const |
|
QCustomPlot * | parentPlot () const |
|
QCPLayerable * | parentLayerable () const |
|
QCPLayer * | layer () 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 |
|
QCustomPlot * | parentPlot () const |
|
QCPLayerable * | parentLayerable () const |
|
QCPLayer * | layer () 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 |
|
QCustomPlot * | parentPlot () const |
|
QCPLayerable * | parentLayerable () const |
|
QCPLayer * | layer () 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 |
|
QCustomPlot * | parentPlot () const |
|
QCPLayerable * | parentLayerable () const |
|
QCPLayer * | layer () 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 |
|
QCustomPlot * | parentPlot () const |
|
QCPLayerable * | parentLayerable () const |
|
QCPLayer * | layer () 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 |
|
|
virtual void | applyDefaultAntialiasingHint (QCPPainter *painter) const Q_DECL_OVERRIDE |
|
virtual void | mousePressEvent (QMouseEvent *event, const QVariant &details) Q_DECL_OVERRIDE |
|
virtual void | mouseMoveEvent (QMouseEvent *event, const QPointF &startPos) Q_DECL_OVERRIDE |
|
virtual void | mouseReleaseEvent (QMouseEvent *event, const QPointF &startPos) Q_DECL_OVERRIDE |
|
virtual void | wheelEvent (QWheelEvent *event) Q_DECL_OVERRIDE |
|
virtual void | applyDefaultAntialiasingHint (QCPPainter *painter) const Q_DECL_OVERRIDE |
|
virtual void | mousePressEvent (QMouseEvent *event, const QVariant &details) Q_DECL_OVERRIDE |
|
virtual void | mouseMoveEvent (QMouseEvent *event, const QPointF &startPos) Q_DECL_OVERRIDE |
|
virtual void | mouseReleaseEvent (QMouseEvent *event, const QPointF &startPos) Q_DECL_OVERRIDE |
|
virtual void | wheelEvent (QWheelEvent *event) Q_DECL_OVERRIDE |
|
virtual void | applyDefaultAntialiasingHint (QCPPainter *painter) const Q_DECL_OVERRIDE |
|
virtual void | mousePressEvent (QMouseEvent *event, const QVariant &details) Q_DECL_OVERRIDE |
|
virtual void | mouseMoveEvent (QMouseEvent *event, const QPointF &startPos) Q_DECL_OVERRIDE |
|
virtual void | mouseReleaseEvent (QMouseEvent *event, const QPointF &startPos) Q_DECL_OVERRIDE |
|
virtual void | wheelEvent (QWheelEvent *event) Q_DECL_OVERRIDE |
|
virtual void | applyDefaultAntialiasingHint (QCPPainter *painter) const Q_DECL_OVERRIDE |
|
virtual void | mousePressEvent (QMouseEvent *event, const QVariant &details) Q_DECL_OVERRIDE |
|
virtual void | mouseMoveEvent (QMouseEvent *event, const QPointF &startPos) Q_DECL_OVERRIDE |
|
virtual void | mouseReleaseEvent (QMouseEvent *event, const QPointF &startPos) Q_DECL_OVERRIDE |
|
virtual void | wheelEvent (QWheelEvent *event) Q_DECL_OVERRIDE |
|
virtual void | applyDefaultAntialiasingHint (QCPPainter *painter) const Q_DECL_OVERRIDE |
|
virtual void | mousePressEvent (QMouseEvent *event, const QVariant &details) Q_DECL_OVERRIDE |
|
virtual void | mouseMoveEvent (QMouseEvent *event, const QPointF &startPos) Q_DECL_OVERRIDE |
|
virtual void | mouseReleaseEvent (QMouseEvent *event, const QPointF &startPos) Q_DECL_OVERRIDE |
|
virtual void | wheelEvent (QWheelEvent *event) Q_DECL_OVERRIDE |
|
virtual int | calculateAutoMargin (QCP::MarginSide side) |
|
virtual void | layoutChanged () |
|
virtual void | draw (QCPPainter *painter) Q_DECL_OVERRIDE |
|
virtual void | parentPlotInitialized (QCustomPlot *parentPlot) Q_DECL_OVERRIDE |
|
virtual int | calculateAutoMargin (QCP::MarginSide side) |
|
virtual void | layoutChanged () |
|
virtual void | draw (QCPPainter *painter) Q_DECL_OVERRIDE |
|
virtual void | parentPlotInitialized (QCustomPlot *parentPlot) Q_DECL_OVERRIDE |
|
virtual int | calculateAutoMargin (QCP::MarginSide side) |
|
virtual void | layoutChanged () |
|
virtual void | draw (QCPPainter *painter) Q_DECL_OVERRIDE |
|
virtual void | parentPlotInitialized (QCustomPlot *parentPlot) Q_DECL_OVERRIDE |
|
virtual int | calculateAutoMargin (QCP::MarginSide side) |
|
virtual void | layoutChanged () |
|
virtual void | draw (QCPPainter *painter) Q_DECL_OVERRIDE |
|
virtual void | parentPlotInitialized (QCustomPlot *parentPlot) Q_DECL_OVERRIDE |
|
virtual int | calculateAutoMargin (QCP::MarginSide side) |
|
virtual void | layoutChanged () |
|
virtual void | draw (QCPPainter *painter) Q_DECL_OVERRIDE |
|
virtual void | parentPlotInitialized (QCustomPlot *parentPlot) Q_DECL_OVERRIDE |
|
virtual QCP::Interaction | selectionCategory () const |
|
virtual QRect | clipRect () const |
|
virtual void | selectEvent (QMouseEvent *event, bool additive, const QVariant &details, bool *selectionStateChanged) |
|
virtual void | deselectEvent (bool *selectionStateChanged) |
|
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 QCP::Interaction | selectionCategory () const |
|
virtual QRect | clipRect () const |
|
virtual void | selectEvent (QMouseEvent *event, bool additive, const QVariant &details, bool *selectionStateChanged) |
|
virtual void | deselectEvent (bool *selectionStateChanged) |
|
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 QCP::Interaction | selectionCategory () const |
|
virtual QRect | clipRect () const |
|
virtual void | selectEvent (QMouseEvent *event, bool additive, const QVariant &details, bool *selectionStateChanged) |
|
virtual void | deselectEvent (bool *selectionStateChanged) |
|
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 QCP::Interaction | selectionCategory () const |
|
virtual QRect | clipRect () const |
|
virtual void | selectEvent (QMouseEvent *event, bool additive, const QVariant &details, bool *selectionStateChanged) |
|
virtual void | deselectEvent (bool *selectionStateChanged) |
|
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 QCP::Interaction | selectionCategory () const |
|
virtual QRect | clipRect () const |
|
virtual void | selectEvent (QMouseEvent *event, bool additive, const QVariant &details, bool *selectionStateChanged) |
|
virtual void | deselectEvent (bool *selectionStateChanged) |
|
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 |
|
A color scale for use with color coding data such as QCPColorMap.
This layout element can be placed on the plot to correlate a color gradient with data values. It is usually used in combination with one or multiple QCPColorMaps.
The color scale can be either horizontal or vertical, as shown in the image above. The orientation and the side where the numbers appear is controlled with setType.
Use QCPColorMap::setColorScale to connect a color map with a color scale. Once they are connected, they share their gradient, data range and data scale type (setGradient, setDataRange, setDataScaleType). Multiple color maps may be associated with a single color scale, to make them all synchronize these properties.
To have finer control over the number display and axis behaviour, you can directly access the axis. See the documentation of QCPAxis for details about configuring axes. For example, if you want to change the number of automatically generated ticks, call
Placing a color scale next to the main axis rect works like with any other layout element:
In this case we have placed it to the right of the default axis rect, so it wasn't necessary to call setType, since QCPAxis::atRight is already the default. The text next to the color scale can be set with setLabel.
For optimum appearance (like in the image above), it may be desirable to line up the axis rect and the borders of the color scale. Use a QCPMarginGroup to achieve this:
Color scales are initialized with a non-zero minimum top and bottom margin (setMinimumMargins), because vertical color scales are most common and the minimum top/bottom margin makes sure it keeps some distance to the top/bottom widget border. So if you change to a horizontal color scale by setting setType to QCPAxis::atBottom or QCPAxis::atTop, you might want to also change the minimum margins accordingly, e.g. setMinimumMargins(QMargins(6, 0, 6, 0))
.