Classes | Signals | Public Member Functions | Protected Member Functions | Private Slots | Private Attributes | List of all members
rqt_multiplot::PlotCursor Class Reference

#include <PlotCursor.h>

Inheritance diagram for rqt_multiplot::PlotCursor:
Inheritance graph
[legend]

Classes

struct  TrackedPoint
 

Signals

void activeChanged (bool active)
 
void currentPositionChanged (const QPointF &position)
 

Public Member Functions

bool arePointsTracked () const
 
void drawRubberBand (QPainter *painter) const
 
const QPointF & getCurrentPosition () const
 
bool hasMouseControl () const
 
 PlotCursor (QwtPlotCanvas *canvas)
 
void setActive (bool active, const QPointF &position=QPointF(0.0, 0.0))
 
void setCurrentPosition (const QPointF &position)
 
void setTrackPoints (bool track)
 
void update ()
 
 ~PlotCursor ()
 

Protected Member Functions

void begin ()
 
void drawTrackedPoints (QPainter *painter) const
 
bool end (bool ok=true)
 
bool eventFilter (QObject *object, QEvent *event)
 
QRect getTextRect (const QPointF &point, const QFont &font) const
 
void move (const QPoint &point)
 
QwtText trackerTextF (const QPointF &point) const
 
void updateDisplay ()
 
void updateTrackedPoints ()
 

Private Slots

void plotXAxisScaleDivChanged ()
 
void plotYAxisScaleDivChanged ()
 

Private Attributes

QPointF currentPosition_
 
bool mouseControl_
 
QVector< TrackedPointtrackedPoints_
 
bool trackPoints_
 

Detailed Description

Definition at line 31 of file PlotCursor.h.

Constructor & Destructor Documentation

◆ PlotCursor()

rqt_multiplot::PlotCursor::PlotCursor ( QwtPlotCanvas *  canvas)

Definition at line 44 of file PlotCursor.cpp.

◆ ~PlotCursor()

rqt_multiplot::PlotCursor::~PlotCursor ( )

Definition at line 60 of file PlotCursor.cpp.

Member Function Documentation

◆ activeChanged

void rqt_multiplot::PlotCursor::activeChanged ( bool  active)
signal

◆ arePointsTracked()

bool rqt_multiplot::PlotCursor::arePointsTracked ( ) const

Definition at line 115 of file PlotCursor.cpp.

◆ begin()

void rqt_multiplot::PlotCursor::begin ( )
protected

Definition at line 212 of file PlotCursor.cpp.

◆ currentPositionChanged

void rqt_multiplot::PlotCursor::currentPositionChanged ( const QPointF &  position)
signal

◆ drawRubberBand()

void rqt_multiplot::PlotCursor::drawRubberBand ( QPainter *  painter) const

Definition at line 196 of file PlotCursor.cpp.

◆ drawTrackedPoints()

void rqt_multiplot::PlotCursor::drawTrackedPoints ( QPainter *  painter) const
protected

Definition at line 315 of file PlotCursor.cpp.

◆ end()

bool rqt_multiplot::PlotCursor::end ( bool  ok = true)
protected

Definition at line 235 of file PlotCursor.cpp.

◆ eventFilter()

bool rqt_multiplot::PlotCursor::eventFilter ( QObject *  object,
QEvent *  event 
)
protected

Definition at line 246 of file PlotCursor.cpp.

◆ getCurrentPosition()

const QPointF & rqt_multiplot::PlotCursor::getCurrentPosition ( ) const

Definition at line 102 of file PlotCursor.cpp.

◆ getTextRect()

QRect rqt_multiplot::PlotCursor::getTextRect ( const QPointF &  point,
const QFont &  font 
) const
protected

Definition at line 123 of file PlotCursor.cpp.

◆ hasMouseControl()

bool rqt_multiplot::PlotCursor::hasMouseControl ( ) const

Definition at line 119 of file PlotCursor.cpp.

◆ move()

void rqt_multiplot::PlotCursor::move ( const QPoint &  point)
protected

Definition at line 221 of file PlotCursor.cpp.

◆ plotXAxisScaleDivChanged

void rqt_multiplot::PlotCursor::plotXAxisScaleDivChanged ( )
privateslot

Definition at line 348 of file PlotCursor.cpp.

◆ plotYAxisScaleDivChanged

void rqt_multiplot::PlotCursor::plotYAxisScaleDivChanged ( )
privateslot

Definition at line 377 of file PlotCursor.cpp.

◆ setActive()

void rqt_multiplot::PlotCursor::setActive ( bool  active,
const QPointF &  position = QPointF(0.0, 0.0) 
)

Definition at line 67 of file PlotCursor.cpp.

◆ setCurrentPosition()

void rqt_multiplot::PlotCursor::setCurrentPosition ( const QPointF &  position)

Definition at line 89 of file PlotCursor.cpp.

◆ setTrackPoints()

void rqt_multiplot::PlotCursor::setTrackPoints ( bool  track)

Definition at line 106 of file PlotCursor.cpp.

◆ trackerTextF()

QwtText rqt_multiplot::PlotCursor::trackerTextF ( const QPointF &  point) const
protected

Definition at line 168 of file PlotCursor.cpp.

◆ update()

void rqt_multiplot::PlotCursor::update ( )

◆ updateDisplay()

void rqt_multiplot::PlotCursor::updateDisplay ( )
protected

Definition at line 266 of file PlotCursor.cpp.

◆ updateTrackedPoints()

void rqt_multiplot::PlotCursor::updateTrackedPoints ( )
protected

Definition at line 272 of file PlotCursor.cpp.

Member Data Documentation

◆ currentPosition_

QPointF rqt_multiplot::PlotCursor::currentPosition_
private

Definition at line 76 of file PlotCursor.h.

◆ mouseControl_

bool rqt_multiplot::PlotCursor::mouseControl_
private

Definition at line 80 of file PlotCursor.h.

◆ trackedPoints_

QVector<TrackedPoint> rqt_multiplot::PlotCursor::trackedPoints_
private

Definition at line 77 of file PlotCursor.h.

◆ trackPoints_

bool rqt_multiplot::PlotCursor::trackPoints_
private

Definition at line 79 of file PlotCursor.h.


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


rqt_multiplot_plugin
Author(s): Ralf Kaestner
autogenerated on Mon May 15 2023 02:25:18