iCub-main
Public Member Functions | Protected Member Functions | Protected Attributes | Friends | List of all members
QCPColorScaleAxisRectPrivate Class Reference

#include <qcustomplot.h>

+ Inheritance diagram for QCPColorScaleAxisRectPrivate:

Public Member Functions

 QCPColorScaleAxisRectPrivate (QCPColorScale *parentColorScale)
 Creates a new instance, as a child of parentColorScale. More...
 
- Public Member Functions inherited from QCPAxisRect
 QCPAxisRect (QCustomPlot *parentPlot, bool setupDefaultAxes=true)
 Creates a QCPAxisRect instance and sets default values. More...
 
virtual ~QCPAxisRect ()
 
QPixmap background () const
 
bool backgroundScaled () const
 
Qt::AspectRatioMode backgroundScaledMode () const
 
Qt::Orientations rangeDrag () const
 
Qt::Orientations rangeZoom () const
 
QCPAxisrangeDragAxis (Qt::Orientation orientation)
 Returns the range drag axis of the orientation provided. More...
 
QCPAxisrangeZoomAxis (Qt::Orientation orientation)
 Returns the range zoom axis of the orientation provided. More...
 
double rangeZoomFactor (Qt::Orientation orientation)
 Returns the range zoom factor of the orientation provided. More...
 
void setBackground (const QPixmap &pm)
 Sets pm as the axis background pixmap. More...
 
void setBackground (const QPixmap &pm, bool scaled, Qt::AspectRatioMode mode=Qt::KeepAspectRatioByExpanding)
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.Allows setting the background pixmap of the axis rect, whether it shall be scaled and how it shall be scaled in one call. More...
 
void setBackground (const QBrush &brush)
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.Sets brush as the background brush. More...
 
void setBackgroundScaled (bool scaled)
 Sets whether the axis background pixmap shall be scaled to fit the axis rect or not. More...
 
void setBackgroundScaledMode (Qt::AspectRatioMode mode)
 If scaling of the axis background pixmap is enabled (setBackgroundScaled), use this function to define whether and how the aspect ratio of the original pixmap passed to setBackground is preserved. More...
 
void setRangeDrag (Qt::Orientations orientations)
 Sets which axis orientation may be range dragged by the user with mouse interaction. More...
 
void setRangeZoom (Qt::Orientations orientations)
 Sets which axis orientation may be zoomed by the user with the mouse wheel. More...
 
void setRangeDragAxes (QCPAxis *horizontal, QCPAxis *vertical)
 Sets the axes whose range will be dragged when setRangeDrag enables mouse range dragging on the QCustomPlot widget. More...
 
void setRangeZoomAxes (QCPAxis *horizontal, QCPAxis *vertical)
 Sets the axes whose range will be zoomed when setRangeZoom enables mouse wheel zooming on the QCustomPlot widget. More...
 
void setRangeZoomFactor (double horizontalFactor, double verticalFactor)
 Sets how strong one rotation step of the mouse wheel zooms, when range zoom was activated with setRangeZoom. More...
 
void setRangeZoomFactor (double factor)
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.Sets both the horizontal and vertical zoom factor. More...
 
int axisCount (QCPAxis::AxisType type) const
 Returns the number of axes on the axis rect side specified with type. More...
 
QCPAxisaxis (QCPAxis::AxisType type, int index=0) const
 Returns the axis with the given index on the axis rect side specified with type. More...
 
QList< QCPAxis * > axes (QCPAxis::AxisTypes types) const
 Returns all axes on the axis rect sides specified with types. More...
 
QList< QCPAxis * > axes () const
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.Returns all axes of this axis rect. More...
 
QCPAxisaddAxis (QCPAxis::AxisType type)
 Adds a new axis to the axis rect side specified with type, and returns it. More...
 
QList< QCPAxis * > addAxes (QCPAxis::AxisTypes types)
 Adds a new axis with addAxis to each axis rect side specified in types. More...
 
bool removeAxis (QCPAxis *axis)
 Removes the specified axis from the axis rect and deletes it. More...
 
QCPLayoutInsetinsetLayout () const
 Returns the inset layout of this axis rect. More...
 
void setupFullAxesBox (bool connectRanges=false)
 Convenience function to create an axis on each side that doesn't have any axes yet and set their visibility to true. More...
 
QList< QCPAbstractPlottable * > plottables () const
 Returns a list of all the plottables that are associated with this axis rect. More...
 
QList< QCPGraph * > graphs () const
 Returns a list of all the graphs that are associated with this axis rect. More...
 
QList< QCPAbstractItem * > items () const
 Returns a list of all the items that are associated with this axis rect. More...
 
int left () const
 Returns the pixel position of the left border of this axis rect. More...
 
int right () const
 Returns the pixel position of the right border of this axis rect. More...
 
int top () const
 Returns the pixel position of the top border of this axis rect. More...
 
int bottom () const
 Returns the pixel position of the bottom border of this axis rect. More...
 
int width () const
 Returns the pixel width of this axis rect. More...
 
int height () const
 Returns the pixel height of this axis rect. More...
 
QSize size () const
 Returns the pixel size of this axis rect. More...
 
QPoint topLeft () const
 Returns the top left corner of this axis rect in pixels. More...
 
QPoint topRight () const
 Returns the top right corner of this axis rect in pixels. More...
 
QPoint bottomLeft () const
 Returns the bottom left corner of this axis rect in pixels. More...
 
QPoint bottomRight () const
 Returns the bottom right corner of this axis rect in pixels. More...
 
QPoint center () const
 Returns the center of this axis rect in pixels. More...
 
virtual void update (UpdatePhase phase)
 This method is called automatically upon replot and doesn't need to be called by users of QCPAxisRect. More...
 
virtual QList< QCPLayoutElement * > elements (bool recursive) const
 Returns a list of all child elements in this layout element. More...
 
- Public Member Functions inherited from QCPLayoutElement
 QCPLayoutElement (QCustomPlot *parentPlot=0)
 Creates an instance of QCPLayoutElement and sets default values. More...
 
virtual ~QCPLayoutElement ()
 
QCPLayoutlayout () const
 Returns the parent layout of this layout element. More...
 
QRect rect () const
 Returns the inner rect of this layout element. More...
 
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)
 Sets the outer rect of this layout element. More...
 
void setMargins (const QMargins &margins)
 Sets the margins of this layout element. More...
 
void setMinimumMargins (const QMargins &margins)
 If setAutoMargins is enabled on some or all margins, this function is used to provide minimum values for those margins. More...
 
void setAutoMargins (QCP::MarginSides sides)
 Sets on which sides the margin shall be calculated automatically. More...
 
void setMinimumSize (const QSize &size)
 Sets the minimum size for the inner rect of this layout element. More...
 
void setMinimumSize (int width, int height)
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.Sets the minimum size for the inner rect of this layout element. More...
 
void setMaximumSize (const QSize &size)
 Sets the maximum size for the inner rect of this layout element. More...
 
void setMaximumSize (int width, int height)
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.Sets the maximum size for the inner rect of this layout element. More...
 
void setMarginGroup (QCP::MarginSides sides, QCPMarginGroup *group)
 Sets the margin group of the specified margin sides. More...
 
virtual QSize minimumSizeHint () const
 Returns the minimum size this layout element (the inner rect) may be compressed to. More...
 
virtual QSize maximumSizeHint () const
 Returns the maximum size this layout element (the inner rect) may be expanded to. More...
 
virtual double selectTest (const QPointF &pos, bool onlySelectable, QVariant *details=0) const
 Layout elements are sensitive to events inside their outer rect. More...
 
- Public Member Functions inherited from QCPLayerable
 QCPLayerable (QCustomPlot *plot, QString targetLayer="", QCPLayerable *parentLayerable=0)
 Creates a new QCPLayerable instance. More...
 
 ~QCPLayerable ()
 
bool visible () const
 
QCustomPlotparentPlot () const
 
QCPLayerableparentLayerable () const
 Returns the parent layerable of this layerable. More...
 
QCPLayerlayer () const
 
bool antialiased () const
 
void setVisible (bool on)
 Sets the visibility of this layerable object. More...
 
Q_SLOT bool setLayer (QCPLayer *layer)
 Sets the layer of this layerable object. More...
 
bool setLayer (const QString &layerName)
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. Sets the layer of this layerable object by name. More...
 
void setAntialiased (bool enabled)
 Sets whether this object will be drawn antialiased or not. More...
 
bool realVisibility () const
 Returns whether this layerable is visible, taking the visibility of the layerable parent and the visibility of the layer this layerable is on into account. More...
 

Protected Member Functions

virtual void draw (QCPPainter *painter)
 
void updateGradientImage ()
 
Q_SLOT void axisSelectionChanged (QCPAxis::SelectableParts selectedParts)
 
Q_SLOT void axisSelectableChanged (QCPAxis::SelectableParts selectableParts)
 
virtual int calculateAutoMargin (QCP::MarginSide side)
 
virtual void mousePressEvent (QMouseEvent *event)
 
virtual void mouseMoveEvent (QMouseEvent *event)
 
virtual void mouseReleaseEvent (QMouseEvent *event)
 
virtual void wheelEvent (QWheelEvent *event)
 
virtual void update (UpdatePhase phase)
 This method is called automatically upon replot and doesn't need to be called by users of QCPAxisRect. More...
 
- Protected Member Functions inherited from QCPAxisRect
virtual void applyDefaultAntialiasingHint (QCPPainter *painter) const
 
virtual int calculateAutoMargin (QCP::MarginSide side)
 
virtual void mousePressEvent (QMouseEvent *event)
 This event is called, if the mouse was pressed while being inside the outer rect of this layout element. More...
 
virtual void mouseMoveEvent (QMouseEvent *event)
 This event is called, if the mouse is moved inside the outer rect of this layout element. More...
 
virtual void mouseReleaseEvent (QMouseEvent *event)
 This event is called, if the mouse was previously pressed inside the outer rect of this layout element and is now released. More...
 
virtual void wheelEvent (QWheelEvent *event)
 This event is called, if the mouse wheel is scrolled while the cursor is inside the rect of this layout element. More...
 
void drawBackground (QCPPainter *painter)
 
void updateAxesOffset (QCPAxis::AxisType type)
 
- Protected Member Functions inherited from QCPLayoutElement
virtual void mouseDoubleClickEvent (QMouseEvent *event)
 This event is called, if the mouse is double-clicked inside the outer rect of this layout element. More...
 
virtual void parentPlotInitialized (QCustomPlot *parentPlot)
 
- Protected Member Functions inherited from QCPLayerable
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)
 
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

QCPColorScalemParentColorScale
 
QImage mGradientImage
 
bool mGradientImageInvalidated
 
- Protected Attributes inherited from QCPAxisRect
QBrush mBackgroundBrush
 
QPixmap mBackgroundPixmap
 
QPixmap mScaledBackgroundPixmap
 
bool mBackgroundScaled
 
Qt::AspectRatioMode mBackgroundScaledMode
 
QCPLayoutInsetmInsetLayout
 
Qt::Orientations mRangeDrag
 
Qt::Orientations mRangeZoom
 
QPointer< QCPAxismRangeDragHorzAxis
 
QPointer< QCPAxismRangeDragVertAxis
 
QPointer< QCPAxismRangeZoomHorzAxis
 
QPointer< QCPAxismRangeZoomVertAxis
 
double mRangeZoomFactorHorz
 
double mRangeZoomFactorVert
 
QCPRange mDragStartHorzRange
 
QCPRange mDragStartVertRange
 
QCP::AntialiasedElements mAADragBackup
 
QCP::AntialiasedElements mNotAADragBackup
 
QPoint mDragStart
 
bool mDragging
 
QHash< QCPAxis::AxisType, QList< QCPAxis * > > mAxes
 
- 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
 
- Protected Attributes inherited from QCPLayerable
bool mVisible
 
QCustomPlotmParentPlot
 
QPointer< QCPLayerablemParentLayerable
 
QCPLayermLayer
 
bool mAntialiased
 

Friends

class QCPColorScale
 

Additional Inherited Members

- Public Types inherited from QCPLayoutElement
enum  UpdatePhase {
  upPreparation ,
  upMargins ,
  upLayout
}
 Defines the phases of the update process, that happens just before a replot. More...
 
- Signals inherited from QCPLayerable
void layerChanged (QCPLayer *newLayer)
 This signal is emitted when the layer of this layerable changes, i.e. More...
 

Detailed Description

Definition at line 2338 of file qcustomplot.h.

Constructor & Destructor Documentation

◆ QCPColorScaleAxisRectPrivate()

QCPColorScaleAxisRectPrivate::QCPColorScaleAxisRectPrivate ( QCPColorScale parentColorScale)
explicit

Creates a new instance, as a child of parentColorScale.

Definition at line 14249 of file qcustomplot.cpp.

Member Function Documentation

◆ axisSelectableChanged()

void QCPColorScaleAxisRectPrivate::axisSelectableChanged ( QCPAxis::SelectableParts  selectableParts)
protected

Definition at line 14373 of file qcustomplot.cpp.

◆ axisSelectionChanged()

void QCPColorScaleAxisRectPrivate::axisSelectionChanged ( QCPAxis::SelectableParts  selectedParts)
protected

Definition at line 14349 of file qcustomplot.cpp.

◆ calculateAutoMargin()

int QCPAxisRect::calculateAutoMargin
protected

Definition at line 2039 of file qcustomplot.cpp.

◆ draw()

void QCPColorScaleAxisRectPrivate::draw ( QCPPainter painter)
protectedvirtual

Reimplemented from QCPAxisRect.

Definition at line 14285 of file qcustomplot.cpp.

◆ mouseMoveEvent()

void QCPAxisRect::mouseMoveEvent
protected

Definition at line 2042 of file qcustomplot.cpp.

◆ mousePressEvent()

void QCPAxisRect::mousePressEvent
protected

Definition at line 2041 of file qcustomplot.cpp.

◆ mouseReleaseEvent()

void QCPAxisRect::mouseReleaseEvent
protected

Definition at line 2043 of file qcustomplot.cpp.

◆ update()

void QCPAxisRect::update
protected

This method is called automatically upon replot and doesn't need to be called by users of QCPAxisRect.

Calls the base class implementation to update the margins (see QCPLayoutElement::update), and finally passes the rect to the inset layout (insetLayout) and calls its QCPInsetLayout::update function.

Definition at line 2015 of file qcustomplot.cpp.

◆ updateGradientImage()

void QCPColorScaleAxisRectPrivate::updateGradientImage ( )
protected

Definition at line 14307 of file qcustomplot.cpp.

◆ wheelEvent()

void QCPAxisRect::wheelEvent
protected

Definition at line 2044 of file qcustomplot.cpp.

Friends And Related Function Documentation

◆ QCPColorScale

friend class QCPColorScale
friend

Definition at line 2358 of file qcustomplot.h.

Member Data Documentation

◆ mGradientImage

QImage QCPColorScaleAxisRectPrivate::mGradientImage
protected

Definition at line 2345 of file qcustomplot.h.

◆ mGradientImageInvalidated

bool QCPColorScaleAxisRectPrivate::mGradientImageInvalidated
protected

Definition at line 2346 of file qcustomplot.h.

◆ mParentColorScale

QCPColorScale* QCPColorScaleAxisRectPrivate::mParentColorScale
protected

Definition at line 2344 of file qcustomplot.h.


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