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 ();
bool isXOnly() const
In DOCUMENT_AXES_POINTS_REQUIRED_4 modes, this is true/false if y/x coordinate is undefined.
bool isAxisPoint() const
True if point is an axis point. This is used only for sanity checks.
CallbackSearchReturn callback(const QString &curveName, const Point &point)
Callback method.
virtual ~CallbackDocumentHash()
Class that represents one digitized point. The screen-to-graph coordinate transformation is always ex...
QPointF posScreen() const
Accessor for screen position.
double ordinal(ApplyHasCheck applyHasCheck=KEEP_HAS_CHECK) const
Get method for ordinal. Skip check if copying one instance to another.
CallbackSearchReturn
Return values for search callback methods.
QString QPointFToString(const QPointF &pos)
Continue normal execution of the search.
QString identifier() const
Unique identifier for a specific Point.
bool hasOrdinal() const
True if ordinal is defined.
QPointF posGraph(ApplyHasCheck applyHasCheck=KEEP_HAS_CHECK) const
Accessor for graph position. Skip check if copying one instance to another.
CallbackDocumentHash(DocumentAxesPointsRequired documentAxesPointsRequired)
Single constructor.
log4cpp::Category * mainCat
DocumentAxesPointsRequired
DocumentHash hash() const
Computed hash value.
#define LOG4CPP_DEBUG_S(logger)