2
** Header file for inclusion with kword_xml2latex.c
4
** Copyright (C) 2000 Robert JACOLIN
6
** This library is free software; you can redistribute it and/or
7
** modify it under the terms of the GNU Library General Public
8
** License as published by the Free Software Foundation; either
9
** version 2 of the License, or (at your option) any later version.
11
** This library is distributed in the hope that it will be useful,
12
** but WITHOUT ANY WARRANTY; without even the implied warranty of
13
** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14
** Library General Public License for more details.
16
** To receive a copy of the GNU Library General Public License, write to the
17
** Free Software Foundation, Inc., 59 Temple Place - Suite 330,
18
** Boston, MA 02111-1307, USA.
22
#ifndef __KILLU_ELLIPSE_H__
23
#define __KILLU_ELLIPSE_H__
25
#include <qtextstream.h>
35
/***********************************************************************/
37
/***********************************************************************/
40
* This class hold a ellipse.
42
class Ellipse: public Element
46
double _angle1, _angle2;
53
* Creates a new instance of Ellipse.
66
EKind getKind () const { return _kind; }
67
double getX () const { return _x; }
68
double getY () const { return _y; }
69
double getRx () const { return _rx; }
70
double getRy () const { return _ry; }
71
double getAngle1() const { return _angle1; }
72
double getAngle2() const { return _angle2; }
77
void setKind (int k) { _kind = (EKind) k; }
78
void setX (double x) { _x = x; }
79
void setY (double y) { _y = y; }
80
void setRx (double rx) { _rx = rx; }
81
void setRy (double ry) { _ry = ry; }
82
void setAngle1(double a) { _angle1 = a; }
83
void setAngle2(double a) { _angle2 = a; }
85
void analyse(const QDomNode);
87
void generatePSTRICKS(QTextStream&);
92
#endif /* __KILLU_ELLIPSE_H__ */