Engauge Digitizer 2
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | List of all members
LineStyle Class Reference

Details for a specific Line. More...

#include <LineStyle.h>

Public Member Functions

 LineStyle ()
 Default constructor only for use when this class is being stored by a container that requires the default constructor.
 
 LineStyle (unsigned int width, ColorPalette paletteColor, CurveConnectAs curveConnectAs)
 Normal constructor.
 
 LineStyle (const LineStyle &other)
 Copy constructor.
 
LineStyleoperator= (const LineStyle &other)
 Assignment operator.
 
CurveConnectAs curveConnectAs () const
 Get method for connect type.
 
void loadXml (QXmlStreamReader &reader)
 Load model from serialized xml. Returns the curve name.
 
ColorPalette paletteColor () const
 Line color.
 
void printStream (QString indentation, QTextStream &str) const
 Debugging method that supports print method of this class and printStream method of some other class(es)
 
void saveXml (QXmlStreamWriter &writer) const
 Serialize to stream.
 
void setCurveConnectAs (CurveConnectAs curveConnectAs)
 Set connect as.
 
void setPaletteColor (ColorPalette paletteColor)
 Set method for line color.
 
void setWidth (int width)
 Set width of line.
 
unsigned int width () const
 Width of line.
 

Static Public Member Functions

static LineStyle defaultAxesCurve ()
 Initial default for axes curve.
 
static LineStyle defaultGraphCurve (int index)
 Initial default for index'th graph curve.
 

Detailed Description

Details for a specific Line.

Definition at line 19 of file LineStyle.h.

Constructor & Destructor Documentation

◆ LineStyle() [1/3]

LineStyle::LineStyle ( )

Default constructor only for use when this class is being stored by a container that requires the default constructor.

Definition at line 26 of file LineStyle.cpp.

◆ LineStyle() [2/3]

LineStyle::LineStyle ( unsigned int  width,
ColorPalette  paletteColor,
CurveConnectAs  curveConnectAs 
)

Normal constructor.

Definition at line 38 of file LineStyle.cpp.

◆ LineStyle() [3/3]

LineStyle::LineStyle ( const LineStyle other)

Copy constructor.

Definition at line 47 of file LineStyle.cpp.

Member Function Documentation

◆ curveConnectAs()

CurveConnectAs LineStyle::curveConnectAs ( ) const

Get method for connect type.

Definition at line 63 of file LineStyle.cpp.

◆ defaultAxesCurve()

LineStyle LineStyle::defaultAxesCurve ( )
static

Initial default for axes curve.

Definition at line 68 of file LineStyle.cpp.

◆ defaultGraphCurve()

LineStyle LineStyle::defaultGraphCurve ( int  index)
static

Initial default for index'th graph curve.

Definition at line 84 of file LineStyle.cpp.

◆ loadXml()

void LineStyle::loadXml ( QXmlStreamReader &  reader)

Load model from serialized xml. Returns the curve name.

Definition at line 104 of file LineStyle.cpp.

◆ operator=()

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

Assignment operator.

Definition at line 54 of file LineStyle.cpp.

◆ paletteColor()

ColorPalette LineStyle::paletteColor ( ) const

Line color.

Definition at line 128 of file LineStyle.cpp.

◆ printStream()

void LineStyle::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 133 of file LineStyle.cpp.

◆ saveXml()

void LineStyle::saveXml ( QXmlStreamWriter &  writer) const

Serialize to stream.

Definition at line 145 of file LineStyle.cpp.

◆ setCurveConnectAs()

void LineStyle::setCurveConnectAs ( CurveConnectAs  curveConnectAs)

Set connect as.

Definition at line 158 of file LineStyle.cpp.

◆ setPaletteColor()

void LineStyle::setPaletteColor ( ColorPalette  paletteColor)

Set method for line color.

Definition at line 163 of file LineStyle.cpp.

◆ setWidth()

void LineStyle::setWidth ( int  width)

Set width of line.

Definition at line 168 of file LineStyle.cpp.

◆ width()

unsigned int LineStyle::width ( ) const

Width of line.

Definition at line 173 of file LineStyle.cpp.


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