Public Types | Public Slots | Public Member Functions | Private Member Functions | Private Attributes | List of all members
CurveTracker Class Reference

#include <customtracker.h>

Inheritance diagram for CurveTracker:
Inheritance graph
[legend]

Public Types

enum  Parameter { LINE_ONLY, VALUE, VALUE_NAME }
 

Public Slots

bool isEnabled () const
 
void redraw ()
 
void setEnabled (bool enable)
 
void setParameter (Parameter par)
 
void setPosition (const QPointF &pos)
 

Public Member Functions

QPointF actualPosition () const
 
 CurveTracker (QwtPlot *)
 
 ~CurveTracker ()
 

Private Member Functions

QLineF curveLineAt (const QwtPlotCurve *, double x) const
 
QPoint invTransform (QPointF)
 
QPointF transform (QPoint)
 

Private Attributes

QwtPlotMarker_line_marker
 
std::vector< QwtPlotMarker * > _marker
 
Parameter _param
 
QwtPlot_plot
 
QPointF _prev_trackerpoint
 
QwtPlotMarker_text_marker
 
bool _visible
 

Detailed Description

Definition at line 18 of file customtracker.h.

Member Enumeration Documentation

◆ Parameter

Enumerator
LINE_ONLY 
VALUE 
VALUE_NAME 

Definition at line 28 of file customtracker.h.

Constructor & Destructor Documentation

◆ CurveTracker()

CurveTracker::CurveTracker ( QwtPlot plot)
explicit

Definition at line 27 of file customtracker.cpp.

◆ ~CurveTracker()

CurveTracker::~CurveTracker ( )

Definition at line 42 of file customtracker.cpp.

Member Function Documentation

◆ actualPosition()

QPointF CurveTracker::actualPosition ( ) const

Definition at line 46 of file customtracker.cpp.

◆ curveLineAt()

QLineF CurveTracker::curveLineAt ( const QwtPlotCurve curve,
double  x 
) const
private

Definition at line 235 of file customtracker.cpp.

◆ invTransform()

QPoint CurveTracker::invTransform ( QPointF  )
private

◆ isEnabled

bool CurveTracker::isEnabled ( ) const
slot

Definition at line 74 of file customtracker.cpp.

◆ redraw

void CurveTracker::redraw ( )
inlineslot

Definition at line 45 of file customtracker.h.

◆ setEnabled

void CurveTracker::setEnabled ( bool  enable)
slot

Definition at line 62 of file customtracker.cpp.

◆ setParameter

void CurveTracker::setParameter ( Parameter  par)
slot

Definition at line 51 of file customtracker.cpp.

◆ setPosition

void CurveTracker::setPosition ( const QPointF &  pos)
slot

Definition at line 79 of file customtracker.cpp.

◆ transform()

QPointF CurveTracker::transform ( QPoint  )
private

Member Data Documentation

◆ _line_marker

QwtPlotMarker* CurveTracker::_line_marker
private

Definition at line 59 of file customtracker.h.

◆ _marker

std::vector<QwtPlotMarker*> CurveTracker::_marker
private

Definition at line 58 of file customtracker.h.

◆ _param

Parameter CurveTracker::_param
private

Definition at line 62 of file customtracker.h.

◆ _plot

QwtPlot* CurveTracker::_plot
private

Definition at line 61 of file customtracker.h.

◆ _prev_trackerpoint

QPointF CurveTracker::_prev_trackerpoint
private

Definition at line 57 of file customtracker.h.

◆ _text_marker

QwtPlotMarker* CurveTracker::_text_marker
private

Definition at line 60 of file customtracker.h.

◆ _visible

bool CurveTracker::_visible
private

Definition at line 63 of file customtracker.h.


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


plotjuggler
Author(s): Davide Faconti
autogenerated on Mon Nov 11 2024 03:23:50