Engauge Digitizer  2
CallbackScaleBar.h
1 /******************************************************************************************************
2  * (C) 2017 markummitchell@github.com. This file is part of Engauge Digitizer, which is released *
3  * under GNU General Public License version 2 (GPLv2) or (at your option) any later version. See file *
4  * LICENSE or go to gnu.org/licenses for details. Distribution requires prior written permission. *
5  ******************************************************************************************************/
6 
7 #ifndef CALLBACK_SCALE_BAR_H
8 #define CALLBACK_SCALE_BAR_H
9 
10 #include "CallbackSearchReturn.h"
11 #include <QString>
12 #include <QStringList>
13 
14 class Point;
15 
18 {
19 public:
22 
24  QStringList axisCurvePointIdentifiers () const;
25 
27  CallbackSearchReturn callback (const QString &curveName,
28  const Point &point);
29 
31  double scaleBarLength () const;
32 
34  QString scaleBarPointIdentifier () const;
35 
36 private:
37 
38  double m_scaleBarLength;
39  QString m_scaleBarPointIdentifier;
40  QStringList m_axisCurvePointIdentifiers;
41 };
42 
43 #endif // CALLBACK_SCALE_BAR_H
CallbackSearchReturn callback(const QString &curveName, const Point &point)
Callback method.
Callback for identifying, for the scale bar of a map, various quantities.
QString scaleBarPointIdentifier() const
Identified axis point.
QStringList axisCurvePointIdentifiers() const
Points in axis curve.
Class that represents one digitized point. The screen-to-graph coordinate transformation is always ex...
Definition: Point.h:23
double scaleBarLength() const
Length of scale bar.
CallbackScaleBar()
Single constructor.