11#include <QCryptographicHash>
16 m_documentAxesPointsRequired (documentAxesPointsRequired),
17 m_documentHash (QCryptographicHash::Md5)
35 details += curveName.toLatin1();
40 details +=
" " + QString::number (point.
ordinal ());
45 switch (m_documentAxesPointsRequired) {
48 details +=
" " + QString::number (point.
posGraph().x());
60 details +=
" " + QString::number (point.
posGraph().x());
64 details +=
" " + QString::number (point.
posGraph().y());
74 m_documentHash.addData (details.toLatin1());
81 return m_documentHash.result ();
CallbackSearchReturn
Return values for search callback methods.
@ CALLBACK_SEARCH_RETURN_CONTINUE
Continue normal execution of the search.
DocumentAxesPointsRequired
@ DOCUMENT_AXES_POINTS_REQUIRED_3
@ DOCUMENT_AXES_POINTS_REQUIRED_4
@ DOCUMENT_AXES_POINTS_REQUIRED_2
log4cpp::Category * mainCat
QString QPointFToString(const QPointF &pos)
CallbackSearchReturn callback(const QString &curveName, const Point &point)
Callback method.
CallbackDocumentHash(DocumentAxesPointsRequired documentAxesPointsRequired)
Single constructor.
virtual ~CallbackDocumentHash()
DocumentHash hash() const
Computed hash value.
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.
QPointF posScreen() const
Accessor for screen position.
QString identifier() const
Unique identifier for a specific Point.
double ordinal(ApplyHasCheck applyHasCheck=KEEP_HAS_CHECK) const
Get method for ordinal. Skip check if copying one instance to another.
bool hasOrdinal() const
True if ordinal is defined.
bool isAxisPoint() const
True if point is an axis point. This is used only for sanity checks.
bool isXOnly() const
In DOCUMENT_AXES_POINTS_REQUIRED_4 modes, this is true/false if y/x coordinate is undefined.
#define LOG4CPP_DEBUG_S(logger)