Engauge Digitizer 2
Loading...
Searching...
No Matches
CallbackSceneUpdateAfterCommand.cpp
Go to the documentation of this file.
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
8#include "DataKey.h"
9#include "Document.h"
10#include "EngaugeAssert.h"
11#include "GeometryWindow.h"
13#include "GraphicsScene.h"
14#include "Point.h"
15#include <QGraphicsItem>
16
18 GraphicsScene &scene,
19 const Document &document,
20 GeometryWindow *geometryWindow) :
21 m_graphicsLinesForCurves (graphicsLinesForCurves),
22 m_scene (scene),
23 m_document (document),
24 m_geometryWindow (geometryWindow)
25{
26}
27
29 const Point &point)
30{
32
33 m_graphicsLinesForCurves.updateAfterCommand (m_scene,
34 m_document.modelCurveStyles (),
35 curveName,
36 point,
37 m_geometryWindow);
38
39 return rtn;
40}
CallbackSearchReturn
Return values for search callback methods.
@ CALLBACK_SEARCH_RETURN_CONTINUE
Continue normal execution of the search.
CallbackSceneUpdateAfterCommand(GraphicsLinesForCurves &graphicsLinesForCurves, GraphicsScene &scene, const Document &document, GeometryWindow *geometryWindow)
Single constructor.
CallbackSearchReturn callback(const QString &, const Point &point)
Callback method.
Storage of one imported image and the data attached to that image.
Definition Document.h:42
CurveStyles modelCurveStyles() const
Get method for CurveStyles.
Definition Document.cpp:702
Window that displays the geometry information, as a table, for the current curve.
This class stores the GraphicsLinesForCurves objects, one per Curve.
void updateAfterCommand(GraphicsScene &scene, const CurveStyles &curveStyles, const QString &curveName, const Point &point, GeometryWindow *geometryWindow)
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.
Class that represents one digitized point. The screen-to-graph coordinate transformation is always ex...
Definition Point.h:26