• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdeedu API Reference
  • KDE Home
  • Contact Us
 

kig

  • sources
  • kde-4.14
  • kdeedu
  • kig
  • objects
transform_types.h
Go to the documentation of this file.
1 // Copyright (C) 2003 Dominique Devriese <devriese@kde.org>
2 
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.
7 
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.
12 
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., 51 Franklin Street, Fifth Floor, Boston, MA
16 // 02110-1301, USA.
17 
18 #ifndef KIG_OBJECTS_TRANSFORM_TYPES_H
19 #define KIG_OBJECTS_TRANSFORM_TYPES_H
20 
21 #include "object_type.h"
22 
23 double getDoubleFromImp( const ObjectImp*, bool& );
24 
25 class TranslatedType
26  : public ArgsParserObjectType
27 {
28  TranslatedType();
29  ~TranslatedType();
30 public:
31  static const TranslatedType* instance();
32  ObjectImp* calc( const Args& args, const KigDocument& ) const;
33  const ObjectImpType* resultId() const;
34 
35  bool isTransform() const;
36 };
37 
38 class PointReflectionType
39  : public ArgsParserObjectType
40 {
41  PointReflectionType();
42  ~PointReflectionType();
43 public:
44  static const PointReflectionType* instance();
45  ObjectImp* calc( const Args& args, const KigDocument& ) const;
46  const ObjectImpType* resultId() const;
47 
48  bool isTransform() const;
49 };
50 
51 class LineReflectionType
52  : public ArgsParserObjectType
53 {
54  LineReflectionType();
55  ~LineReflectionType();
56 public:
57  static const LineReflectionType* instance();
58  ObjectImp* calc( const Args& args, const KigDocument& ) const;
59  const ObjectImpType* resultId() const;
60 
61  bool isTransform() const;
62 };
63 
64 class RotationType
65  : public ArgsParserObjectType
66 {
67  RotationType();
68  ~RotationType();
69 public:
70  static const RotationType* instance();
71  ObjectImp* calc( const Args& args, const KigDocument& ) const;
72  const ObjectImpType* resultId() const;
73 
74  bool isTransform() const;
75 };
76 
77 class ScalingOverCenterType
78  : public ArgsParserObjectType
79 {
80  ScalingOverCenterType();
81  ~ScalingOverCenterType();
82 public:
83  static const ScalingOverCenterType* instance();
84  ObjectImp* calc( const Args& args, const KigDocument& ) const;
85  const ObjectImpType* resultId() const;
86 
87  bool isTransform() const;
88 };
89 
90 class ScalingOverCenter2Type
91  : public ArgsParserObjectType
92 {
93  ScalingOverCenter2Type();
94  ~ScalingOverCenter2Type();
95 public:
96  static const ScalingOverCenter2Type* instance();
97  ObjectImp* calc( const Args& args, const KigDocument& ) const;
98  const ObjectImpType* resultId() const;
99 
100  bool isTransform() const;
101 };
102 
103 class ScalingOverLineType
104  : public ArgsParserObjectType
105 {
106  ScalingOverLineType();
107  ~ScalingOverLineType();
108 public:
109  static const ScalingOverLineType* instance();
110  ObjectImp* calc( const Args& args, const KigDocument& ) const;
111  const ObjectImpType* resultId() const;
112 
113  bool isTransform() const;
114 };
115 
116 class ScalingOverLine2Type
117  : public ArgsParserObjectType
118 {
119  ScalingOverLine2Type();
120  ~ScalingOverLine2Type();
121 public:
122  static const ScalingOverLine2Type* instance();
123  ObjectImp* calc( const Args& args, const KigDocument& ) const;
124  const ObjectImpType* resultId() const;
125 
126  bool isTransform() const;
127 };
128 
129 class ProjectiveRotationType
130  : public ArgsParserObjectType
131 {
132  ProjectiveRotationType();
133  ~ProjectiveRotationType();
134 public:
135  static const ProjectiveRotationType* instance();
136  ObjectImp* calc( const Args& args, const KigDocument& ) const;
137  const ObjectImpType* resultId() const;
138 
139  bool isTransform() const;
140 };
141 
142 class HarmonicHomologyType
143  : public ArgsParserObjectType
144 {
145  HarmonicHomologyType();
146  ~HarmonicHomologyType();
147 public:
148  static const HarmonicHomologyType* instance();
149  ObjectImp* calc( const Args& args, const KigDocument& ) const;
150  const ObjectImpType* resultId() const;
151 
152  bool isTransform() const;
153 };
154 
155 class AffinityB2TrType
156  : public ArgsParserObjectType
157 {
158  AffinityB2TrType();
159  ~AffinityB2TrType();
160 public:
161  static const AffinityB2TrType* instance();
162  ObjectImp* calc( const Args& args, const KigDocument& ) const;
163  const ObjectImpType* resultId() const;
164 
165  bool isTransform() const;
166 };
167 
168 class AffinityGI3PType
169  : public ArgsParserObjectType
170 {
171  AffinityGI3PType();
172  ~AffinityGI3PType();
173 public:
174  static const AffinityGI3PType* instance();
175  ObjectImp* calc( const Args& args, const KigDocument& ) const;
176  const ObjectImpType* resultId() const;
177 
178  bool isTransform() const;
179 };
180 
181 class ProjectivityB2QuType
182  : public ArgsParserObjectType
183 {
184  ProjectivityB2QuType();
185  ~ProjectivityB2QuType();
186 public:
187  static const ProjectivityB2QuType* instance();
188  ObjectImp* calc( const Args& args, const KigDocument& ) const;
189  const ObjectImpType* resultId() const;
190 
191  bool isTransform() const;
192 };
193 
194 class ProjectivityGI4PType
195  : public ArgsParserObjectType
196 {
197  ProjectivityGI4PType();
198  ~ProjectivityGI4PType();
199 public:
200  static const ProjectivityGI4PType* instance();
201  ObjectImp* calc( const Args& args, const KigDocument& ) const;
202  const ObjectImpType* resultId() const;
203 
204  bool isTransform() const;
205 };
206 
207 class CastShadowType
208  : public ArgsParserObjectType
209 {
210  CastShadowType();
211  ~CastShadowType();
212 public:
213  static const CastShadowType* instance();
214  ObjectImp* calc( const Args& args, const KigDocument& ) const;
215  const ObjectImpType* resultId() const;
216 
217  bool isTransform() const;
218 };
219 
220 class ApplyTransformationObjectType
221  : public ArgsParserObjectType
222 {
223  ApplyTransformationObjectType();
224  ~ApplyTransformationObjectType();
225 public:
226  static const ApplyTransformationObjectType* instance();
227  ObjectImp* calc( const Args& args, const KigDocument& ) const;
228  const ObjectImpType* resultId() const;
229  bool isTransform() const;
230 };
231 
232 class SimilitudeType
233  : public ArgsParserObjectType
234 {
235  SimilitudeType();
236  ~SimilitudeType();
237 public:
238  static const SimilitudeType* instance();
239  ObjectImp* calc( const Args& args, const KigDocument& ) const;
240  const ObjectImpType* resultId() const;
241 
242  bool isTransform() const;
243 };
244 
245 #endif
ApplyTransformationObjectType::calc
ObjectImp * calc(const Args &args, const KigDocument &) const
Definition: transform_types.cc:840
ObjectImpType
Instances of this class represent a certain ObjectImp type.
Definition: object_imp.h:95
CastShadowType::instance
static const CastShadowType * instance()
Definition: transform_types.cc:651
LineReflectionType::calc
ObjectImp * calc(const Args &args, const KigDocument &) const
Definition: transform_types.cc:128
ScalingOverLineType::instance
static const ScalingOverLineType * instance()
Definition: transform_types.cc:290
ScalingOverLine2Type::isTransform
bool isTransform() const
is this object type a transformation type.
Definition: transform_types.cc:777
AffinityGI3PType
Definition: transform_types.h:168
TranslatedType::calc
ObjectImp * calc(const Args &args, const KigDocument &) const
Definition: transform_types.cc:58
PointReflectionType::instance
static const PointReflectionType * instance()
Definition: transform_types.cc:87
ApplyTransformationObjectType::resultId
const ObjectImpType * resultId() const
returns the ObjectImp id of the ObjectImp's produced by this ObjectType.
Definition: transform_types.cc:846
ArgsParserObjectType
This is a convenience subclass of ObjectType that a type should inherit from if its parents can be sp...
Definition: object_type.h:113
ProjectivityB2QuType::isTransform
bool isTransform() const
is this object type a transformation type.
Definition: transform_types.cc:802
RotationType::instance
static const RotationType * instance()
Definition: transform_types.cc:161
TranslatedType::instance
static const TranslatedType * instance()
Definition: transform_types.cc:52
ProjectiveRotationType::calc
ObjectImp * calc(const Args &args, const KigDocument &) const
Definition: transform_types.cc:377
ScalingOverCenter2Type::instance
static const ScalingOverCenter2Type * instance()
Definition: transform_types.cc:248
ProjectivityGI4PType::calc
ObjectImp * calc(const Args &args, const KigDocument &) const
Definition: transform_types.cc:607
ScalingOverLineType::resultId
const ObjectImpType * resultId() const
returns the ObjectImp id of the ObjectImp's produced by this ObjectType.
Definition: transform_types.cc:697
RotationType::calc
ObjectImp * calc(const Args &args, const KigDocument &) const
Definition: transform_types.cc:167
ProjectivityGI4PType::resultId
const ObjectImpType * resultId() const
returns the ObjectImp id of the ObjectImp's produced by this ObjectType.
Definition: transform_types.cc:732
HarmonicHomologyType::isTransform
bool isTransform() const
is this object type a transformation type.
Definition: transform_types.cc:787
ScalingOverLine2Type
Definition: transform_types.h:116
ScalingOverCenter2Type::calc
ObjectImp * calc(const Args &args, const KigDocument &) const
Definition: transform_types.cc:254
ScalingOverCenter2Type::isTransform
bool isTransform() const
is this object type a transformation type.
Definition: transform_types.cc:767
ProjectiveRotationType
Definition: transform_types.h:129
ProjectivityGI4PType
Definition: transform_types.h:194
SimilitudeType::instance
static const SimilitudeType * instance()
Definition: transform_types.cc:866
PointReflectionType::isTransform
bool isTransform() const
is this object type a transformation type.
Definition: transform_types.cc:747
AffinityGI3PType::calc
ObjectImp * calc(const Args &args, const KigDocument &) const
Definition: transform_types.cc:504
ProjectivityB2QuType::instance
static const ProjectivityB2QuType * instance()
Definition: transform_types.cc:547
ScalingOverCenter2Type::resultId
const ObjectImpType * resultId() const
returns the ObjectImp id of the ObjectImp's produced by this ObjectType.
Definition: transform_types.cc:692
object_type.h
SimilitudeType::calc
ObjectImp * calc(const Args &args, const KigDocument &) const
Definition: transform_types.cc:872
ProjectivityB2QuType::resultId
const ObjectImpType * resultId() const
returns the ObjectImp id of the ObjectImp's produced by this ObjectType.
Definition: transform_types.cc:727
ProjectiveRotationType::resultId
const ObjectImpType * resultId() const
returns the ObjectImp id of the ObjectImp's produced by this ObjectType.
Definition: transform_types.cc:707
ApplyTransformationObjectType
Definition: transform_types.h:220
ScalingOverLine2Type::calc
ObjectImp * calc(const Args &args, const KigDocument &) const
Definition: transform_types.cc:337
ScalingOverLineType::isTransform
bool isTransform() const
is this object type a transformation type.
Definition: transform_types.cc:772
ScalingOverLineType
Definition: transform_types.h:103
LineReflectionType::isTransform
bool isTransform() const
is this object type a transformation type.
Definition: transform_types.cc:752
CastShadowType::calc
ObjectImp * calc(const Args &args, const KigDocument &) const
Definition: transform_types.cc:657
PointReflectionType::resultId
const ObjectImpType * resultId() const
returns the ObjectImp id of the ObjectImp's produced by this ObjectType.
Definition: transform_types.cc:672
ScalingOverCenterType::isTransform
bool isTransform() const
is this object type a transformation type.
Definition: transform_types.cc:762
HarmonicHomologyType::resultId
const ObjectImpType * resultId() const
returns the ObjectImp id of the ObjectImp's produced by this ObjectType.
Definition: transform_types.cc:712
Args
std::vector< const ObjectImp * > Args
Definition: objects/common.h:47
CastShadowType::resultId
const ObjectImpType * resultId() const
returns the ObjectImp id of the ObjectImp's produced by this ObjectType.
Definition: transform_types.cc:737
PointReflectionType::calc
ObjectImp * calc(const Args &args, const KigDocument &) const
Definition: transform_types.cc:93
AffinityGI3PType::isTransform
bool isTransform() const
is this object type a transformation type.
Definition: transform_types.cc:797
CastShadowType::isTransform
bool isTransform() const
is this object type a transformation type.
Definition: transform_types.cc:812
ScalingOverCenterType
Definition: transform_types.h:77
HarmonicHomologyType::calc
ObjectImp * calc(const Args &args, const KigDocument &) const
Definition: transform_types.cc:417
RotationType::isTransform
bool isTransform() const
is this object type a transformation type.
Definition: transform_types.cc:757
AffinityB2TrType::resultId
const ObjectImpType * resultId() const
returns the ObjectImp id of the ObjectImp's produced by this ObjectType.
Definition: transform_types.cc:717
SimilitudeType
Definition: transform_types.h:232
ScalingOverCenterType::instance
static const ScalingOverCenterType * instance()
Definition: transform_types.cc:203
ProjectiveRotationType::instance
static const ProjectiveRotationType * instance()
Definition: transform_types.cc:371
SimilitudeType::isTransform
bool isTransform() const
is this object type a transformation type.
Definition: transform_types.cc:856
ScalingOverLine2Type::resultId
const ObjectImpType * resultId() const
returns the ObjectImp id of the ObjectImp's produced by this ObjectType.
Definition: transform_types.cc:702
AffinityB2TrType::instance
static const AffinityB2TrType * instance()
Definition: transform_types.cc:448
getDoubleFromImp
double getDoubleFromImp(const ObjectImp *, bool &)
Definition: special_imptypes.cc:27
RotationType
Definition: transform_types.h:64
AffinityGI3PType::instance
static const AffinityGI3PType * instance()
Definition: transform_types.cc:498
TranslatedType::resultId
const ObjectImpType * resultId() const
returns the ObjectImp id of the ObjectImp's produced by this ObjectType.
Definition: transform_types.cc:667
ProjectiveRotationType::isTransform
bool isTransform() const
is this object type a transformation type.
Definition: transform_types.cc:782
ApplyTransformationObjectType::isTransform
bool isTransform() const
is this object type a transformation type.
Definition: transform_types.cc:851
ScalingOverLine2Type::instance
static const ScalingOverLine2Type * instance()
Definition: transform_types.cc:331
PointReflectionType
Definition: transform_types.h:38
AffinityB2TrType
Definition: transform_types.h:155
KigDocument
KigDocument is the class holding the real data in a Kig document.
Definition: kig_document.h:36
ScalingOverLineType::calc
ObjectImp * calc(const Args &args, const KigDocument &) const
Definition: transform_types.cc:296
TranslatedType
Definition: transform_types.h:25
CastShadowType
Definition: transform_types.h:207
ProjectivityB2QuType::calc
ObjectImp * calc(const Args &args, const KigDocument &) const
Definition: transform_types.cc:553
ScalingOverCenterType::resultId
const ObjectImpType * resultId() const
returns the ObjectImp id of the ObjectImp's produced by this ObjectType.
Definition: transform_types.cc:687
ApplyTransformationObjectType::instance
static const ApplyTransformationObjectType * instance()
Definition: transform_types.cc:834
ScalingOverCenter2Type
Definition: transform_types.h:90
RotationType::resultId
const ObjectImpType * resultId() const
returns the ObjectImp id of the ObjectImp's produced by this ObjectType.
Definition: transform_types.cc:682
AffinityGI3PType::resultId
const ObjectImpType * resultId() const
returns the ObjectImp id of the ObjectImp's produced by this ObjectType.
Definition: transform_types.cc:722
SimilitudeType::resultId
const ObjectImpType * resultId() const
returns the ObjectImp id of the ObjectImp's produced by this ObjectType.
Definition: transform_types.cc:861
TranslatedType::isTransform
bool isTransform() const
is this object type a transformation type.
Definition: transform_types.cc:742
ObjectImp
The ObjectImp class represents the behaviour of an object after it is calculated. ...
Definition: object_imp.h:226
AffinityB2TrType::calc
ObjectImp * calc(const Args &args, const KigDocument &) const
Definition: transform_types.cc:454
LineReflectionType::resultId
const ObjectImpType * resultId() const
returns the ObjectImp id of the ObjectImp's produced by this ObjectType.
Definition: transform_types.cc:677
LineReflectionType::instance
static const LineReflectionType * instance()
Definition: transform_types.cc:122
HarmonicHomologyType
Definition: transform_types.h:142
HarmonicHomologyType::instance
static const HarmonicHomologyType * instance()
Definition: transform_types.cc:411
ProjectivityB2QuType
Definition: transform_types.h:181
ProjectivityGI4PType::instance
static const ProjectivityGI4PType * instance()
Definition: transform_types.cc:601
ProjectivityGI4PType::isTransform
bool isTransform() const
is this object type a transformation type.
Definition: transform_types.cc:807
ScalingOverCenterType::calc
ObjectImp * calc(const Args &args, const KigDocument &) const
Definition: transform_types.cc:209
AffinityB2TrType::isTransform
bool isTransform() const
is this object type a transformation type.
Definition: transform_types.cc:792
LineReflectionType
Definition: transform_types.h:51
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:12:05 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

kig

Skip menu "kig"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members

kdeedu API Reference

Skip menu "kdeedu API Reference"
  • Analitza
  •     lib
  • kalgebra
  • kalzium
  •   libscience
  • kanagram
  • kig
  •   lib
  • klettres
  • marble
  • parley
  • rocs
  •   App
  •   RocsCore
  •   VisualEditor
  •   stepcore

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal