1 // Copyright (C) 2004 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
18 #ifndef KIG_OBJECTS_TESTS_TYPE_H
19 #define KIG_OBJECTS_TESTS_TYPE_H
21 #include "base_type.h"
24 : public ArgsParserObjectType
29 static const AreParallelType
* instance();
30 ObjectImp
* calc( const Args
& parents
, const KigDocument
& ) const;
31 const ObjectImpType
* resultId() const;
34 class AreOrthogonalType
35 : public ArgsParserObjectType
40 static const AreOrthogonalType
* instance();
41 ObjectImp
* calc( const Args
& parents
, const KigDocument
& ) const;
42 const ObjectImpType
* resultId() const;
45 class AreCollinearType
46 : public ArgsParserObjectType
51 static const AreCollinearType
* instance();
52 ObjectImp
* calc( const Args
& parents
, const KigDocument
& ) const;
53 const ObjectImpType
* resultId() const;
56 class ContainsTestType
57 : public ArgsParserObjectType
62 static const ContainsTestType
* instance();
63 ObjectImp
* calc( const Args
& parents
, const KigDocument
& ) const;
64 const ObjectImpType
* resultId() const;
67 class InPolygonTestType
68 : public ArgsParserObjectType
73 static const InPolygonTestType
* instance();
74 ObjectImp
* calc( const Args
& parents
, const KigDocument
& ) const;
75 const ObjectImpType
* resultId() const;
78 class ConvexPolygonTestType
79 : public ArgsParserObjectType
81 ConvexPolygonTestType();
82 ~ConvexPolygonTestType();
84 static const ConvexPolygonTestType
* instance();
85 ObjectImp
* calc( const Args
& parents
, const KigDocument
& ) const;
86 const ObjectImpType
* resultId() const;
89 class SameDistanceType
90 : public ArgsParserObjectType
95 static const SameDistanceType
* instance();
96 ObjectImp
* calc( const Args
& parents
, const KigDocument
& ) const;
97 const ObjectImpType
* resultId() const;
100 class VectorEqualityTestType
101 : public ArgsParserObjectType
103 VectorEqualityTestType();
104 ~VectorEqualityTestType();
106 static const VectorEqualityTestType
* instance();
107 ObjectImp
* calc( const Args
& parents
, const KigDocument
& ) const;
108 const ObjectImpType
* resultId() const;