4 #include "ColorPalette.h"
5 #include "PointShape.h"
10 class QXmlStreamReader;
11 class QXmlStreamWriter;
45 void loadXml(QXmlStreamReader &reader);
55 QTextStream &str)
const;
61 void saveXml(QXmlStreamWriter &writer)
const;
76 PointShape
shape ()
const;
81 unsigned int m_radius;
83 ColorPalette m_paletteColor;
86 #endif // POINT_STYLE_H
static PointStyle defaultAxesCurve()
Initial default for axes curve.
PointStyle()
Default constructor only for use when this class is being stored by a container that requires the def...
int lineWidth() const
Get method for line width.
void printStream(QString indentation, QTextStream &str) const
Debugging method that supports print method of this class and printStream method of some other class(...
void loadXml(QXmlStreamReader &reader)
Load model from serialized xml. Returns the curve name.
QPolygonF polygon() const
Return the polygon for creating a QGraphicsPolygonItem. The size is determined by the radius...
void setShape(PointShape shape)
Set method for point shape.
void saveXml(QXmlStreamWriter &writer) const
Serialize to stream.
Details for a specific Point.
ColorPalette paletteColor() const
Get method for point color.
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 setPaletteColor(ColorPalette paletteColor)
Set method for point color.
bool isCircle() const
Return true if point is a circle, otherwise it is a polygon. For a circle, the radius is important an...
PointStyle & operator=(const PointStyle &other)
Assignment constructor.
static PointStyle defaultGraphCurve(int index)
Initial default for index'th graph curve.
void setLineWidth(int width)
Set method for line width.
PointShape shape() const
Get method for point shape.
void setRadius(int radius)
Set method for point radius.