00001
00002
00003
00004
00005
00006
00007 #ifndef CALLBACK_BOUNDING_RECTS_H
00008 #define CALLBACK_BOUNDING_RECTS_H
00009
00010 #include "CallbackSearchReturn.h"
00011 #include <QPointF>
00012 #include <QRectF>
00013 #include <QString>
00014 #include "Transformation.h"
00015
00016 class Point;
00017
00019 class CallbackBoundingRects
00020 {
00021 public:
00023 CallbackBoundingRects(const Transformation &transformation);
00024
00026 QRectF boundingRectGraph (bool &isEmpty) const;
00027
00029 QRectF boundingRectScreen (bool &isEmpty) const;
00030
00032 CallbackSearchReturn callback (const QString &curveName,
00033 const Point &point);
00034
00035 private:
00036 CallbackBoundingRects();
00037
00038 void mergeCoordinates (const QPointF &pos,
00039 QRectF &boundingRect);
00040
00041 bool m_isEmpty;
00042 const Transformation m_transformation;
00043 QRectF m_boundingRectGraph;
00044 QRectF m_boundingRectScreen;
00045 };
00046
00047 #endif // CALLBACK_BOUNDING_RECTS_H