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;
15 class GraphicsScene;
16 class Point;
17 
20 {
21 public:
24  GraphicsScene &scene,
25  const Document &document);
26 
28  CallbackSearchReturn callback (const QString & /* curveName */,
29  const Point &point);
30 
31 private:
33 
34  GraphicsLinesForCurves &m_graphicsLinesForCurves;
35  GraphicsScene &m_scene;
36  const Document &m_document;
37 };
38 
39 #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
CallbackSearchReturn callback(const QString &, const Point &point)
Callback method.
CallbackSearchReturn
Return values for search callback methods.
This class stores the GraphicsLinesForCurves objects, one per Curve.
Storage of one imported image and the data attached to that image.
Definition: Document.h:40
Add point and line handling to generic QGraphicsScene.
Definition: GraphicsScene.h:31