24 return m_axisCurvePointIdentifiers;
31 <<
" curveName=" << curveName.toLatin1().data()
32 <<
" point=" << point.
identifier().toLatin1().data();
36 bool isNonzeroX = (qAbs (point.
posGraph ().x ()) > 0);
37 bool isNonzeroY = (qAbs (point.
posGraph ().y ()) > 0);
39 if (isNonzeroX || isNonzeroY) {
41 m_scaleBarPointIdentifier = point.
identifier ();
42 m_scaleBarLength = (isNonzeroX ?
47 m_axisCurvePointIdentifiers << point.
identifier ();
55 return m_scaleBarLength;
62 return m_scaleBarPointIdentifier;
const QString AXIS_CURVE_NAME
CallbackSearchReturn
Return values for search callback methods.
@ CALLBACK_SEARCH_RETURN_CONTINUE
Continue normal execution of the search.
log4cpp::Category * mainCat
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...
QPointF posGraph(ApplyHasCheck applyHasCheck=KEEP_HAS_CHECK) const
Accessor for graph position. Skip check if copying one instance to another.
QString identifier() const
Unique identifier for a specific Point.
#define LOG4CPP_INFO_S(logger)
#define LOG4CPP_DEBUG_S(logger)