|
Engauge Digitizer 2
|
Details for a specific Point. More...
#include <PointStyle.h>

Public Member Functions | |
| PointStyle () | |
| Default constructor only for use when this class is being stored by a container that requires the default constructor. | |
| PointStyle (PointShape pointShape, unsigned int radius, int lineWidth, ColorPalette paletteColor) | |
| Normal constructor. The style type and radius are determined by the currently selected Curve. | |
| PointStyle (const PointStyle &other) | |
| Copy constructor. | |
| PointStyle & | operator= (const PointStyle &other) |
| Assignment constructor. | |
| bool | isCircle () const |
| Return true if point is a circle, otherwise it is a polygon. For a circle, the radius is important and no polygon is needed from this class. | |
| int | lineWidth () const |
| Get method for line width. | |
| void | loadXml (QXmlStreamReader &reader) |
| Load model from serialized xml. Returns the curve name. | |
| ColorPalette | paletteColor () const |
| Get method for point color. | |
| QPolygonF | polygon () const |
| Return the polygon for creating a QGraphicsPolygonItem. The size is determined by the radius. | |
| void | printStream (QString indentation, QTextStream &str) const |
| Debugging method that supports print method of this class and printStream method of some other class(es). | |
| unsigned int | radius () const |
| Radius of point. For a circle this is all that is needed to draw a circle. For a polygon, the radius determines the size of the polygon. | |
| void | saveXml (QXmlStreamWriter &writer) const |
| Serialize to stream. | |
| void | setLineWidth (int width) |
| Set method for line width. | |
| void | setPaletteColor (ColorPalette paletteColor) |
| Set method for point color. | |
| void | setRadius (unsigned int radius) |
| Set method for point radius. | |
| void | setShape (PointShape shape) |
| Set method for point shape. | |
| PointShape | shape () const |
| Get method for point shape. | |
Static Public Member Functions | |
| static PointStyle | defaultAxesCurve () |
| Initial default for axes curve. | |
| static PointStyle | defaultGraphCurve (int index) |
| Initial default for index'th graph curve. | |
Details for a specific Point.
Definition at line 20 of file PointStyle.h.
| PointStyle::PointStyle | ( | ) |
Default constructor only for use when this class is being stored by a container that requires the default constructor.
Definition at line 27 of file PointStyle.cpp.
| PointStyle::PointStyle | ( | PointShape | pointShape, |
| unsigned int | radius, | ||
| int | lineWidth, | ||
| ColorPalette | paletteColor ) |
Normal constructor. The style type and radius are determined by the currently selected Curve.
Definition at line 36 of file PointStyle.cpp.
| PointStyle::PointStyle | ( | const PointStyle & | other | ) |
Copy constructor.
Definition at line 47 of file PointStyle.cpp.
|
static |
Initial default for axes curve.
Definition at line 65 of file PointStyle.cpp.
|
static |
Initial default for index'th graph curve.
Definition at line 86 of file PointStyle.cpp.
| bool PointStyle::isCircle | ( | ) | const |
Return true if point is a circle, otherwise it is a polygon. For a circle, the radius is important and no polygon is needed from this class.
Definition at line 117 of file PointStyle.cpp.
| int PointStyle::lineWidth | ( | ) | const |
Get method for line width.
Definition at line 122 of file PointStyle.cpp.
| void PointStyle::loadXml | ( | QXmlStreamReader & | reader | ) |
Load model from serialized xml. Returns the curve name.
Definition at line 127 of file PointStyle.cpp.
| PointStyle & PointStyle::operator= | ( | const PointStyle & | other | ) |
Assignment constructor.
Definition at line 55 of file PointStyle.cpp.
| ColorPalette PointStyle::paletteColor | ( | ) | const |
Get method for point color.
Definition at line 153 of file PointStyle.cpp.
| QPolygonF PointStyle::polygon | ( | ) | const |
Return the polygon for creating a QGraphicsPolygonItem. The size is determined by the radius.
Definition at line 158 of file PointStyle.cpp.
| void PointStyle::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 261 of file PointStyle.cpp.
| unsigned int PointStyle::radius | ( | ) | const |
Radius of point. For a circle this is all that is needed to draw a circle. For a polygon, the radius determines the size of the polygon.
Definition at line 274 of file PointStyle.cpp.
| void PointStyle::saveXml | ( | QXmlStreamWriter & | writer | ) | const |
Serialize to stream.
Definition at line 279 of file PointStyle.cpp.
| void PointStyle::setLineWidth | ( | int | width | ) |
Set method for line width.
Definition at line 293 of file PointStyle.cpp.
| void PointStyle::setPaletteColor | ( | ColorPalette | paletteColor | ) |
Set method for point color.
Definition at line 298 of file PointStyle.cpp.
| void PointStyle::setRadius | ( | unsigned int | radius | ) |
Set method for point radius.
Definition at line 303 of file PointStyle.cpp.
| void PointStyle::setShape | ( | PointShape | shape | ) |
Set method for point shape.
Definition at line 308 of file PointStyle.cpp.
| PointShape PointStyle::shape | ( | ) | const |
Get method for point shape.
Definition at line 313 of file PointStyle.cpp.