Engauge Digitizer 2
|
Model for managing the coordinate values corresponding Guidelines. More...
#include <DocumentModelGuideline.h>
Public Member Functions | |
DocumentModelGuideline () | |
Default constructor. | |
DocumentModelGuideline (const Document &document) | |
Initial constructor from Document. | |
DocumentModelGuideline (const DocumentModelGuideline &other) | |
Copy constructor. | |
DocumentModelGuideline & | operator= (const DocumentModelGuideline &other) |
Assignment constructor. | |
double | creationCircleRadius () const |
Get method for creation circle radius in pixels. | |
ColorPalette | lineColor () const |
Get method for line color. | |
double | lineWidthActive () const |
Get method for line width when active. | |
double | lineWidthInactive () const |
Get method for line width when inactive. | |
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) | |
virtual void | saveXml (QXmlStreamWriter &writer) const |
Save entire model as xml into stream. | |
void | setCreationCircleRadius (double radius) |
Set method for creation circle radius in pixels. | |
void | setLineColor (ColorPalette lineColor) |
Set method for line color. | |
void | setLineWidthActive (double lineWidth) |
Set method for line width when active. | |
void | setLineWidthInactive (double lineWidth) |
Set method for line width when inactive. | |
void | setValuesX (const GuidelineValues &valuesX) |
Set method for x/t values. | |
void | setValuesY (const GuidelineValues &valuesY) |
Set method for y/r values. | |
GuidelineValues | valuesX () const |
Get method for x/t values. | |
GuidelineValues | valuesY () const |
Get method for y/r values. | |
Public Member Functions inherited from DocumentModelAbstractBase | |
DocumentModelAbstractBase () | |
Single constructor. | |
virtual | ~DocumentModelAbstractBase () |
Single destructor. |
Model for managing the coordinate values corresponding Guidelines.
The strategy for transition between cartesian and polar reference frames is to discard the old Guideline values since there is no intuitive mapping between the two sets
Definition at line 21 of file DocumentModelGuideline.h.
DocumentModelGuideline::DocumentModelGuideline | ( | ) |
Default constructor.
Definition at line 23 of file DocumentModelGuideline.cpp.
DocumentModelGuideline::DocumentModelGuideline | ( | const Document & | document | ) |
Initial constructor from Document.
Definition at line 31 of file DocumentModelGuideline.cpp.
DocumentModelGuideline::DocumentModelGuideline | ( | const DocumentModelGuideline & | other | ) |
Copy constructor.
Definition at line 41 of file DocumentModelGuideline.cpp.
double DocumentModelGuideline::creationCircleRadius | ( | ) | const |
Get method for creation circle radius in pixels.
Definition at line 63 of file DocumentModelGuideline.cpp.
ColorPalette DocumentModelGuideline::lineColor | ( | ) | const |
Get method for line color.
Definition at line 68 of file DocumentModelGuideline.cpp.
double DocumentModelGuideline::lineWidthActive | ( | ) | const |
Get method for line width when active.
Definition at line 73 of file DocumentModelGuideline.cpp.
double DocumentModelGuideline::lineWidthInactive | ( | ) | const |
Get method for line width when inactive.
Definition at line 78 of file DocumentModelGuideline.cpp.
|
virtual |
Load model from serialized xml.
Implements DocumentModelAbstractBase.
Definition at line 83 of file DocumentModelGuideline.cpp.
DocumentModelGuideline & DocumentModelGuideline::operator= | ( | const DocumentModelGuideline & | other | ) |
Assignment constructor.
Definition at line 51 of file DocumentModelGuideline.cpp.
void DocumentModelGuideline::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 164 of file DocumentModelGuideline.cpp.
|
virtual |
Save entire model as xml into stream.
Implements DocumentModelAbstractBase.
Definition at line 193 of file DocumentModelGuideline.cpp.
void DocumentModelGuideline::setCreationCircleRadius | ( | double | radius | ) |
Set method for creation circle radius in pixels.
Definition at line 232 of file DocumentModelGuideline.cpp.
void DocumentModelGuideline::setLineColor | ( | ColorPalette | lineColor | ) |
Set method for line color.
Definition at line 237 of file DocumentModelGuideline.cpp.
void DocumentModelGuideline::setLineWidthActive | ( | double | lineWidth | ) |
Set method for line width when active.
Definition at line 242 of file DocumentModelGuideline.cpp.
void DocumentModelGuideline::setLineWidthInactive | ( | double | lineWidth | ) |
Set method for line width when inactive.
Definition at line 247 of file DocumentModelGuideline.cpp.
void DocumentModelGuideline::setValuesX | ( | const GuidelineValues & | valuesX | ) |
Set method for x/t values.
Definition at line 252 of file DocumentModelGuideline.cpp.
void DocumentModelGuideline::setValuesY | ( | const GuidelineValues & | valuesY | ) |
Set method for y/r values.
Definition at line 257 of file DocumentModelGuideline.cpp.
GuidelineValues DocumentModelGuideline::valuesX | ( | ) | const |
Get method for x/t values.
Definition at line 262 of file DocumentModelGuideline.cpp.
GuidelineValues DocumentModelGuideline::valuesY | ( | ) | const |
Get method for y/r values.
Definition at line 267 of file DocumentModelGuideline.cpp.