QCPItemTracer Class Reference

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

Inheritance diagram for QCPItemTracer:
Collaboration diagram for QCPItemTracer:

Public Types

enum  TracerStyle {
  tsNone, tsPlus, tsCrosshair, tsCircle,
  tsSquare, tsNone, tsPlus, tsCrosshair,
  tsCircle, tsSquare, tsNone, tsPlus,
  tsCrosshair, tsCircle, tsSquare
}
 
enum  TracerStyle {
  tsNone, tsPlus, tsCrosshair, tsCircle,
  tsSquare, tsNone, tsPlus, tsCrosshair,
  tsCircle, tsSquare, tsNone, tsPlus,
  tsCrosshair, tsCircle, tsSquare
}
 
enum  TracerStyle {
  tsNone, tsPlus, tsCrosshair, tsCircle,
  tsSquare, tsNone, tsPlus, tsCrosshair,
  tsCircle, tsSquare, tsNone, tsPlus,
  tsCrosshair, tsCircle, tsSquare
}
 

Public Member Functions

 QCPItemTracer (QCustomPlot *parentPlot)
 
virtual ~QCPItemTracer ()
 
QPen pen () const
 
QPen selectedPen () const
 
QBrush brush () const
 
QBrush selectedBrush () const
 
double size () const
 
TracerStyle style () const
 
QCPGraphgraph () const
 
double graphKey () const
 
bool interpolating () const
 
void setPen (const QPen &pen)
 
void setSelectedPen (const QPen &pen)
 
void setBrush (const QBrush &brush)
 
void setSelectedBrush (const QBrush &brush)
 
void setSize (double size)
 
void setStyle (TracerStyle style)
 
void setGraph (QCPGraph *graph)
 
void setGraphKey (double key)
 
void setInterpolating (bool enabled)
 
virtual double selectTest (const QPointF &pos, bool onlySelectable, QVariant *details=0) const
 
void updatePosition ()
 
 QCPItemTracer (QCustomPlot *parentPlot)
 
virtual ~QCPItemTracer ()
 
QPen pen () const
 
QPen selectedPen () const
 
QBrush brush () const
 
QBrush selectedBrush () const
 
double size () const
 
TracerStyle style () const
 
QCPGraphgraph () const
 
double graphKey () const
 
bool interpolating () const
 
void setPen (const QPen &pen)
 
void setSelectedPen (const QPen &pen)
 
void setBrush (const QBrush &brush)
 
void setSelectedBrush (const QBrush &brush)
 
void setSize (double size)
 
void setStyle (TracerStyle style)
 
void setGraph (QCPGraph *graph)
 
void setGraphKey (double key)
 
void setInterpolating (bool enabled)
 
virtual double selectTest (const QPointF &pos, bool onlySelectable, QVariant *details=0) const Q_DECL_OVERRIDE
 
void updatePosition ()
 
 QCPItemTracer (QCustomPlot *parentPlot)
 
virtual ~QCPItemTracer ()
 
QPen pen () const
 
QPen selectedPen () const
 
QBrush brush () const
 
QBrush selectedBrush () const
 
double size () const
 
TracerStyle style () const
 
QCPGraphgraph () const
 
double graphKey () const
 
bool interpolating () const
 
void setPen (const QPen &pen)
 
void setSelectedPen (const QPen &pen)
 
void setBrush (const QBrush &brush)
 
void setSelectedBrush (const QBrush &brush)
 
void setSize (double size)
 
void setStyle (TracerStyle style)
 
void setGraph (QCPGraph *graph)
 
void setGraphKey (double key)
 
void setInterpolating (bool enabled)
 
virtual double selectTest (const QPointF &pos, bool onlySelectable, QVariant *details=0) const
 
void updatePosition ()
 
- Public Member Functions inherited from QCPAbstractItem
 QCPAbstractItem (QCustomPlot *parentPlot)
 
virtual ~QCPAbstractItem ()
 
bool clipToAxisRect () const
 
QCPAxisRectclipAxisRect () const
 
bool selectable () const
 
bool selected () const
 
void setClipToAxisRect (bool clip)
 
void setClipAxisRect (QCPAxisRect *rect)
 
Q_SLOT void setSelectable (bool selectable)
 
Q_SLOT void setSelected (bool selected)
 
QList< QCPItemPosition * > positions () const
 
QList< QCPItemAnchor * > anchors () const
 
QCPItemPositionposition (const QString &name) const
 
QCPItemAnchoranchor (const QString &name) const
 
bool hasAnchor (const QString &name) const
 
 QCPAbstractItem (QCustomPlot *parentPlot)
 
virtual ~QCPAbstractItem ()
 
bool clipToAxisRect () const
 
QCPAxisRectclipAxisRect () const
 
bool selectable () const
 
bool selected () const
 
void setClipToAxisRect (bool clip)
 
void setClipAxisRect (QCPAxisRect *rect)
 
Q_SLOT void setSelectable (bool selectable)
 
Q_SLOT void setSelected (bool selected)
 
QList< QCPItemPosition * > positions () const
 
QList< QCPItemAnchor * > anchors () const
 
QCPItemPositionposition (const QString &name) const
 
QCPItemAnchoranchor (const QString &name) const
 
bool hasAnchor (const QString &name) const
 
 QCPAbstractItem (QCustomPlot *parentPlot)
 
virtual ~QCPAbstractItem ()
 
bool clipToAxisRect () const
 
QCPAxisRectclipAxisRect () const
 
bool selectable () const
 
bool selected () const
 
void setClipToAxisRect (bool clip)
 
void setClipAxisRect (QCPAxisRect *rect)
 
Q_SLOT void setSelectable (bool selectable)
 
Q_SLOT void setSelected (bool selected)
 
QList< QCPItemPosition * > positions () const
 
QList< QCPItemAnchor * > anchors () const
 
QCPItemPositionposition (const QString &name) const
 
QCPItemAnchoranchor (const QString &name) const
 
bool hasAnchor (const QString &name) 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 Attributes

QCPItemPosition *const position
 

Protected Member Functions

virtual void draw (QCPPainter *painter)
 
QPen mainPen () const
 
QBrush mainBrush () const
 
virtual void draw (QCPPainter *painter) Q_DECL_OVERRIDE
 
QPen mainPen () const
 
QBrush mainBrush () const
 
virtual void draw (QCPPainter *painter)
 
QPen mainPen () const
 
QBrush mainBrush () const
 
- Protected Member Functions inherited from QCPAbstractItem
virtual QCP::Interaction selectionCategory () const
 
virtual QRect clipRect () const
 
virtual void applyDefaultAntialiasingHint (QCPPainter *painter) const
 
virtual void selectEvent (QMouseEvent *event, bool additive, const QVariant &details, bool *selectionStateChanged)
 
virtual void deselectEvent (bool *selectionStateChanged)
 
virtual QPointF anchorPixelPoint (int anchorId) const
 
double distSqrToLine (const QPointF &start, const QPointF &end, const QPointF &point) const
 
double rectSelectTest (const QRectF &rect, const QPointF &pos, bool filledRect) const
 
QCPItemPositioncreatePosition (const QString &name)
 
QCPItemAnchorcreateAnchor (const QString &name, int anchorId)
 
virtual QCP::Interaction selectionCategory () const Q_DECL_OVERRIDE
 
virtual QRect clipRect () const Q_DECL_OVERRIDE
 
virtual 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
 
virtual QPointF anchorPixelPosition (int anchorId) const
 
double rectDistance (const QRectF &rect, const QPointF &pos, bool filledRect) const
 
QCPItemPositioncreatePosition (const QString &name)
 
QCPItemAnchorcreateAnchor (const QString &name, int anchorId)
 
virtual QCP::Interaction selectionCategory () const
 
virtual QRect clipRect () const
 
virtual void applyDefaultAntialiasingHint (QCPPainter *painter) const
 
virtual void selectEvent (QMouseEvent *event, bool additive, const QVariant &details, bool *selectionStateChanged)
 
virtual void deselectEvent (bool *selectionStateChanged)
 
virtual QPointF anchorPixelPoint (int anchorId) const
 
double distSqrToLine (const QPointF &start, const QPointF &end, const QPointF &point) const
 
double rectSelectTest (const QRectF &rect, const QPointF &pos, bool filledRect) const
 
QCPItemPositioncreatePosition (const QString &name)
 
QCPItemAnchorcreateAnchor (const QString &name, int anchorId)
 
- 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 Attributes

QPen mPen
 
QPen mSelectedPen
 
QBrush mBrush
 
QBrush mSelectedBrush
 
double mSize
 
TracerStyle mStyle
 
QCPGraphmGraph
 
double mGraphKey
 
bool mInterpolating
 
- Protected Attributes inherited from QCPAbstractItem
bool mClipToAxisRect
 
QPointer< QCPAxisRectmClipAxisRect
 
QList< QCPItemPosition * > mPositions
 
QList< QCPItemAnchor * > mAnchors
 
bool mSelectable
 
bool mSelected
 
- Protected Attributes inherited from QCPLayerable
bool mVisible
 
QCustomPlotmParentPlot
 
QPointer< QCPLayerablemParentLayerable
 
QCPLayermLayer
 
bool mAntialiased
 

Additional Inherited Members

- Signals inherited from QCPAbstractItem
void selectionChanged (bool selected)
 
void selectableChanged (bool selectable)
 
void selectionChanged (bool selected)
 
void selectableChanged (bool 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)
 

Member Enumeration Documentation

◆ TracerStyle [1/3]

The different visual appearances a tracer item can have. Some styles size may be controlled with setSize.

See also
setStyle
Enumerator
tsNone 

The tracer is not visible.

tsPlus 

A plus shaped crosshair with limited size.

tsCrosshair 

A plus shaped crosshair which spans the complete axis rect.

tsCircle 

A circle.

tsSquare 

A square.

tsNone 

The tracer is not visible.

tsPlus 

A plus shaped crosshair with limited size.

tsCrosshair 

A plus shaped crosshair which spans the complete axis rect.

tsCircle 

A circle.

tsSquare 

A square.

tsNone 

The tracer is not visible.

tsPlus 

A plus shaped crosshair with limited size.

tsCrosshair 

A plus shaped crosshair which spans the complete axis rect.

tsCircle 

A circle.

tsSquare 

A square.

◆ TracerStyle [2/3]

The different visual appearances a tracer item can have. Some styles size may be controlled with setSize.

See also
setStyle
Enumerator
tsNone 

The tracer is not visible.

tsPlus 

A plus shaped crosshair with limited size.

tsCrosshair 

A plus shaped crosshair which spans the complete axis rect.

tsCircle 

A circle.

tsSquare 

A square.

tsNone 

The tracer is not visible.

tsPlus 

A plus shaped crosshair with limited size.

tsCrosshair 

A plus shaped crosshair which spans the complete axis rect.

tsCircle 

A circle.

tsSquare 

A square.

tsNone 

The tracer is not visible.

tsPlus 

A plus shaped crosshair with limited size.

tsCrosshair 

A plus shaped crosshair which spans the complete axis rect.

tsCircle 

A circle.

tsSquare 

A square.

◆ TracerStyle [3/3]

The different visual appearances a tracer item can have. Some styles size may be controlled with setSize.

See also
setStyle
Enumerator
tsNone 

The tracer is not visible.

tsPlus 

A plus shaped crosshair with limited size.

tsCrosshair 

A plus shaped crosshair which spans the complete axis rect.

tsCircle 

A circle.

tsSquare 

A square.

tsNone 

The tracer is not visible.

tsPlus 

A plus shaped crosshair with limited size.

tsCrosshair 

A plus shaped crosshair which spans the complete axis rect.

tsCircle 

A circle.

tsSquare 

A square.

tsNone 

The tracer is not visible.

tsPlus 

A plus shaped crosshair with limited size.

tsCrosshair 

A plus shaped crosshair which spans the complete axis rect.

tsCircle 

A circle.

tsSquare 

A square.

Constructor & Destructor Documentation

◆ QCPItemTracer() [1/3]

QCPItemTracer::QCPItemTracer ( QCustomPlot parentPlot)

◆ ~QCPItemTracer() [1/3]

virtual QCPItemTracer::~QCPItemTracer ( )
virtual

◆ QCPItemTracer() [2/3]

QCPItemTracer::QCPItemTracer ( QCustomPlot parentPlot)
explicit

◆ ~QCPItemTracer() [2/3]

virtual QCPItemTracer::~QCPItemTracer ( )
virtual

◆ QCPItemTracer() [3/3]

QCPItemTracer::QCPItemTracer ( QCustomPlot parentPlot)

◆ ~QCPItemTracer() [3/3]

virtual QCPItemTracer::~QCPItemTracer ( )
virtual

Member Function Documentation

◆ brush() [1/3]

QBrush QCPItemTracer::brush ( ) const
inline

◆ brush() [2/3]

QBrush QCPItemTracer::brush ( ) const
inline

◆ brush() [3/3]

QBrush QCPItemTracer::brush ( ) const
inline

◆ draw() [1/3]

virtual void QCPItemTracer::draw ( QCPPainter painter)
protectedvirtual

Implements QCPAbstractItem.

◆ draw() [2/3]

virtual void QCPItemTracer::draw ( QCPPainter painter)
protectedvirtual

Implements QCPAbstractItem.

◆ draw() [3/3]

virtual void QCPItemTracer::draw ( QCPPainter painter)
protectedvirtual

Implements QCPAbstractItem.

◆ graph() [1/3]

QCPGraph* QCPItemTracer::graph ( ) const
inline

◆ graph() [2/3]

QCPGraph* QCPItemTracer::graph ( ) const
inline

◆ graph() [3/3]

QCPGraph* QCPItemTracer::graph ( ) const
inline

◆ graphKey() [1/3]

double QCPItemTracer::graphKey ( ) const
inline

◆ graphKey() [2/3]

double QCPItemTracer::graphKey ( ) const
inline

◆ graphKey() [3/3]

double QCPItemTracer::graphKey ( ) const
inline

◆ interpolating() [1/3]

bool QCPItemTracer::interpolating ( ) const
inline

◆ interpolating() [2/3]

bool QCPItemTracer::interpolating ( ) const
inline

◆ interpolating() [3/3]

bool QCPItemTracer::interpolating ( ) const
inline

◆ mainBrush() [1/3]

QBrush QCPItemTracer::mainBrush ( ) const
protected

◆ mainBrush() [2/3]

QBrush QCPItemTracer::mainBrush ( ) const
protected

◆ mainBrush() [3/3]

QBrush QCPItemTracer::mainBrush ( ) const
protected

◆ mainPen() [1/3]

QPen QCPItemTracer::mainPen ( ) const
protected

◆ mainPen() [2/3]

QPen QCPItemTracer::mainPen ( ) const
protected

◆ mainPen() [3/3]

QPen QCPItemTracer::mainPen ( ) const
protected

◆ pen() [1/3]

QPen QCPItemTracer::pen ( ) const
inline

◆ pen() [2/3]

QPen QCPItemTracer::pen ( ) const
inline

◆ pen() [3/3]

QPen QCPItemTracer::pen ( ) const
inline

◆ selectedBrush() [1/3]

QBrush QCPItemTracer::selectedBrush ( ) const
inline

◆ selectedBrush() [2/3]

QBrush QCPItemTracer::selectedBrush ( ) const
inline

◆ selectedBrush() [3/3]

QBrush QCPItemTracer::selectedBrush ( ) const
inline

◆ selectedPen() [1/3]

QPen QCPItemTracer::selectedPen ( ) const
inline

◆ selectedPen() [2/3]

QPen QCPItemTracer::selectedPen ( ) const
inline

◆ selectedPen() [3/3]

QPen QCPItemTracer::selectedPen ( ) const
inline

◆ selectTest() [1/3]

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

Implements QCPAbstractItem.

◆ selectTest() [2/3]

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

Implements QCPAbstractItem.

◆ selectTest() [3/3]

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

Implements QCPAbstractItem.

◆ setBrush() [1/3]

void QCPItemTracer::setBrush ( const QBrush &  brush)

◆ setBrush() [2/3]

void QCPItemTracer::setBrush ( const QBrush &  brush)

◆ setBrush() [3/3]

void QCPItemTracer::setBrush ( const QBrush &  brush)

◆ setGraph() [1/3]

void QCPItemTracer::setGraph ( QCPGraph graph)

◆ setGraph() [2/3]

void QCPItemTracer::setGraph ( QCPGraph graph)

◆ setGraph() [3/3]

void QCPItemTracer::setGraph ( QCPGraph graph)

◆ setGraphKey() [1/3]

void QCPItemTracer::setGraphKey ( double  key)

◆ setGraphKey() [2/3]

void QCPItemTracer::setGraphKey ( double  key)

◆ setGraphKey() [3/3]

void QCPItemTracer::setGraphKey ( double  key)

◆ setInterpolating() [1/3]

void QCPItemTracer::setInterpolating ( bool  enabled)

◆ setInterpolating() [2/3]

void QCPItemTracer::setInterpolating ( bool  enabled)

◆ setInterpolating() [3/3]

void QCPItemTracer::setInterpolating ( bool  enabled)

◆ setPen() [1/3]

void QCPItemTracer::setPen ( const QPen &  pen)

◆ setPen() [2/3]

void QCPItemTracer::setPen ( const QPen &  pen)

◆ setPen() [3/3]

void QCPItemTracer::setPen ( const QPen &  pen)

◆ setSelectedBrush() [1/3]

void QCPItemTracer::setSelectedBrush ( const QBrush &  brush)

◆ setSelectedBrush() [2/3]

void QCPItemTracer::setSelectedBrush ( const QBrush &  brush)

◆ setSelectedBrush() [3/3]

void QCPItemTracer::setSelectedBrush ( const QBrush &  brush)

◆ setSelectedPen() [1/3]

void QCPItemTracer::setSelectedPen ( const QPen &  pen)

◆ setSelectedPen() [2/3]

void QCPItemTracer::setSelectedPen ( const QPen &  pen)

◆ setSelectedPen() [3/3]

void QCPItemTracer::setSelectedPen ( const QPen &  pen)

◆ setSize() [1/3]

void QCPItemTracer::setSize ( double  size)

◆ setSize() [2/3]

void QCPItemTracer::setSize ( double  size)

◆ setSize() [3/3]

void QCPItemTracer::setSize ( double  size)

◆ setStyle() [1/3]

void QCPItemTracer::setStyle ( TracerStyle  style)

◆ setStyle() [2/3]

void QCPItemTracer::setStyle ( TracerStyle  style)

◆ setStyle() [3/3]

void QCPItemTracer::setStyle ( TracerStyle  style)

◆ size() [1/3]

double QCPItemTracer::size ( ) const
inline

◆ size() [2/3]

double QCPItemTracer::size ( ) const
inline

◆ size() [3/3]

double QCPItemTracer::size ( ) const
inline

◆ style() [1/3]

TracerStyle QCPItemTracer::style ( ) const
inline

◆ style() [2/3]

TracerStyle QCPItemTracer::style ( ) const
inline

◆ style() [3/3]

TracerStyle QCPItemTracer::style ( ) const
inline

◆ updatePosition() [1/3]

void QCPItemTracer::updatePosition ( )

◆ updatePosition() [2/3]

void QCPItemTracer::updatePosition ( )

◆ updatePosition() [3/3]

void QCPItemTracer::updatePosition ( )

Member Data Documentation

◆ mBrush

QBrush QCPItemTracer::mBrush
protected

◆ mGraph

QCPGraph * QCPItemTracer::mGraph
protected

◆ mGraphKey

double QCPItemTracer::mGraphKey
protected

◆ mInterpolating

bool QCPItemTracer::mInterpolating
protected

◆ mPen

QPen QCPItemTracer::mPen
protected

◆ mSelectedBrush

QBrush QCPItemTracer::mSelectedBrush
protected

◆ mSelectedPen

QPen QCPItemTracer::mSelectedPen
protected

◆ mSize

double QCPItemTracer::mSize
protected

◆ mStyle

TracerStyle QCPItemTracer::mStyle
protected

◆ position

QCPItemPosition *const QCPItemTracer::position

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