Engauge Digitizer 2
|
Model for DlgSettingsGridRemoval and CmdSettingsGridRemoval. The settings are unstable until the user approves. More...
#include <DocumentModelGridRemoval.h>
Public Member Functions | |
DocumentModelGridRemoval () | |
Default constructor. | |
DocumentModelGridRemoval (double startX, double startY, double stepX, double stepY, int countX, int countY) | |
Constructor fed by GridClassifier. | |
DocumentModelGridRemoval (const Document &document) | |
Initial constructor from Document. | |
DocumentModelGridRemoval (const DocumentModelGridRemoval &other) | |
Copy constructor. | |
DocumentModelGridRemoval & | operator= (const DocumentModelGridRemoval &other) |
Assignment constructor. | |
double | closeDistance () const |
Get method for close distance. | |
int | countX () const |
Get method for x count. | |
int | countY () const |
Get method for y count. | |
GridCoordDisable | gridCoordDisableX () const |
Get method for x coord parameter to disable. | |
GridCoordDisable | gridCoordDisableY () const |
Get method for y coord parameter to disable. | |
virtual void | loadXml (QXmlStreamReader &reader) |
Load model from serialized xml. | |
void | printStream (QString indentation, QTextStream &str) const |
Debugging method that supports print method of this class and printStream method of some other class(es) | |
bool | removeDefinedGridLines () const |
Get method for removing defined grid lines. | |
virtual void | saveXml (QXmlStreamWriter &writer) const |
Save entire model as xml into stream. | |
void | setCloseDistance (double closeDistance) |
Set method for close distance. | |
void | setCountX (int countX) |
Set method for x count. | |
void | setCountY (int countY) |
Set method for y count. | |
void | setGridCoordDisableX (GridCoordDisable gridCoordDisable) |
Set method for x coord parameter to disable. | |
void | setGridCoordDisableY (GridCoordDisable gridCoordDisable) |
Set method for y coord parameter to disable. | |
void | setRemoveDefinedGridLines (bool removeDefinedGridLines) |
Set method for removing defined grid lines. | |
void | setStable () |
Set the stable flag to true. This public version has no argument since it cannot be undone. | |
void | setStartX (double startX) |
Set method for x start. | |
void | setStartY (double startY) |
Set method for y start. | |
void | setStepX (double stepX) |
Set method for x step. | |
void | setStepY (double stepY) |
Set method for y step. | |
void | setStopX (double stopX) |
Set method for x stop. | |
void | setStopY (double stopY) |
Set method for y stop. | |
bool | stable () const |
Get method for stable flag. | |
double | startX () const |
Get method for x start. | |
double | startY () const |
Get method for y start. | |
double | stepX () const |
Get method for x step. | |
double | stepY () const |
Get method for y step. | |
double | stopX () const |
Get method for x stop. | |
double | stopY () const |
Get method for y stop. | |
![]() | |
DocumentModelAbstractBase () | |
Single constructor. | |
virtual | ~DocumentModelAbstractBase () |
Single destructor. | |
Additional Inherited Members |
Model for DlgSettingsGridRemoval and CmdSettingsGridRemoval. The settings are unstable until the user approves.
Definition at line 17 of file DocumentModelGridRemoval.h.
DocumentModelGridRemoval::DocumentModelGridRemoval | ( | ) |
Default constructor.
Definition at line 22 of file DocumentModelGridRemoval.cpp.
DocumentModelGridRemoval::DocumentModelGridRemoval | ( | double | startX, |
double | startY, | ||
double | stepX, | ||
double | stepY, | ||
int | countX, | ||
int | countY ) |
Constructor fed by GridClassifier.
Definition at line 39 of file DocumentModelGridRemoval.cpp.
Initial constructor from Document.
Definition at line 61 of file DocumentModelGridRemoval.cpp.
DocumentModelGridRemoval::DocumentModelGridRemoval | ( | const DocumentModelGridRemoval & | other | ) |
Copy constructor.
Definition at line 78 of file DocumentModelGridRemoval.cpp.
double DocumentModelGridRemoval::closeDistance | ( | ) | const |
Get method for close distance.
Definition at line 114 of file DocumentModelGridRemoval.cpp.
int DocumentModelGridRemoval::countX | ( | ) | const |
Get method for x count.
Definition at line 119 of file DocumentModelGridRemoval.cpp.
int DocumentModelGridRemoval::countY | ( | ) | const |
Get method for y count.
Definition at line 124 of file DocumentModelGridRemoval.cpp.
GridCoordDisable DocumentModelGridRemoval::gridCoordDisableX | ( | ) | const |
Get method for x coord parameter to disable.
Definition at line 129 of file DocumentModelGridRemoval.cpp.
GridCoordDisable DocumentModelGridRemoval::gridCoordDisableY | ( | ) | const |
Get method for y coord parameter to disable.
Definition at line 134 of file DocumentModelGridRemoval.cpp.
|
virtual |
Load model from serialized xml.
Implements DocumentModelAbstractBase.
Definition at line 139 of file DocumentModelGridRemoval.cpp.
DocumentModelGridRemoval & DocumentModelGridRemoval::operator= | ( | const DocumentModelGridRemoval & | other | ) |
Assignment constructor.
Definition at line 95 of file DocumentModelGridRemoval.cpp.
void DocumentModelGridRemoval::printStream | ( | QString | indentation, |
QTextStream & | str ) const |
Debugging method that supports print method of this class and printStream method of some other class(es)
Definition at line 195 of file DocumentModelGridRemoval.cpp.
bool DocumentModelGridRemoval::removeDefinedGridLines | ( | ) | const |
Get method for removing defined grid lines.
Definition at line 217 of file DocumentModelGridRemoval.cpp.
|
virtual |
Save entire model as xml into stream.
Implements DocumentModelAbstractBase.
Definition at line 222 of file DocumentModelGridRemoval.cpp.
Set method for close distance.
Definition at line 250 of file DocumentModelGridRemoval.cpp.
Set method for x count.
Definition at line 255 of file DocumentModelGridRemoval.cpp.
Set method for y count.
Definition at line 260 of file DocumentModelGridRemoval.cpp.
void DocumentModelGridRemoval::setGridCoordDisableX | ( | GridCoordDisable | gridCoordDisable | ) |
Set method for x coord parameter to disable.
Definition at line 265 of file DocumentModelGridRemoval.cpp.
void DocumentModelGridRemoval::setGridCoordDisableY | ( | GridCoordDisable | gridCoordDisable | ) |
Set method for y coord parameter to disable.
Definition at line 270 of file DocumentModelGridRemoval.cpp.
Set method for removing defined grid lines.
Definition at line 275 of file DocumentModelGridRemoval.cpp.
void DocumentModelGridRemoval::setStable | ( | ) |
Set the stable flag to true. This public version has no argument since it cannot be undone.
Definition at line 280 of file DocumentModelGridRemoval.cpp.
Set method for x start.
Definition at line 290 of file DocumentModelGridRemoval.cpp.
Set method for y start.
Definition at line 295 of file DocumentModelGridRemoval.cpp.
Set method for x step.
Definition at line 300 of file DocumentModelGridRemoval.cpp.
Set method for y step.
Definition at line 305 of file DocumentModelGridRemoval.cpp.
Set method for x stop.
Definition at line 310 of file DocumentModelGridRemoval.cpp.
Set method for y stop.
Definition at line 315 of file DocumentModelGridRemoval.cpp.
bool DocumentModelGridRemoval::stable | ( | ) | const |
Get method for stable flag.
The flag is false to let the settings get automatically updated, until the user selects settings - at which point the stable flag is set to true
Definition at line 320 of file DocumentModelGridRemoval.cpp.
double DocumentModelGridRemoval::startX | ( | ) | const |
Get method for x start.
Definition at line 325 of file DocumentModelGridRemoval.cpp.
double DocumentModelGridRemoval::startY | ( | ) | const |
Get method for y start.
Definition at line 330 of file DocumentModelGridRemoval.cpp.
double DocumentModelGridRemoval::stepX | ( | ) | const |
Get method for x step.
Definition at line 335 of file DocumentModelGridRemoval.cpp.
double DocumentModelGridRemoval::stepY | ( | ) | const |
Get method for y step.
Definition at line 340 of file DocumentModelGridRemoval.cpp.
double DocumentModelGridRemoval::stopX | ( | ) | const |
Get method for x stop.
Definition at line 345 of file DocumentModelGridRemoval.cpp.
double DocumentModelGridRemoval::stopY | ( | ) | const |
Get method for y stop.
Definition at line 350 of file DocumentModelGridRemoval.cpp.