Engauge Digitizer  2
Public Member Functions | Static Public Member Functions | List of all members
PointStyle Class Reference

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.
 
PointStyleoperator= (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)
 
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 (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.
 

Detailed Description

Details for a specific Point.

Definition at line 20 of file PointStyle.h.


The documentation for this class was generated from the following files: