Inkscape
Vector Graphics Editor
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Modules Pages Concepts
Spiro::ConverterPath Class Reference

Converts Spiro to 2Geom's Path. More...

#include <spiro-converters.h>

Inheritance diagram for Spiro::ConverterPath:
Spiro::ConverterBase

Public Member Functions

 ConverterPath (Geom::Path &path)
 
void moveto (double x, double y) override
 
void lineto (double x, double y, bool close_last) override
 
void quadto (double x1, double y1, double x2, double y2, bool close_last) override
 
void curveto (double x1, double y1, double x2, double y2, double x3, double y3, bool close_last) override
 
- Public Member Functions inherited from Spiro::ConverterBase
 ConverterBase ()=default
 
virtual ~ConverterBase ()=default
 

Private Member Functions

 ConverterPath (const ConverterPath &)=delete
 
ConverterPathoperator= (const ConverterPath &)=delete
 

Private Attributes

Geom::Path_path
 

Detailed Description

Converts Spiro to 2Geom's Path.

Definition at line 55 of file spiro-converters.h.

Constructor & Destructor Documentation

◆ ConverterPath() [1/2]

Spiro::ConverterPath::ConverterPath ( Geom::Path path)

Definition at line 74 of file spiro-converters.cpp.

References _path, and Geom::Path::setStitching().

◆ ConverterPath() [2/2]

Spiro::ConverterPath::ConverterPath ( const ConverterPath )
privatedelete

Member Function Documentation

◆ curveto()

void Spiro::ConverterPath::curveto ( double  x1,
double  y1,
double  x2,
double  y2,
double  x3,
double  y3,
bool  close_last 
)
overridevirtual

Implements Spiro::ConverterBase.

Definition at line 113 of file spiro-converters.cpp.

References _path, Geom::Path::appendNew(), and Geom::Path::close().

◆ lineto()

void Spiro::ConverterPath::lineto ( double  x,
double  y,
bool  close_last 
)
overridevirtual

Implements Spiro::ConverterBase.

Definition at line 91 of file spiro-converters.cpp.

References _path, Geom::Path::appendNew(), and Geom::Path::close().

◆ moveto()

void Spiro::ConverterPath::moveto ( double  x,
double  y 
)
overridevirtual

Implements Spiro::ConverterBase.

Definition at line 81 of file spiro-converters.cpp.

References _path, and Geom::Path::start().

◆ operator=()

ConverterPath & Spiro::ConverterPath::operator= ( const ConverterPath )
privatedelete

◆ quadto()

void Spiro::ConverterPath::quadto ( double  x1,
double  y1,
double  x2,
double  y2,
bool  close_last 
)
overridevirtual

Implements Spiro::ConverterBase.

Definition at line 102 of file spiro-converters.cpp.

References _path, Geom::Path::appendNew(), and Geom::Path::close().

Member Data Documentation

◆ _path

Geom::Path& Spiro::ConverterPath::_path
private

Definition at line 65 of file spiro-converters.h.

Referenced by ConverterPath(), curveto(), lineto(), moveto(), and quadto().


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