Engauge Digitizer 2
CallbackSceneUpdateAfterCommand.cpp
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#include "CallbackSceneUpdateAfterCommand.h"
8#include "DataKey.h"
9#include "Document.h"
10#include "EngaugeAssert.h"
11#include "GraphicsLinesForCurves.h"
12#include "GraphicsScene.h"
13#include "Point.h"
14#include <QGraphicsItem>
15
17 GraphicsScene &scene,
18 const Document &document) :
19 m_graphicsLinesForCurves (graphicsLinesForCurves),
20 m_scene (scene),
21 m_document (document)
22{
23}
24
26 const Point &point)
27{
29
30 m_graphicsLinesForCurves.updateAfterCommand (m_scene,
31 m_document.modelCurveStyles (),
32 curveName,
33 point);
34
35 return rtn;
36}
CallbackSearchReturn
Return values for search callback methods.
@ CALLBACK_SEARCH_RETURN_CONTINUE
Continue normal execution of the search.
CallbackSearchReturn callback(const QString &, const Point &point)
Callback method.
CallbackSceneUpdateAfterCommand(GraphicsLinesForCurves &graphicsLinesForCurves, GraphicsScene &scene, const Document &document)
Single constructor.
Storage of one imported image and the data attached to that image.
Definition: Document.h:41
CurveStyles modelCurveStyles() const
Get method for CurveStyles.
Definition: Document.cpp:618
This class stores the GraphicsLinesForCurves objects, one per Curve.
void updateAfterCommand(GraphicsScene &scene, const CurveStyles &curveStyles, const QString &curveName, const Point &point)
Update the GraphicsScene with the specified Point from the Document. If it does not exist yet in the ...
Add point and line handling to generic QGraphicsScene.
Definition: GraphicsScene.h:32
Class that represents one digitized point. The screen-to-graph coordinate transformation is always ex...
Definition: Point.h:24