moved kdeaccessibility kdeaddons kdeadmin kdeartwork kdebindings kdeedu kdegames...
[kdeedu.git] / kig / objects / intersection_types.h
blobd35664c96dbe3e373532940c1580225986a6bf8e
1 // Copyright (C) 2003 Dominique Devriese <devriese@kde.org>
3 // This program is free software; you can redistribute it and/or
4 // modify it under the terms of the GNU General Public License
5 // as published by the Free Software Foundation; either version 2
6 // of the License, or (at your option) any later version.
8 // This program is distributed in the hope that it will be useful,
9 // but WITHOUT ANY WARRANTY; without even the implied warranty of
10 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 // GNU General Public License for more details.
13 // You should have received a copy of the GNU General Public License
14 // along with this program; if not, write to the Free Software
15 // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
16 // 02111-1307, USA.
18 #ifndef KIG_OBJECTS_INTERSECTION_TYPES_H
19 #define KIG_OBJECTS_INTERSECTION_TYPES_H
21 #include "object_type.h"
23 /**
24 * conic line intersection. This also serves as circle-line
25 * intersection, in which case it uses the easier way to calc
26 * ... There is no separate CircleLineIntersectionPoint, since the
27 * difference between both types is quite small ( same number of
28 * intersections with a line, for example.. ), and since with
29 * transformations, Circles might dynamically change types to
30 * Conics..
32 class ConicLineIntersectionType
33 : public ArgsParserObjectType
35 ConicLineIntersectionType();
36 ~ConicLineIntersectionType();
37 public:
38 static const ConicLineIntersectionType* instance();
39 ObjectImp* calc( const Args& parents, const KigDocument& ) const;
40 const ObjectImpType* resultId() const;
43 /**
44 * conic line 'other' intersection. In case we already know one of the
45 * two intersections
47 class ConicLineOtherIntersectionType
48 : public ArgsParserObjectType
50 ConicLineOtherIntersectionType();
51 ~ConicLineOtherIntersectionType();
52 public:
53 static const ConicLineOtherIntersectionType* instance();
54 ObjectImp* calc( const Args& parents, const KigDocument& ) const;
55 const ObjectImpType* resultId() const;
58 class LineLineIntersectionType
59 : public ArgsParserObjectType
61 LineLineIntersectionType();
62 ~LineLineIntersectionType();
63 public:
64 static const LineLineIntersectionType* instance();
65 ObjectImp* calc( const Args& parents, const KigDocument& ) const;
66 const ObjectImpType* resultId() const;
69 class LineCubicIntersectionType
70 : public ArgsParserObjectType
72 LineCubicIntersectionType();
73 ~LineCubicIntersectionType();
74 public:
75 static const LineCubicIntersectionType* instance();
76 ObjectImp* calc( const Args& parents, const KigDocument& ) const;
77 const ObjectImpType* resultId() const;
80 class CircleCircleIntersectionType
81 : public ArgsParserObjectType
83 CircleCircleIntersectionType();
84 ~CircleCircleIntersectionType();
85 public:
86 static const CircleCircleIntersectionType* instance();
87 ObjectImp* calc( const Args& parents, const KigDocument& ) const;
88 const ObjectImpType* resultId() const;
91 /**
92 * arc line intersection.
94 class ArcLineIntersectionType
95 : public ArgsParserObjectType
97 ArcLineIntersectionType();
98 ~ArcLineIntersectionType();
99 public:
100 static const ArcLineIntersectionType* instance();
101 ObjectImp* calc( const Args& parents, const KigDocument& ) const;
102 const ObjectImpType* resultId() const;
105 #endif