QXRD  0.11.16
Public Member Functions | Private Attributes | List of all members
QcepPlotMeasurer Class Reference

#include <qcepplotmeasurer.h>

Inheritance diagram for QcepPlotMeasurer:
Inheritance graph
Collaboration diagram for QcepPlotMeasurer:
Collaboration graph

Public Member Functions

 QcepPlotMeasurer (QWidget *canvas, QcepPlotPtr plot)
virtual QwtText trackerTextF (const QPointF &pos) const

Private Attributes

QcepPlotPtr m_Plot

Detailed Description

Definition at line 8 of file qcepplotmeasurer.h.

Constructor & Destructor Documentation

QcepPlotMeasurer::QcepPlotMeasurer ( QWidget *  canvas,
QcepPlotPtr  plot 

Definition at line 5 of file qcepplotmeasurer.cpp.

6  : QwtPlotPicker(canvas),
7  m_Plot(plot)
8 {
9  qRegisterMetaType< QVector<QPointF> >("QVector<QPointF>");
11  setTrackerMode(QwtPicker::AlwaysOn);
12  setStateMachine(new QwtPickerPolygonMachine());
13  setRubberBand(QwtPicker::PolygonRubberBand);
14 }
QcepPlotPtr m_Plot

Member Function Documentation

QwtText QcepPlotMeasurer::trackerTextF ( const QPointF &  pos) const

Definition at line 16 of file qcepplotmeasurer.cpp.

References m_Plot, and QcepPlot::trackerTextF().

17 {
18  return (m_Plot ? m_Plot->trackerTextF(pos) : tr("%1, %2").arg(pos.x()).arg(pos.y()));
19 }
virtual QwtText trackerTextF(const QPointF &pos)
Definition: qcepplot.cpp:394
QcepPlotPtr m_Plot

Here is the call graph for this function:

Member Data Documentation

QcepPlotPtr QcepPlotMeasurer::m_Plot

Definition at line 18 of file qcepplotmeasurer.h.

Referenced by trackerTextF().

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