lib Library API Documentation

SVGPathParser Class Reference

Parser for svg path data, contained in the d attribute. More...

#include <svgpathparser.h>

List of all members.

Public Member Functions

void parseSVG (const QString &d, bool process=false)

Protected Member Functions

virtual void svgMoveTo (double x1, double y1, bool abs=true)=0
virtual void svgLineTo (double x1, double y1, bool abs=true)=0
virtual void svgLineToHorizontal (double x, bool abs=true)
virtual void svgLineToVertical (double y, bool abs=true)
virtual void svgCurveToCubic (double x1, double y1, double x2, double y2, double x, double y, bool abs=true)=0
virtual void svgCurveToCubicSmooth (double x, double y, double x2, double y2, bool abs=true)
virtual void svgCurveToQuadratic (double x, double y, double x1, double y1, bool abs=true)
virtual void svgCurveToQuadraticSmooth (double x, double y, bool abs=true)
virtual void svgArcTo (double x, double y, double r1, double r2, double angle, bool largeArcFlag, bool sweepFlag, bool abs=true)
virtual void svgClosePath ()=0


Detailed Description

Parser for svg path data, contained in the d attribute.

The parser delivers encountered commands and parameters by calling methods that correspond to those commands. Clients have to derive from this class and implement the abstract command methods.

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 36 of file svgpathparser.h.


The documentation for this class was generated from the following files:
KDE Logo
This file is part of the documentation for lib Library Version 1.3.3.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Fri Sep 24 18:22:33 2004 by doxygen 1.3.7 written by Dimitri van Heesch, © 1997-2003