QCPSelectionRect Class Reference

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

Inheritance diagram for QCPSelectionRect:
Collaboration diagram for QCPSelectionRect:

Signals

void started (QMouseEvent *event)
 
void changed (const QRect &rect, QMouseEvent *event)
 
void canceled (const QRect &rect, QInputEvent *event)
 
void accepted (const QRect &rect, QMouseEvent *event)
 
- Signals inherited from QCPLayerable
void layerChanged (QCPLayer *newLayer)
 
void layerChanged (QCPLayer *newLayer)
 
void layerChanged (QCPLayer *newLayer)
 

Public Member Functions

 QCPSelectionRect (QCustomPlot *parentPlot)
 
virtual ~QCPSelectionRect ()
 
QRect rect () const
 
QCPRange range (const QCPAxis *axis) const
 
QPen pen () const
 
QBrush brush () const
 
bool isActive () const
 
void setPen (const QPen &pen)
 
void setBrush (const QBrush &brush)
 
Q_SLOT void cancel ()
 
- 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)
 
virtual double selectTest (const QPointF &pos, bool onlySelectable, QVariant *details=0) const
 
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)
 
virtual double selectTest (const QPointF &pos, bool onlySelectable, QVariant *details=0) const
 
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)
 
virtual double selectTest (const QPointF &pos, bool onlySelectable, QVariant *details=0) const
 
bool realVisibility () const
 

Protected Member Functions

virtual void startSelection (QMouseEvent *event)
 
virtual void moveSelection (QMouseEvent *event)
 
virtual void endSelection (QMouseEvent *event)
 
virtual void keyPressEvent (QKeyEvent *event)
 
virtual void applyDefaultAntialiasingHint (QCPPainter *painter) const Q_DECL_OVERRIDE
 
virtual void draw (QCPPainter *painter) Q_DECL_OVERRIDE
 
- Protected Member Functions inherited from QCPLayerable
virtual void parentPlotInitialized (QCustomPlot *parentPlot)
 
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
 
virtual void parentPlotInitialized (QCustomPlot *parentPlot)
 
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 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)
 
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

QRect mRect
 
QPen mPen
 
QBrush mBrush
 
bool mActive
 
- Protected Attributes inherited from QCPLayerable
bool mVisible
 
QCustomPlotmParentPlot
 
QPointer< QCPLayerablemParentLayerable
 
QCPLayermLayer
 
bool mAntialiased
 

Friends

class QCustomPlot
 

Constructor & Destructor Documentation

◆ QCPSelectionRect()

QCPSelectionRect::QCPSelectionRect ( QCustomPlot parentPlot)
explicit

◆ ~QCPSelectionRect()

virtual QCPSelectionRect::~QCPSelectionRect ( )
virtual

Member Function Documentation

◆ accepted

void QCPSelectionRect::accepted ( const QRect &  rect,
QMouseEvent *  event 
)
signal

◆ applyDefaultAntialiasingHint()

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

Implements QCPLayerable.

◆ brush()

QBrush QCPSelectionRect::brush ( ) const
inline

◆ cancel()

Q_SLOT void QCPSelectionRect::cancel ( )

◆ canceled

void QCPSelectionRect::canceled ( const QRect &  rect,
QInputEvent *  event 
)
signal

◆ changed

void QCPSelectionRect::changed ( const QRect &  rect,
QMouseEvent *  event 
)
signal

◆ draw()

virtual void QCPSelectionRect::draw ( QCPPainter painter)
protectedvirtual

Implements QCPLayerable.

◆ endSelection()

virtual void QCPSelectionRect::endSelection ( QMouseEvent *  event)
protectedvirtual

◆ isActive()

bool QCPSelectionRect::isActive ( ) const
inline

◆ keyPressEvent()

virtual void QCPSelectionRect::keyPressEvent ( QKeyEvent *  event)
protectedvirtual

◆ moveSelection()

virtual void QCPSelectionRect::moveSelection ( QMouseEvent *  event)
protectedvirtual

◆ pen()

QPen QCPSelectionRect::pen ( ) const
inline

◆ range()

QCPRange QCPSelectionRect::range ( const QCPAxis axis) const

◆ rect()

QRect QCPSelectionRect::rect ( ) const
inline

◆ setBrush()

void QCPSelectionRect::setBrush ( const QBrush &  brush)

◆ setPen()

void QCPSelectionRect::setPen ( const QPen &  pen)

◆ started

void QCPSelectionRect::started ( QMouseEvent *  event)
signal

◆ startSelection()

virtual void QCPSelectionRect::startSelection ( QMouseEvent *  event)
protectedvirtual

Friends And Related Function Documentation

◆ QCustomPlot

friend class QCustomPlot
friend

Member Data Documentation

◆ mActive

bool QCPSelectionRect::mActive
protected

◆ mBrush

QBrush QCPSelectionRect::mBrush
protected

◆ mPen

QPen QCPSelectionRect::mPen
protected

◆ mRect

QRect QCPSelectionRect::mRect
protected

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