Engauge Digitizer
2
Callback
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
10
#include "
CallbackSearchReturn.h
"
11
#include <QString>
12
#include <QStringList>
13
14
class
Point
;
15
17
class
CallbackScaleBar
18
{
19
public
:
21
CallbackScaleBar
();
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
CallbackScaleBar::axisCurvePointIdentifiers
QStringList axisCurvePointIdentifiers() const
Points in axis curve.
Definition:
CallbackScaleBar.cpp:22
CallbackScaleBar::callback
CallbackSearchReturn callback(const QString &curveName, const Point &point)
Callback method.
Definition:
CallbackScaleBar.cpp:27
CallbackSearchReturn
CallbackSearchReturn
Return values for search callback methods.
Definition:
CallbackSearchReturn.h:17
CallbackScaleBar
Callback for identifying, for the scale bar of a map, various quantities.
Definition:
CallbackScaleBar.h:16
CallbackSearchReturn.h
CallbackScaleBar::scaleBarLength
double scaleBarLength() const
Length of scale bar.
Definition:
CallbackScaleBar.cpp:53
CallbackScaleBar::CallbackScaleBar
CallbackScaleBar()
Single constructor.
Definition:
CallbackScaleBar.cpp:17
Point
Class that represents one digitized point. The screen-to-graph coordinate transformation is always ex...
Definition:
Point.h:24
CallbackScaleBar::scaleBarPointIdentifier
QString scaleBarPointIdentifier() const
Identified axis point.
Definition:
CallbackScaleBar.cpp:58
Generated on Sat Jan 4 2020 12:00:00 for Engauge Digitizer by
1.8.16