Engauge Digitizer
2
Toggle main menu visibility
Loading...
Searching...
No Matches
Callback
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
7
#include "
CallbackSceneUpdateAfterCommand.h
"
8
#include "
DataKey.h
"
9
#include "
Document.h
"
10
#include "
EngaugeAssert.h
"
11
#include "
GeometryWindow.h
"
12
#include "
GraphicsLinesForCurves.h
"
13
#include "
GraphicsScene.h
"
14
#include "
Point.h
"
15
#include <QGraphicsItem>
16
17
CallbackSceneUpdateAfterCommand::CallbackSceneUpdateAfterCommand
(
GraphicsLinesForCurves
&graphicsLinesForCurves,
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
28
CallbackSearchReturn
CallbackSceneUpdateAfterCommand::callback
(
const
QString &curveName,
29
const
Point
&point)
30
{
31
CallbackSearchReturn
rtn =
CALLBACK_SEARCH_RETURN_CONTINUE
;
32
33
m_graphicsLinesForCurves.updateAfterCommand (m_scene,
34
m_document.modelCurveStyles (),
35
curveName,
36
point,
37
m_geometryWindow);
38
39
return
rtn;
40
}
CallbackSceneUpdateAfterCommand.h
CallbackSearchReturn
CallbackSearchReturn
Return values for search callback methods.
Definition
CallbackSearchReturn.h:18
CALLBACK_SEARCH_RETURN_CONTINUE
@ CALLBACK_SEARCH_RETURN_CONTINUE
Continue normal execution of the search.
Definition
CallbackSearchReturn.h:19
DataKey.h
Document.h
EngaugeAssert.h
GeometryWindow.h
GraphicsLinesForCurves.h
GraphicsScene.h
Point.h
CallbackSceneUpdateAfterCommand::CallbackSceneUpdateAfterCommand
CallbackSceneUpdateAfterCommand(GraphicsLinesForCurves &graphicsLinesForCurves, GraphicsScene &scene, const Document &document, GeometryWindow *geometryWindow)
Single constructor.
Definition
CallbackSceneUpdateAfterCommand.cpp:17
CallbackSceneUpdateAfterCommand::callback
CallbackSearchReturn callback(const QString &, const Point &point)
Callback method.
Definition
CallbackSceneUpdateAfterCommand.cpp:28
Document
Storage of one imported image and the data attached to that image.
Definition
Document.h:44
GeometryWindow
Window that displays the geometry information, as a table, for the current curve.
Definition
GeometryWindow.h:29
GraphicsLinesForCurves
This class stores the GraphicsLinesForCurves objects, one per Curve.
Definition
GraphicsLinesForCurves.h:30
GraphicsScene
Add point and line handling to generic QGraphicsScene.
Definition
GraphicsScene.h:37
Point
Class that represents one digitized point. The screen-to-graph coordinate transformation is always ex...
Definition
Point.h:26
Generated on
for Engauge Digitizer by
1.17.0