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 29 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 38 of file PointStyle.cpp.
PointStyle::PointStyle | ( | const PointStyle & | other | ) |
|
static |
Initial default for axes curve.
Definition at line 67 of file PointStyle.cpp.
|
static |
Initial default for index'th graph curve.
Definition at line 88 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 119 of file PointStyle.cpp.
int PointStyle::lineWidth | ( | ) | const |
Get method for line width.
Definition at line 124 of file PointStyle.cpp.
void PointStyle::loadXml | ( | QXmlStreamReader & | reader | ) |
Load model from serialized xml. Returns the curve name.
Definition at line 129 of file PointStyle.cpp.
PointStyle & PointStyle::operator= | ( | const PointStyle & | other | ) |
ColorPalette PointStyle::paletteColor | ( | ) | const |
Get method for point color.
Definition at line 155 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 160 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 263 of file PointStyle.cpp.
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 276 of file PointStyle.cpp.
void PointStyle::saveXml | ( | QXmlStreamWriter & | writer | ) | const |
Serialize to stream.
Definition at line 281 of file PointStyle.cpp.
Set method for line width.
Definition at line 295 of file PointStyle.cpp.
void PointStyle::setPaletteColor | ( | ColorPalette | paletteColor | ) |
Set method for point color.
Definition at line 300 of file PointStyle.cpp.
Set method for point radius.
Definition at line 305 of file PointStyle.cpp.
void PointStyle::setShape | ( | PointShape | shape | ) |
Set method for point shape.
Definition at line 310 of file PointStyle.cpp.
PointShape PointStyle::shape | ( | ) | const |
Get method for point shape.
Definition at line 315 of file PointStyle.cpp.