Engauge Digitizer  2
 All Classes Files Functions Variables Enumerations Enumerator Friends Pages
CallbackBoundingRects.h
1 #ifndef CALLBACK_BOUNDING_RECTS_H
2 #define CALLBACK_BOUNDING_RECTS_H
3 
4 #include "CallbackSearchReturn.h"
5 #include <QPointF>
6 #include <QRectF>
7 #include <QString>
8 #include "Transformation.h"
9 
10 class Point;
11 
14 {
15 public:
17  CallbackBoundingRects(const Transformation &transformation);
18 
20  QRectF boundingRectGraph (bool &isEmpty) const;
21 
23  QRectF boundingRectScreen (bool &isEmpty) const;
24 
26  CallbackSearchReturn callback (const QString &curveName,
27  const Point &point);
28 
29 private:
31 
32  void mergeCoordinates (const QPointF &pos,
33  QRectF &boundingRect);
34 
35  bool m_isEmpty;
36  const Transformation m_transformation;
37  QRectF m_boundingRectGraph;
38  QRectF m_boundingRectScreen;
39 };
40 
41 #endif // CALLBACK_BOUNDING_RECTS_H
CallbackSearchReturn callback(const QString &curveName, const Point &point)
Callback method.
Class that represents one digitized point. The screen-to-graph coordinate transformation is always ex...
Definition: Point.h:17
CallbackSearchReturn
Return values for search callback methods.
Affine transformation between screen and graph coordinates, based on digitized axis points...
QRectF boundingRectGraph(bool &isEmpty) const
Graph coordinate bounding rectangle.
QRectF boundingRectScreen(bool &isEmpty) const
Screen coordinate bounding rectangle.
Callback for computing the bounding rectangles of the screen and graph coordinates of the points in t...