Engauge Digitizer  2
CallbackSceneUpdateAfterCommand.h
1 /******************************************************************************************************
2  * (C) 2014 markummitchell@github.com. This file is part of Engauge Digitizer, which is released *
3  * under GNU General Public License version 2 (GPLv2) or (at your option) any later version. See file *
4  * LICENSE or go to gnu.org/licenses for details. Distribution requires prior written permission. *
5  ******************************************************************************************************/
6 
7 #ifndef CALLBACK_SCENE_UPDATE_AFTER_COMMAND_H
8 #define CALLBACK_SCENE_UPDATE_AFTER_COMMAND_H
9 
10 #include "CallbackSearchReturn.h"
11 #include "PointStyle.h"
12 
13 class Document;
14 class GeometryWindow;
16 class GraphicsScene;
17 class Point;
18 
21 {
22 public:
25  GraphicsScene &scene,
26  const Document &document,
27  GeometryWindow *geometryWindow);
28 
30  CallbackSearchReturn callback (const QString & /* curveName */,
31  const Point &point);
32 
33 private:
35 
36  GraphicsLinesForCurves &m_graphicsLinesForCurves;
37  GraphicsScene &m_scene;
38  const Document &m_document;
39  GeometryWindow *m_geometryWindow;
40 };
41 
42 #endif // CALLBACK_SCENE_UPDATE_AFTER_COMMAND_H
Callback for updating the QGraphicsItems in the scene after a command may have modified Points in Cur...
Class that represents one digitized point. The screen-to-graph coordinate transformation is always ex...
Definition: Point.h:23
Window that displays the geometry information, as a table, for the current curve. ...
CallbackSearchReturn callback(const QString &, const Point &point)
Callback method.
This class stores the GraphicsLinesForCurves objects, one per Curve.
Storage of one imported image and the data attached to that image.
Definition: Document.h:41
Add point and line handling to generic QGraphicsScene.
Definition: GraphicsScene.h:33