Engauge Digitizer 2
Loading...
Searching...
No Matches
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.
 
CallbackSearchReturn callback (const QString &, const Point &point)
 Callback method.
 

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}
const int INNER_RADIUS_MIN

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}
CallbackSearchReturn
Return values for search callback methods.
@ CALLBACK_SEARCH_RETURN_CONTINUE
Continue normal execution of the search.
CurveStyles modelCurveStyles() const
Get method for CurveStyles.
Definition Document.cpp:702
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 ...

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