Engauge Digitizer 2
Loading...
Searching...
No Matches
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.

Constructor & Destructor Documentation

◆ PointStyle() [1/3]

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() [2/3]

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 33 of file PointStyle.cpp.

◆ PointStyle() [3/3]

PointStyle::PointStyle ( const PointStyle other)

Copy constructor.

Definition at line 44 of file PointStyle.cpp.

Member Function Documentation

◆ defaultAxesCurve()

PointStyle PointStyle::defaultAxesCurve ( )
static

Initial default for axes curve.

Definition at line 62 of file PointStyle.cpp.

◆ defaultGraphCurve()

PointStyle PointStyle::defaultGraphCurve ( int  index)
static

Initial default for index'th graph curve.

Definition at line 83 of file PointStyle.cpp.

◆ isCircle()

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 114 of file PointStyle.cpp.

◆ lineWidth()

int PointStyle::lineWidth ( ) const

Get method for line width.

Definition at line 119 of file PointStyle.cpp.

◆ loadXml()

void PointStyle::loadXml ( QXmlStreamReader &  reader)

Load model from serialized xml. Returns the curve name.

Definition at line 124 of file PointStyle.cpp.

◆ operator=()

PointStyle & PointStyle::operator= ( const PointStyle other)

Assignment constructor.

Definition at line 52 of file PointStyle.cpp.

◆ paletteColor()

ColorPalette PointStyle::paletteColor ( ) const

Get method for point color.

Definition at line 150 of file PointStyle.cpp.

◆ polygon()

QPolygonF PointStyle::polygon ( ) const

Return the polygon for creating a QGraphicsPolygonItem. The size is determined by the radius.

Definition at line 155 of file PointStyle.cpp.

◆ printStream()

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 240 of file PointStyle.cpp.

◆ radius()

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 253 of file PointStyle.cpp.

◆ saveXml()

void PointStyle::saveXml ( QXmlStreamWriter &  writer) const

Serialize to stream.

Definition at line 258 of file PointStyle.cpp.

◆ setLineWidth()

void PointStyle::setLineWidth ( int  width)

Set method for line width.

Definition at line 272 of file PointStyle.cpp.

◆ setPaletteColor()

void PointStyle::setPaletteColor ( ColorPalette  paletteColor)

Set method for point color.

Definition at line 277 of file PointStyle.cpp.

◆ setRadius()

void PointStyle::setRadius ( int  radius)

Set method for point radius.

Definition at line 282 of file PointStyle.cpp.

◆ setShape()

void PointStyle::setShape ( PointShape  shape)

Set method for point shape.

Definition at line 287 of file PointStyle.cpp.

◆ shape()

PointShape PointStyle::shape ( ) const

Get method for point shape.

Definition at line 292 of file PointStyle.cpp.


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