16#include <QXmlStreamWriter>
26const double PI = 3.1415926535;
44 m_lineWidth (lineWidth),
45 m_paletteColor (paletteColor)
50 m_shape (
other.shape()),
51 m_radius (
other.radius ()),
52 m_lineWidth (
other.lineWidth ()),
53 m_paletteColor (
other.paletteColor ())
59 m_shape =
other.shape ();
60 m_radius =
other.radius ();
61 m_lineWidth =
other.lineWidth ();
62 m_paletteColor =
other.paletteColor ();
146 while ((
reader.tokenType() != QXmlStreamReader::EndElement) ||
151 reader.raiseError (QObject::tr (
"Cannot read point style data"));
157 return m_paletteColor;
174 points.append (
QPointF (x, y));
185 points.append (
QPointF (0, 0));
188 points.append (
QPointF (0, 0));
251 points.append (
QPointF (0, 0));
254 points.append (
QPointF (0, 0));
QString colorPaletteToString(ColorPalette colorPalette)
const int INNER_RADIUS_MIN
const QString DOCUMENT_SERIALIZE_POINT_STYLE_RADIUS
const QString DOCUMENT_SERIALIZE_POINT_STYLE_SHAPE_STRING
const QString DOCUMENT_SERIALIZE_POINT_STYLE_LINE_WIDTH
const QString DOCUMENT_SERIALIZE_POINT_STYLE_COLOR
const QString DOCUMENT_SERIALIZE_POINT_STYLE
const QString DOCUMENT_SERIALIZE_POINT_STYLE_COLOR_STRING
const QString DOCUMENT_SERIALIZE_POINT_STYLE_SHAPE
log4cpp::Category * mainCat
const QString INDENTATION_DELTA
QString pointShapeToString(PointShape pointShape)
const int DEFAULT_POINT_LINE_WIDTH
const PointShape DEFAULT_POINT_SHAPE_AXIS
const int DEFAULT_POINT_RADIUS
const ColorPalette DEFAULT_POINT_COLOR_AXES
const ColorPalette DEFAULT_POINT_COLOR_GRAPH
const QString SETTINGS_ENGAUGE
const QString SETTINGS_GROUP_CURVE_AXES
const QString SETTINGS_CURVE_POINT_COLOR
const QString SETTINGS_CURVE_POINT_LINE_WIDTH
const QString SETTINGS_CURVE_POINT_SHAPE
const QString SETTINGS_CURVE_POINT_RADIUS
const QString SETTINGS_DIGITIZER
QXmlStreamReader::TokenType loadNextFromReader(QXmlStreamReader &reader)
Load next token from xml reader.
Details for a specific Point.
unsigned int radius() const
Radius of point. For a circle this is all that is needed to draw a circle. For a polygon,...
PointStyle & operator=(const PointStyle &other)
Assignment constructor.
QPolygonF polygon() const
Return the polygon for creating a QGraphicsPolygonItem. The size is determined by the radius.
void loadXml(QXmlStreamReader &reader)
Load model from serialized xml. Returns the curve name.
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...
void setShape(PointShape shape)
Set method for point shape.
PointShape shape() const
Get method for point shape.
static PointStyle defaultGraphCurve(int index)
Initial default for index'th graph curve.
void setLineWidth(int width)
Set 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(...
static PointStyle defaultAxesCurve()
Initial default for axes curve.
ColorPalette paletteColor() const
Get method for point color.
void setRadius(unsigned int radius)
Set method for point radius.
void saveXml(QXmlStreamWriter &writer) const
Serialize to stream.
int lineWidth() const
Get method for line width.
PointStyle()
Default constructor only for use when this class is being stored by a container that requires the def...
Manage storage and retrieval of the settings for the curves.
QString groupNameForNthCurve(int indexOneBased) const
Return the group name, that appears in the settings file/registry, for the specified curve index.
#define LOG4CPP_INFO_S(logger)