Engauge Digitizer
2
Loading...
Searching...
No Matches
Cmd
CmdAddPointsGraph.h
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
#ifndef CMD_ADD_POINTS_GRAPH_H
8
#define CMD_ADD_POINTS_GRAPH_H
9
10
#include "
CmdPointChangeBase.h
"
11
#include <QList>
12
#include <QPointF>
13
#include <QStringList>
14
15
class
QXmlStreamReader;
16
class
Transformation
;
17
19
class
CmdAddPointsGraph
:
public
CmdPointChangeBase
20
{
21
public
:
23
CmdAddPointsGraph
(
MainWindow
&
mainWindow
,
24
Document
&
document
,
25
const
QString &curveName,
26
const
QList<QPoint> &points,
27
const
QList<double> &ordinals);
28
30
CmdAddPointsGraph
(
MainWindow
&
mainWindow
,
31
Document
&
document
,
32
const
QString &cmdDescription,
33
QXmlStreamReader &reader);
34
35
virtual
~CmdAddPointsGraph
();
36
37
virtual
void
cmdRedo
();
38
virtual
void
cmdUndo
();
39
virtual
void
saveXml
(QXmlStreamWriter &writer)
const
;
40
41
private
:
42
CmdAddPointsGraph
();
43
44
QString m_curveName;
45
46
QList<QPoint> m_points;
// Screen coordinates
47
QList<double> m_ordinals;
48
49
QStringList m_identifiersAdded;
// Points that got added. This is generated by the Document during the Redo
50
};
51
52
#endif
// CMD_ADD_POINTS_GRAPH_H
CmdPointChangeBase.h
CmdAbstract::document
Document & document()
Return the Document that this command will modify during redo and undo.
Definition
CmdAbstract.cpp:35
CmdAbstract::mainWindow
MainWindow & mainWindow()
Return the MainWindow so it can be updated by this command as a last step.
Definition
CmdAbstract.cpp:45
CmdAddPointsGraph
Command for adding one or more graph points. This is for Segment Fill mode.
Definition
CmdAddPointsGraph.h:20
CmdAddPointsGraph::cmdRedo
virtual void cmdRedo()
Redo method that is called when QUndoStack is moved one command forward.
Definition
CmdAddPointsGraph.cpp:101
CmdAddPointsGraph::cmdUndo
virtual void cmdUndo()
Undo method that is called when QUndoStack is moved one command backward.
Definition
CmdAddPointsGraph.cpp:122
CmdAddPointsGraph::saveXml
virtual void saveXml(QXmlStreamWriter &writer) const
Save commands as xml for later uploading.
Definition
CmdAddPointsGraph.cpp:132
CmdAddPointsGraph::~CmdAddPointsGraph
virtual ~CmdAddPointsGraph()
Definition
CmdAddPointsGraph.cpp:97
CmdPointChangeBase
Base class for CmdBase leaf subclasses that involve point additions, deletions and/or modifications.
Definition
CmdPointChangeBase.h:23
Document
Storage of one imported image and the data attached to that image.
Definition
Document.h:42
MainWindow
Main window consisting of menu, graphics scene, status bar and optional toolbars as a Single Document...
Definition
MainWindow.h:92
Transformation
Affine transformation between screen and graph coordinates, based on digitized axis points.
Definition
Transformation.h:32
Generated on Wed Aug 3 2022 00:00:00 for Engauge Digitizer by
1.10.0