Engauge Digitizer  2
Public Member Functions | List of all members
CallbackSceneUpdateAfterCommand Class Reference

Callback for updating the QGraphicsItems in the scene after a command may have modified Points in Curves. More...

#include <CallbackSceneUpdateAfterCommand.h>

Collaboration diagram for CallbackSceneUpdateAfterCommand:
Collaboration graph

Public Member Functions

 CallbackSceneUpdateAfterCommand (GraphicsLinesForCurves &graphicsLinesForCurves, GraphicsScene &scene, const Document &document, GeometryWindow *geometryWindow)
 Single constructor. More...
 
CallbackSearchReturn callback (const QString &, const Point &point)
 Callback method. More...
 

Detailed Description

Callback for updating the QGraphicsItems in the scene after a command may have modified Points in Curves.

Definition at line 20 of file CallbackSceneUpdateAfterCommand.h.

Constructor & Destructor Documentation

◆ CallbackSceneUpdateAfterCommand()

CallbackSceneUpdateAfterCommand::CallbackSceneUpdateAfterCommand ( GraphicsLinesForCurves graphicsLinesForCurves,
GraphicsScene scene,
const Document document,
GeometryWindow geometryWindow 
)

Single constructor.

Definition at line 17 of file CallbackSceneUpdateAfterCommand.cpp.

20  :
21  m_graphicsLinesForCurves (graphicsLinesForCurves),
22  m_scene (scene),
23  m_document (document),
24  m_geometryWindow (geometryWindow)
25 {
26 }

Member Function Documentation

◆ callback()

CallbackSearchReturn CallbackSceneUpdateAfterCommand::callback ( const QString &  curveName,
const Point point 
)

Callback method.

Definition at line 28 of file CallbackSceneUpdateAfterCommand.cpp.

30 {
32 
33  m_graphicsLinesForCurves.updateAfterCommand (m_scene,
34  m_document.modelCurveStyles (),
35  curveName,
36  point,
37  m_geometryWindow);
38 
39  return rtn;
40 }
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 ...
CallbackSearchReturn
Return values for search callback methods.
Continue normal execution of the search.
CurveStyles modelCurveStyles() const
Get method for CurveStyles.
Definition: Document.cpp:702

The documentation for this class was generated from the following files: