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