20#ifndef __DIAPATHPARSER_H__
21#define __DIAPATHPARSER_H__
23#include "svgpathparser.h"
24#include <tqvaluelist.h>
27class DiaPointFinder : public SVGPathParser
30 DiaPointFinder(TQValueList<float> *xlist, TQValueList<float> *ylist);
31 void svgMoveTo( double x1, double y1, bool abs = true );
32 void svgLineTo( double x1, double y1, bool abs = true );
33 void svgCurveToCubic( double x1, double y1, double x2, double y2, double x3, double y3, bool abs = true );
37 TQValueList<float> *m_xlist;
38 TQValueList<float> *m_ylist;
41class DiaPathParser : public SVGPathParser
44 DiaPathParser(TQDomDocument *doc, TQDomElement *shape, float xscale, float yscale, float lowestx, float lowesty);
46 void svgMoveTo( double x1, double y1, bool abs = true );
47 void svgLineTo( double x1, double y1, bool abs = true );
48 void svgCurveToCubic( double x1, double y1, double x2, double y2, double x3, double y3, bool abs = true );
52 float diaPointToKivio( float point, bool xpoint);
55 TQDomElement *m_shape;
|