Engauge Digitizer 2
Loading...
Searching...
No Matches
Public Member Functions | List of all members
CmdAddPointsGraph Class Reference

Command for adding one or more graph points. This is for Segment Fill mode. More...

#include <CmdAddPointsGraph.h>

Inheritance diagram for CmdAddPointsGraph:
CmdAbstract

Public Member Functions

 CmdAddPointsGraph (MainWindow &mainWindow, Document &document, const QString &curveName, const QList< QPoint > &points, const QList< double > &ordinals)
 Constructor for normal creation.
 
 CmdAddPointsGraph (MainWindow &mainWindow, Document &document, const QString &cmdDescription, QXmlStreamReader &reader)
 Constructor for parsing error report file xml.
 
virtual void cmdRedo ()
 Redo method that is called when QUndoStack is moved one command forward.
 
virtual void cmdUndo ()
 Undo method that is called when QUndoStack is moved one command backward.
 
virtual void saveXml (QXmlStreamWriter &writer) const
 Save commands as xml for later uploading.
 
- Public Member Functions inherited from CmdAbstract
 CmdAbstract (MainWindow &mainWindow, Document &document, const QString &cmdDescription)
 Single constructor.
 

Additional Inherited Members

- Protected Member Functions inherited from CmdAbstract
Documentdocument ()
 Return the Document that this command will modify during redo and undo.
 
const Documentdocument () const
 Return a const copy of the Document for non redo/undo interaction.
 
MainWindowmainWindow ()
 Return the MainWindow so it can be updated by this command as a last step.
 
void resetSelection (const PointIdentifiers &pointIdentifiersToSelect)
 Since the set of selected points has probably changed, changed that set back to the specified set.
 

Detailed Description

Command for adding one or more graph points. This is for Segment Fill mode.

Definition at line 19 of file CmdAddPointsGraph.h.

Constructor & Destructor Documentation

◆ CmdAddPointsGraph() [1/2]

CmdAddPointsGraph::CmdAddPointsGraph ( MainWindow mainWindow,
Document document,
const QString &  curveName,
const QList< QPoint > &  points,
const QList< double > &  ordinals 
)

Constructor for normal creation.

Definition at line 21 of file CmdAddPointsGraph.cpp.

◆ CmdAddPointsGraph() [2/2]

CmdAddPointsGraph::CmdAddPointsGraph ( MainWindow mainWindow,
Document document,
const QString &  cmdDescription,
QXmlStreamReader &  reader 
)

Constructor for parsing error report file xml.

Definition at line 36 of file CmdAddPointsGraph.cpp.

◆ ~CmdAddPointsGraph()

CmdAddPointsGraph::~CmdAddPointsGraph ( )
virtual

Definition at line 97 of file CmdAddPointsGraph.cpp.

Member Function Documentation

◆ cmdRedo()

void CmdAddPointsGraph::cmdRedo ( )
virtual

Redo method that is called when QUndoStack is moved one command forward.

Implements CmdAbstract.

Definition at line 101 of file CmdAddPointsGraph.cpp.

◆ cmdUndo()

void CmdAddPointsGraph::cmdUndo ( )
virtual

Undo method that is called when QUndoStack is moved one command backward.

Implements CmdAbstract.

Definition at line 119 of file CmdAddPointsGraph.cpp.

◆ saveXml()

void CmdAddPointsGraph::saveXml ( QXmlStreamWriter &  writer) const
virtual

Save commands as xml for later uploading.

Implements CmdAbstract.

Definition at line 130 of file CmdAddPointsGraph.cpp.


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