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;
CallbackSearchReturn callback(const QString &curveName, const Point &point)
Callback method.
QString scaleBarPointIdentifier() const
Identified axis point.
QStringList axisCurvePointIdentifiers() const
Points in axis curve.
#define LOG4CPP_INFO_S(logger)
Class that represents one digitized point. The screen-to-graph coordinate transformation is always ex...
CallbackSearchReturn
Return values for search callback methods.
double scaleBarLength() const
Length of scale bar.
Continue normal execution of the search.
QString identifier() const
Unique identifier for a specific Point.
QPointF posGraph(ApplyHasCheck applyHasCheck=KEEP_HAS_CHECK) const
Accessor for graph position. Skip check if copying one instance to another.
CallbackScaleBar()
Single constructor.
log4cpp::Category * mainCat
const QString AXIS_CURVE_NAME
#define LOG4CPP_DEBUG_S(logger)