Krita Source Code Documentation
Loading...
Searching...
No Matches
KoPathShapeLoader Class Reference

#include <KoPathShapeLoader.h>

Public Member Functions

 KoPathShapeLoader (KoPathShape *path)
 
void parseSvg (const QString &svgInputData, bool process=false)
 
 ~KoPathShapeLoader ()
 

Private Attributes

KoPathShapeLoaderPrivate *const d
 

Detailed Description

Parser for svg path data, passed by argument in the parseSvg() method A helper class for parsing path data when loading from svg/odf

Definition at line 20 of file KoPathShapeLoader.h.

Constructor & Destructor Documentation

◆ KoPathShapeLoader()

KoPathShapeLoader::KoPathShapeLoader ( KoPathShape * path)
explicit

Definition at line 645 of file KoPathShapeLoader.cpp.

646 : d(new KoPathShapeLoaderPrivate(path))
647{
648}
KoPathShapeLoaderPrivate *const d

◆ ~KoPathShapeLoader()

KoPathShapeLoader::~KoPathShapeLoader ( )

Definition at line 650 of file KoPathShapeLoader.cpp.

651{
652 delete d;
653}

References d.

Member Function Documentation

◆ parseSvg()

void KoPathShapeLoader::parseSvg ( const QString & svgInputData,
bool process = false )

There are two operating modes. By default the parser just delivers unaltered svg path data commands and parameters. In the second mode, it will convert all relative coordinates to absolute ones, and convert all curves to cubic beziers.

Definition at line 655 of file KoPathShapeLoader.cpp.

656{
657 d->parseSvg(s, process);
658}
void parseSvg(const QString &svgInputData, bool process=false)

References d, and KoPathShapeLoaderPrivate::parseSvg().

Member Data Documentation

◆ d

KoPathShapeLoaderPrivate* const KoPathShapeLoader::d
private

Definition at line 34 of file KoPathShapeLoader.h.


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