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

Model for DlgSettingsGridRemoval and CmdSettingsGridRemoval. The settings are unstable until the user approves. More...

#include <DocumentModelGridRemoval.h>

Inheritance diagram for DocumentModelGridRemoval:
Inheritance graph
Collaboration diagram for DocumentModelGridRemoval:
Collaboration graph

Public Member Functions

 DocumentModelGridRemoval ()
 Default constructor. More...
 
 DocumentModelGridRemoval (double startX, double startY, double stepX, double stepY, int countX, int countY)
 Constructor fed by GridClassifier. More...
 
 DocumentModelGridRemoval (const Document &document)
 Initial constructor from Document. More...
 
 DocumentModelGridRemoval (const DocumentModelGridRemoval &other)
 Copy constructor. More...
 
DocumentModelGridRemovaloperator= (const DocumentModelGridRemoval &other)
 Assignment constructor. More...
 
double closeDistance () const
 Get method for close distance. More...
 
int countX () const
 Get method for x count. More...
 
int countY () const
 Get method for y count. More...
 
GridCoordDisable gridCoordDisableX () const
 Get method for x coord parameter to disable. More...
 
GridCoordDisable gridCoordDisableY () const
 Get method for y coord parameter to disable. More...
 
virtual void loadXml (QXmlStreamReader &reader)
 Load model from serialized xml. More...
 
void printStream (QString indentation, QTextStream &str) const
 Debugging method that supports print method of this class and printStream method of some other class(es) More...
 
bool removeDefinedGridLines () const
 Get method for removing defined grid lines. More...
 
virtual void saveXml (QXmlStreamWriter &writer) const
 Save entire model as xml into stream. More...
 
void setCloseDistance (double closeDistance)
 Set method for close distance. More...
 
void setCountX (int countX)
 Set method for x count. More...
 
void setCountY (int countY)
 Set method for y count. More...
 
void setGridCoordDisableX (GridCoordDisable gridCoordDisable)
 Set method for x coord parameter to disable. More...
 
void setGridCoordDisableY (GridCoordDisable gridCoordDisable)
 Set method for y coord parameter to disable. More...
 
void setRemoveDefinedGridLines (bool removeDefinedGridLines)
 Set method for removing defined grid lines. More...
 
void setStable ()
 Set the stable flag to true. This public version has no argument since it cannot be undone. More...
 
void setStartX (double startX)
 Set method for x start. More...
 
void setStartY (double startY)
 Set method for y start. More...
 
void setStepX (double stepX)
 Set method for x step. More...
 
void setStepY (double stepY)
 Set method for y step. More...
 
void setStopX (double stopX)
 Set method for x stop. More...
 
void setStopY (double stopY)
 Set method for y stop. More...
 
bool stable () const
 Get method for stable flag. More...
 
double startX () const
 Get method for x start. More...
 
double startY () const
 Get method for y start. More...
 
double stepX () const
 Get method for x step. More...
 
double stepY () const
 Get method for y step. More...
 
double stopX () const
 Get method for x stop. More...
 
double stopY () const
 Get method for y stop. More...
 
- Public Member Functions inherited from DocumentModelAbstractBase
 DocumentModelAbstractBase ()
 Single constructor. More...
 
virtual ~DocumentModelAbstractBase ()
 Single destructor. More...
 

Additional Inherited Members

Detailed Description

Model for DlgSettingsGridRemoval and CmdSettingsGridRemoval. The settings are unstable until the user approves.

Definition at line 17 of file DocumentModelGridRemoval.h.

Constructor & Destructor Documentation

◆ DocumentModelGridRemoval() [1/4]

DocumentModelGridRemoval::DocumentModelGridRemoval ( )

Default constructor.

Definition at line 22 of file DocumentModelGridRemoval.cpp.

22  :
23  m_stable (false),
24  m_removeDefinedGridLines (false),
25  m_closeDistance (CLOSE_DISTANCE_DEFAULT),
26  m_gridCoordDisableX (GRID_COORD_DISABLE_COUNT),
27  m_countX (DEFAULT_COUNT),
28  m_startX (DEFAULT_NON_COUNT),
29  m_stepX (DEFAULT_NON_COUNT),
30  m_stopX (DEFAULT_NON_COUNT),
31  m_gridCoordDisableY (GRID_COORD_DISABLE_COUNT),
32  m_countY (DEFAULT_COUNT),
33  m_startY (DEFAULT_NON_COUNT),
34  m_stepY (DEFAULT_NON_COUNT),
35  m_stopY (DEFAULT_NON_COUNT)
36 {
37 }
const int DEFAULT_COUNT
const double DEFAULT_NON_COUNT
const double CLOSE_DISTANCE_DEFAULT

◆ DocumentModelGridRemoval() [2/4]

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.

44  :
45  m_stable (false),
46  m_removeDefinedGridLines (false),
47  m_closeDistance (CLOSE_DISTANCE_DEFAULT),
48  m_gridCoordDisableX (GRID_COORD_DISABLE_COUNT),
49  m_countX (countX),
50  m_startX (startX),
51  m_stepX (stepX),
52  m_stopX (startX + (countX - 1.0) * stepX),
53  m_gridCoordDisableY (GRID_COORD_DISABLE_COUNT),
54  m_countY (countY),
55  m_startY (startY),
56  m_stepY (stepY),
57  m_stopY (startY + (countY - 1.0) * stepY)
58 {
59 }
int countY() const
Get method for y count.
double startY() const
Get method for y start.
double stepX() const
Get method for x step.
int countX() const
Get method for x count.
double startX() const
Get method for x start.
const double CLOSE_DISTANCE_DEFAULT
double stepY() const
Get method for y step.

◆ DocumentModelGridRemoval() [3/4]

DocumentModelGridRemoval::DocumentModelGridRemoval ( const Document document)

Initial constructor from Document.

Definition at line 61 of file DocumentModelGridRemoval.cpp.

61  :
62  m_stable (document.modelGridRemoval().stable()),
63  m_removeDefinedGridLines (document.modelGridRemoval().removeDefinedGridLines()),
64  m_closeDistance (document.modelGridRemoval().closeDistance()),
65  m_gridCoordDisableX (document.modelGridRemoval().gridCoordDisableX()),
66  m_countX (document.modelGridRemoval().countX()),
67  m_startX (document.modelGridRemoval().startX()),
68  m_stepX (document.modelGridRemoval().stepX()),
69  m_stopX (document.modelGridRemoval().stopX()),
70  m_gridCoordDisableY (document.modelGridRemoval().gridCoordDisableY()),
71  m_countY (document.modelGridRemoval().countY()),
72  m_startY (document.modelGridRemoval().startY()),
73  m_stepY (document.modelGridRemoval().stepY()),
74  m_stopY (document.modelGridRemoval().stopY())
75 {
76 }
double closeDistance() const
Get method for close distance.
bool stable() const
Get method for stable flag.
GridCoordDisable gridCoordDisableX() const
Get method for x coord parameter to disable.
double stopY() const
Get method for y stop.
double stopX() const
Get method for x stop.
int countY() const
Get method for y count.
DocumentModelGridRemoval modelGridRemoval() const
Get method for DocumentModelGridRemoval.
Definition: Document.cpp:737
double startY() const
Get method for y start.
double stepX() const
Get method for x step.
bool removeDefinedGridLines() const
Get method for removing defined grid lines.
int countX() const
Get method for x count.
double startX() const
Get method for x start.
GridCoordDisable gridCoordDisableY() const
Get method for y coord parameter to disable.
double stepY() const
Get method for y step.

◆ DocumentModelGridRemoval() [4/4]

DocumentModelGridRemoval::DocumentModelGridRemoval ( const DocumentModelGridRemoval other)

Copy constructor.

Definition at line 78 of file DocumentModelGridRemoval.cpp.

78  :
79  m_stable (other.stable()),
80  m_removeDefinedGridLines (other.removeDefinedGridLines()),
81  m_closeDistance (other.closeDistance()),
82  m_gridCoordDisableX (other.gridCoordDisableX()),
83  m_countX (other.countX()),
84  m_startX (other.startX()),
85  m_stepX (other.stepX()),
86  m_stopX (other.stopX()),
87  m_gridCoordDisableY (other.gridCoordDisableX()),
88  m_countY (other.countY()),
89  m_startY (other.startY()),
90  m_stepY (other.stepY()),
91  m_stopY (other.stopY())
92 {
93 }
double closeDistance() const
Get method for close distance.
bool stable() const
Get method for stable flag.
GridCoordDisable gridCoordDisableX() const
Get method for x coord parameter to disable.
double stopY() const
Get method for y stop.
double stopX() const
Get method for x stop.
int countY() const
Get method for y count.
double startY() const
Get method for y start.
double stepX() const
Get method for x step.
bool removeDefinedGridLines() const
Get method for removing defined grid lines.
int countX() const
Get method for x count.
double startX() const
Get method for x start.
double stepY() const
Get method for y step.

Member Function Documentation

◆ closeDistance()

double DocumentModelGridRemoval::closeDistance ( ) const

Get method for close distance.

Definition at line 114 of file DocumentModelGridRemoval.cpp.

115 {
116  return m_closeDistance;
117 }

◆ countX()

int DocumentModelGridRemoval::countX ( ) const

Get method for x count.

Definition at line 119 of file DocumentModelGridRemoval.cpp.

120 {
121  return m_countX;
122 }

◆ countY()

int DocumentModelGridRemoval::countY ( ) const

Get method for y count.

Definition at line 124 of file DocumentModelGridRemoval.cpp.

125 {
126  return m_countY;
127 }

◆ gridCoordDisableX()

GridCoordDisable DocumentModelGridRemoval::gridCoordDisableX ( ) const

Get method for x coord parameter to disable.

Definition at line 129 of file DocumentModelGridRemoval.cpp.

130 {
131  return m_gridCoordDisableX;
132 }

◆ gridCoordDisableY()

GridCoordDisable DocumentModelGridRemoval::gridCoordDisableY ( ) const

Get method for y coord parameter to disable.

Definition at line 134 of file DocumentModelGridRemoval.cpp.

135 {
136  return m_gridCoordDisableY;
137 }

◆ loadXml()

void DocumentModelGridRemoval::loadXml ( QXmlStreamReader &  reader)
virtual

Load model from serialized xml.

Implements DocumentModelAbstractBase.

Definition at line 139 of file DocumentModelGridRemoval.cpp.

140 {
141  LOG4CPP_INFO_S ((*mainCat)) << "DocumentModelGridRemoval::loadXml";
142 
143  bool success = true;
144 
145  QXmlStreamAttributes attributes = reader.attributes();
146 
147  if (attributes.hasAttribute(DOCUMENT_SERIALIZE_GRID_REMOVAL_STABLE) &&
148  attributes.hasAttribute(DOCUMENT_SERIALIZE_GRID_REMOVAL_DEFINED_GRID_LINES) &&
149  attributes.hasAttribute(DOCUMENT_SERIALIZE_GRID_REMOVAL_CLOSE_DISTANCE) &&
150  attributes.hasAttribute(DOCUMENT_SERIALIZE_GRID_REMOVAL_COORD_DISABLE_X) &&
151  attributes.hasAttribute(DOCUMENT_SERIALIZE_GRID_REMOVAL_COUNT_X) &&
152  attributes.hasAttribute(DOCUMENT_SERIALIZE_GRID_REMOVAL_START_X) &&
153  attributes.hasAttribute(DOCUMENT_SERIALIZE_GRID_REMOVAL_STEP_X) &&
154  attributes.hasAttribute(DOCUMENT_SERIALIZE_GRID_REMOVAL_STOP_X) &&
155  attributes.hasAttribute(DOCUMENT_SERIALIZE_GRID_REMOVAL_COORD_DISABLE_Y) &&
156  attributes.hasAttribute(DOCUMENT_SERIALIZE_GRID_REMOVAL_COUNT_Y) &&
157  attributes.hasAttribute(DOCUMENT_SERIALIZE_GRID_REMOVAL_START_Y) &&
158  attributes.hasAttribute(DOCUMENT_SERIALIZE_GRID_REMOVAL_STEP_Y) &&
159  attributes.hasAttribute(DOCUMENT_SERIALIZE_GRID_REMOVAL_STOP_Y)) {
160 
161  // Boolean values
162  QString stableValue = attributes.value(DOCUMENT_SERIALIZE_GRID_REMOVAL_STABLE).toString();
163  QString definedValue = attributes.value(DOCUMENT_SERIALIZE_GRID_REMOVAL_DEFINED_GRID_LINES).toString();
164 
165  setStable (stableValue == DOCUMENT_SERIALIZE_BOOL_TRUE);
168  setGridCoordDisableX (static_cast<GridCoordDisable> (attributes.value(DOCUMENT_SERIALIZE_GRID_REMOVAL_COORD_DISABLE_X).toInt()));
169  setCountX (attributes.value(DOCUMENT_SERIALIZE_GRID_REMOVAL_COUNT_X).toInt());
170  setStartX (attributes.value(DOCUMENT_SERIALIZE_GRID_REMOVAL_START_X).toDouble());
171  setStepX (attributes.value(DOCUMENT_SERIALIZE_GRID_REMOVAL_STEP_X).toDouble());
172  setStopX (attributes.value(DOCUMENT_SERIALIZE_GRID_REMOVAL_STOP_X).toDouble());
173  setGridCoordDisableY (static_cast<GridCoordDisable> (attributes.value(DOCUMENT_SERIALIZE_GRID_REMOVAL_COORD_DISABLE_Y).toInt()));
174  setCountY (attributes.value(DOCUMENT_SERIALIZE_GRID_REMOVAL_COUNT_Y).toInt());
175  setStartY (attributes.value(DOCUMENT_SERIALIZE_GRID_REMOVAL_START_Y).toDouble());
176  setStepY (attributes.value(DOCUMENT_SERIALIZE_GRID_REMOVAL_STEP_Y).toDouble());
177  setStopY (attributes.value(DOCUMENT_SERIALIZE_GRID_REMOVAL_STOP_Y).toDouble());
178 
179  // Read until end of this subtree
180  while ((reader.tokenType() != QXmlStreamReader::EndElement) ||
181  (reader.name() != DOCUMENT_SERIALIZE_GRID_REMOVAL)){
182  loadNextFromReader(reader);
183  if (reader.atEnd()) {
184  success = false;
185  break;
186  }
187  }
188  }
189 
190  if (!success) {
191  reader.raiseError (QObject::tr ("Cannot read grid removal data"));
192  }
193 }
const QString DOCUMENT_SERIALIZE_GRID_REMOVAL_STABLE
const QString DOCUMENT_SERIALIZE_GRID_REMOVAL_STEP_X
QXmlStreamReader::TokenType loadNextFromReader(QXmlStreamReader &reader)
Load next token from xml reader.
Definition: Xml.cpp:14
void setCloseDistance(double closeDistance)
Set method for close distance.
void setCountX(int countX)
Set method for x count.
const QString DOCUMENT_SERIALIZE_GRID_REMOVAL_COUNT_X
const QString DOCUMENT_SERIALIZE_GRID_REMOVAL_START_X
void setStopY(double stopY)
Set method for y stop.
const QString DOCUMENT_SERIALIZE_GRID_REMOVAL_COUNT_Y
const QString DOCUMENT_SERIALIZE_GRID_REMOVAL_STEP_Y
#define LOG4CPP_INFO_S(logger)
Definition: convenience.h:18
void setStartY(double startY)
Set method for y start.
void setStepY(double stepY)
Set method for y step.
const QString DOCUMENT_SERIALIZE_BOOL_TRUE
const QString DOCUMENT_SERIALIZE_GRID_REMOVAL_STOP_X
void setStartX(double startX)
Set method for x start.
const QString DOCUMENT_SERIALIZE_GRID_REMOVAL_START_Y
const QString DOCUMENT_SERIALIZE_GRID_REMOVAL_DEFINED_GRID_LINES
void setCountY(int countY)
Set method for y count.
const QString DOCUMENT_SERIALIZE_GRID_REMOVAL_CLOSE_DISTANCE
void setStepX(double stepX)
Set method for x step.
const QString DOCUMENT_SERIALIZE_GRID_REMOVAL_COORD_DISABLE_Y
const QString DOCUMENT_SERIALIZE_GRID_REMOVAL_STOP_Y
void setRemoveDefinedGridLines(bool removeDefinedGridLines)
Set method for removing defined grid lines.
void setGridCoordDisableY(GridCoordDisable gridCoordDisable)
Set method for y coord parameter to disable.
void setGridCoordDisableX(GridCoordDisable gridCoordDisable)
Set method for x coord parameter to disable.
log4cpp::Category * mainCat
Definition: Logger.cpp:14
void setStable()
Set the stable flag to true. This public version has no argument since it cannot be undone...
const QString DOCUMENT_SERIALIZE_GRID_REMOVAL
void setStopX(double stopX)
Set method for x stop.
const QString DOCUMENT_SERIALIZE_GRID_REMOVAL_COORD_DISABLE_X

◆ operator=()

DocumentModelGridRemoval & DocumentModelGridRemoval::operator= ( const DocumentModelGridRemoval other)

Assignment constructor.

Definition at line 95 of file DocumentModelGridRemoval.cpp.

96 {
97  m_stable = other.stable();
98  m_removeDefinedGridLines = other.removeDefinedGridLines();
99  m_closeDistance = other.closeDistance();
100  m_gridCoordDisableX = other.gridCoordDisableX();
101  m_countX = other.countX();
102  m_startX = other.startX();
103  m_stepX = other.stepX();
104  m_stopX = other.stopX();
105  m_gridCoordDisableY = other.gridCoordDisableY();
106  m_countY = other.countY();
107  m_startY = other.startY();
108  m_stepY = other.stepY();
109  m_stopY = other.stopY();
110 
111  return *this;
112 }
double closeDistance() const
Get method for close distance.
bool stable() const
Get method for stable flag.
GridCoordDisable gridCoordDisableX() const
Get method for x coord parameter to disable.
double stopY() const
Get method for y stop.
double stopX() const
Get method for x stop.
int countY() const
Get method for y count.
double startY() const
Get method for y start.
double stepX() const
Get method for x step.
bool removeDefinedGridLines() const
Get method for removing defined grid lines.
int countX() const
Get method for x count.
double startX() const
Get method for x start.
GridCoordDisable gridCoordDisableY() const
Get method for y coord parameter to disable.
double stepY() const
Get method for y step.

◆ printStream()

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.

197 {
198  str << indentation << "DocumentModelGridRemoval\n";
199 
200  indentation += INDENTATION_DELTA;
201 
202  str << indentation << "stable=" << (m_stable ? "true" : "false") << "\n";
203  str << indentation << "removeDefinedGridLines=" << (m_removeDefinedGridLines ? "true" : "false") << "\n";
204  str << indentation << "closeDistance=" << m_closeDistance << "\n";
205  str << indentation << "gridCoordDisableX=" << gridCoordDisableToString (m_gridCoordDisableX) << "\n";
206  str << indentation << "countX=" << m_countX << "\n";
207  str << indentation << "startX=" << m_startX << "\n";
208  str << indentation << "stepX=" << m_stepX << "\n";
209  str << indentation << "stopX=" << m_stopX << "\n";
210  str << indentation << "gridCoordDisableY=" << gridCoordDisableToString (m_gridCoordDisableY) << "\n";
211  str << indentation << "countY=" << m_countY << "\n";
212  str << indentation << "startY=" << m_startY << "\n";
213  str << indentation << "stepY=" << m_stepY << "\n";
214  str << indentation << "stopY=" << m_stopY << "\n";
215 }
const QString INDENTATION_DELTA
QString gridCoordDisableToString(GridCoordDisable gridCoordDisable)

◆ removeDefinedGridLines()

bool DocumentModelGridRemoval::removeDefinedGridLines ( ) const

Get method for removing defined grid lines.

Definition at line 217 of file DocumentModelGridRemoval.cpp.

218 {
219  return m_removeDefinedGridLines;
220 }

◆ saveXml()

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

Save entire model as xml into stream.

Implements DocumentModelAbstractBase.

Definition at line 222 of file DocumentModelGridRemoval.cpp.

223 {
224  LOG4CPP_INFO_S ((*mainCat)) << "DocumentModelGridRemoval::saveXml";
225 
226  writer.writeStartElement(DOCUMENT_SERIALIZE_GRID_REMOVAL);
227  writer.writeAttribute(DOCUMENT_SERIALIZE_GRID_REMOVAL_STABLE, m_stable ?
230  writer.writeAttribute(DOCUMENT_SERIALIZE_GRID_REMOVAL_DEFINED_GRID_LINES, m_removeDefinedGridLines ?
233  writer.writeAttribute(DOCUMENT_SERIALIZE_GRID_REMOVAL_CLOSE_DISTANCE, QString::number (m_closeDistance));
234  writer.writeAttribute(DOCUMENT_SERIALIZE_GRID_REMOVAL_COORD_DISABLE_X, QString::number (m_gridCoordDisableX));
235  writer.writeAttribute(DOCUMENT_SERIALIZE_GRID_REMOVAL_COORD_DISABLE_X_STRING, gridCoordDisableToString (m_gridCoordDisableX));
236  writer.writeAttribute(DOCUMENT_SERIALIZE_GRID_REMOVAL_COUNT_X, QString::number (m_countX));
237  writer.writeAttribute(DOCUMENT_SERIALIZE_GRID_REMOVAL_START_X, QString::number (m_startX));
238  writer.writeAttribute(DOCUMENT_SERIALIZE_GRID_REMOVAL_STEP_X, QString::number (m_stepX));
239  writer.writeAttribute(DOCUMENT_SERIALIZE_GRID_REMOVAL_STOP_X, QString::number (m_stopX));
240  writer.writeAttribute(DOCUMENT_SERIALIZE_GRID_REMOVAL_COORD_DISABLE_Y, QString::number (m_gridCoordDisableY));
241  writer.writeAttribute(DOCUMENT_SERIALIZE_GRID_REMOVAL_COORD_DISABLE_Y_STRING, gridCoordDisableToString (m_gridCoordDisableY));
242  writer.writeAttribute(DOCUMENT_SERIALIZE_GRID_REMOVAL_COUNT_Y, QString::number (m_countY));
243  writer.writeAttribute(DOCUMENT_SERIALIZE_GRID_REMOVAL_START_Y, QString::number (m_startY));
244  writer.writeAttribute(DOCUMENT_SERIALIZE_GRID_REMOVAL_STEP_Y, QString::number (m_stepY));
245  writer.writeAttribute(DOCUMENT_SERIALIZE_GRID_REMOVAL_STOP_Y, QString::number (m_stopY));
246 
247  writer.writeEndElement();
248 }
const QString DOCUMENT_SERIALIZE_GRID_REMOVAL_STABLE
const QString DOCUMENT_SERIALIZE_GRID_REMOVAL_STEP_X
const QString DOCUMENT_SERIALIZE_GRID_REMOVAL_COUNT_X
const QString DOCUMENT_SERIALIZE_GRID_REMOVAL_START_X
const QString DOCUMENT_SERIALIZE_GRID_REMOVAL_COORD_DISABLE_X_STRING
const QString DOCUMENT_SERIALIZE_GRID_REMOVAL_COUNT_Y
QString gridCoordDisableToString(GridCoordDisable gridCoordDisable)
const QString DOCUMENT_SERIALIZE_GRID_REMOVAL_STEP_Y
#define LOG4CPP_INFO_S(logger)
Definition: convenience.h:18
const QString DOCUMENT_SERIALIZE_BOOL_TRUE
const QString DOCUMENT_SERIALIZE_GRID_REMOVAL_STOP_X
const QString DOCUMENT_SERIALIZE_GRID_REMOVAL_START_Y
const QString DOCUMENT_SERIALIZE_GRID_REMOVAL_DEFINED_GRID_LINES
const QString DOCUMENT_SERIALIZE_GRID_REMOVAL_CLOSE_DISTANCE
const QString DOCUMENT_SERIALIZE_BOOL_FALSE
const QString DOCUMENT_SERIALIZE_GRID_REMOVAL_COORD_DISABLE_Y
const QString DOCUMENT_SERIALIZE_GRID_REMOVAL_STOP_Y
log4cpp::Category * mainCat
Definition: Logger.cpp:14
const QString DOCUMENT_SERIALIZE_GRID_REMOVAL_COORD_DISABLE_Y_STRING
const QString DOCUMENT_SERIALIZE_GRID_REMOVAL
const QString DOCUMENT_SERIALIZE_GRID_REMOVAL_COORD_DISABLE_X

◆ setCloseDistance()

void DocumentModelGridRemoval::setCloseDistance ( double  closeDistance)

Set method for close distance.

Definition at line 250 of file DocumentModelGridRemoval.cpp.

251 {
252  m_closeDistance = closeDistance;
253 }
double closeDistance() const
Get method for close distance.

◆ setCountX()

void DocumentModelGridRemoval::setCountX ( int  countX)

Set method for x count.

Definition at line 255 of file DocumentModelGridRemoval.cpp.

256 {
257  m_countX = countX;
258 }
int countX() const
Get method for x count.

◆ setCountY()

void DocumentModelGridRemoval::setCountY ( int  countY)

Set method for y count.

Definition at line 260 of file DocumentModelGridRemoval.cpp.

261 {
262  m_countY = countY;
263 }
int countY() const
Get method for y count.

◆ setGridCoordDisableX()

void DocumentModelGridRemoval::setGridCoordDisableX ( GridCoordDisable  gridCoordDisable)

Set method for x coord parameter to disable.

Definition at line 265 of file DocumentModelGridRemoval.cpp.

266 {
267  m_gridCoordDisableX = gridCoordDisable;
268 }

◆ setGridCoordDisableY()

void DocumentModelGridRemoval::setGridCoordDisableY ( GridCoordDisable  gridCoordDisable)

Set method for y coord parameter to disable.

Definition at line 270 of file DocumentModelGridRemoval.cpp.

271 {
272  m_gridCoordDisableY = gridCoordDisable;
273 }

◆ setRemoveDefinedGridLines()

void DocumentModelGridRemoval::setRemoveDefinedGridLines ( bool  removeDefinedGridLines)

Set method for removing defined grid lines.

Definition at line 275 of file DocumentModelGridRemoval.cpp.

276 {
277  m_removeDefinedGridLines = removeDefinedGridLines;
278 }
bool removeDefinedGridLines() const
Get method for removing defined grid lines.

◆ setStable()

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.

281 {
282  m_stable = true;
283 }

◆ setStartX()

void DocumentModelGridRemoval::setStartX ( double  startX)

Set method for x start.

Definition at line 290 of file DocumentModelGridRemoval.cpp.

291 {
292  m_startX = startX;
293 }
double startX() const
Get method for x start.

◆ setStartY()

void DocumentModelGridRemoval::setStartY ( double  startY)

Set method for y start.

Definition at line 295 of file DocumentModelGridRemoval.cpp.

296 {
297  m_startY = startY;
298 }
double startY() const
Get method for y start.

◆ setStepX()

void DocumentModelGridRemoval::setStepX ( double  stepX)

Set method for x step.

Definition at line 300 of file DocumentModelGridRemoval.cpp.

301 {
302  m_stepX = stepX;
303 }
double stepX() const
Get method for x step.

◆ setStepY()

void DocumentModelGridRemoval::setStepY ( double  stepY)

Set method for y step.

Definition at line 305 of file DocumentModelGridRemoval.cpp.

306 {
307  m_stepY = stepY;
308 }
double stepY() const
Get method for y step.

◆ setStopX()

void DocumentModelGridRemoval::setStopX ( double  stopX)

Set method for x stop.

Definition at line 310 of file DocumentModelGridRemoval.cpp.

311 {
312  m_stopX = stopX;
313 }
double stopX() const
Get method for x stop.

◆ setStopY()

void DocumentModelGridRemoval::setStopY ( double  stopY)

Set method for y stop.

Definition at line 315 of file DocumentModelGridRemoval.cpp.

316 {
317  m_stopY = stopY;
318 }
double stopY() const
Get method for y stop.

◆ stable()

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.

321 {
322  return m_stable;
323 }

◆ startX()

double DocumentModelGridRemoval::startX ( ) const

Get method for x start.

Definition at line 325 of file DocumentModelGridRemoval.cpp.

326 {
327  return m_startX;
328 }

◆ startY()

double DocumentModelGridRemoval::startY ( ) const

Get method for y start.

Definition at line 330 of file DocumentModelGridRemoval.cpp.

331 {
332  return m_startY;
333 }

◆ stepX()

double DocumentModelGridRemoval::stepX ( ) const

Get method for x step.

Definition at line 335 of file DocumentModelGridRemoval.cpp.

336 {
337  return m_stepX;
338 }

◆ stepY()

double DocumentModelGridRemoval::stepY ( ) const

Get method for y step.

Definition at line 340 of file DocumentModelGridRemoval.cpp.

341 {
342  return m_stepY;
343 }

◆ stopX()

double DocumentModelGridRemoval::stopX ( ) const

Get method for x stop.

Definition at line 345 of file DocumentModelGridRemoval.cpp.

346 {
347  return m_stopX;
348 }

◆ stopY()

double DocumentModelGridRemoval::stopY ( ) const

Get method for y stop.

Definition at line 350 of file DocumentModelGridRemoval.cpp.

351 {
352  return m_stopY;
353 }

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