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

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

Public Member Functions

QPointF actualPosition () const
 
 CurveTracker (QwtPlot *)
 

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 12 of file customtracker.h.

Member Enumeration Documentation

Enumerator
LINE_ONLY 
VALUE 
VALUE_NAME 

Definition at line 20 of file customtracker.h.

Constructor & Destructor Documentation

CurveTracker::CurveTracker ( QwtPlot plot)
explicit

Definition at line 20 of file customtracker.cpp.

Member Function Documentation

QPointF CurveTracker::actualPosition ( ) const

Definition at line 38 of file customtracker.cpp.

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

Definition at line 219 of file customtracker.cpp.

QPoint CurveTracker::invTransform ( QPointF  )
private
void CurveTracker::redraw ( )
inlineslot

Definition at line 34 of file customtracker.h.

void CurveTracker::setEnabled ( bool  enable)
slot

Definition at line 53 of file customtracker.cpp.

void CurveTracker::setParameter ( Parameter  par)
slot

Definition at line 43 of file customtracker.cpp.

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

Definition at line 65 of file customtracker.cpp.

QPointF CurveTracker::transform ( QPoint  )
private

Member Data Documentation

QwtPlotMarker* CurveTracker::_line_marker
private

Definition at line 48 of file customtracker.h.

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

Definition at line 47 of file customtracker.h.

Parameter CurveTracker::_param
private

Definition at line 51 of file customtracker.h.

QwtPlot* CurveTracker::_plot
private

Definition at line 50 of file customtracker.h.

QPointF CurveTracker::_prev_trackerpoint
private

Definition at line 46 of file customtracker.h.

QwtPlotMarker* CurveTracker::_text_marker
private

Definition at line 49 of file customtracker.h.

bool CurveTracker::_visible
private

Definition at line 52 of file customtracker.h.


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


plotjuggler
Author(s): Davide Faconti
autogenerated on Sat Jul 6 2019 03:44:18