Engauge Digitizer 2
Loading...
Searching...
No Matches
CallbackScaleBar.h
Go to the documentation of this file.
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
11#include <QString>
12#include <QStringList>
13
14class Point;
15
18{
19public:
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
36private:
37
38 double m_scaleBarLength;
39 QString m_scaleBarPointIdentifier;
40 QStringList m_axisCurvePointIdentifiers;
41};
42
43#endif // CALLBACK_SCALE_BAR_H
CallbackSearchReturn
Return values for search callback methods.
QString scaleBarPointIdentifier() const
Identified axis point.
CallbackScaleBar()
Single constructor.
double scaleBarLength() const
Length of scale bar.
CallbackSearchReturn callback(const QString &curveName, const Point &point)
Callback method.
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:26