• 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
arc_type.h
Go to the documentation of this file.
1 // Copyright (C) 2003-2004 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_ARC_TYPE_H
19 #define KIG_OBJECTS_ARC_TYPE_H
20 
21 #include "base_type.h"
22 #include "../misc/object_hierarchy.h"
23 
27 class ArcBTPType
28  : public ArgsParserObjectType
29 {
30  typedef ArgsParserObjectType Parent;
31  ArcBTPType();
32  ~ArcBTPType();
33 public:
34  static const ArcBTPType* instance();
35 
36  ObjectImp* calc( const Args& args, const KigDocument& ) const;
37 
38  const ObjectImpType* impRequirement( const ObjectImp* o, const Args& parents ) const;
39 
40  bool inherits( int type ) const;
41  const ObjectImpType* resultId() const;
42 };
43 
47 class ArcBCPAType
48  : public ArgsParserObjectType
49 {
50  typedef ArgsParserObjectType Parent;
51  ArcBCPAType();
52  ~ArcBCPAType();
53 public:
54  static const ArcBCPAType* instance();
55 
56  ObjectImp* calc( const Args& args, const KigDocument& ) const;
57 
58  const ObjectImpType* impRequirement( const ObjectImp* o, const Args& parents ) const;
59 
60  bool inherits( int type ) const;
61  const ObjectImpType* resultId() const;
62 };
63 
68 class ConicArcBCTPType
69  : public ArgsParserObjectType
70 {
71  typedef ArgsParserObjectType Parent;
72  ConicArcBCTPType();
73  ~ConicArcBCTPType();
74 public:
75  static const ConicArcBCTPType* instance();
76 
77  ObjectImp* calc( const Args& args, const KigDocument& ) const;
78 
79  const ObjectImpType* resultId() const;
80 };
81 
87 class ConicArcB5PType
88  : public ArgsParserObjectType
89 {
90  typedef ArgsParserObjectType Parent;
91  ConicArcB5PType();
92  ~ConicArcB5PType();
93 public:
94  static const ConicArcB5PType* instance();
95 
96  ObjectImp* calc( const Args& args, const KigDocument& ) const;
97 
98  const ObjectImpType* resultId() const;
99 };
100 
101 #endif
ObjectImpType
Instances of this class represent a certain ObjectImp type.
Definition: object_imp.h:95
ArcBTPType::instance
static const ArcBTPType * instance()
Definition: arc_type.cc:70
ConicArcB5PType::instance
static const ConicArcB5PType * instance()
Definition: arc_type.cc:364
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
ArcBTPType::calc
ObjectImp * calc(const Args &args, const KigDocument &) const
Definition: arc_type.cc:76
ArcBTPType::resultId
const ObjectImpType * resultId() const
returns the ObjectImp id of the ObjectImp's produced by this ObjectType.
Definition: arc_type.cc:154
ArcBCPAType::calc
ObjectImp * calc(const Args &args, const KigDocument &) const
Definition: arc_type.cc:190
ConicArcB5PType::resultId
const ObjectImpType * resultId() const
returns the ObjectImp id of the ObjectImp's produced by this ObjectType.
Definition: arc_type.cc:444
ConicArcBCTPType::resultId
const ObjectImpType * resultId() const
returns the ObjectImp id of the ObjectImp's produced by this ObjectType.
Definition: arc_type.cc:330
ArcBTPType
an arc by a start point, an intermediate point and an end point
Definition: arc_type.h:27
ConicArcBCTPType::instance
static const ConicArcBCTPType * instance()
Definition: arc_type.cc:255
ArcBCPAType::impRequirement
const ObjectImpType * impRequirement(const ObjectImp *o, const Args &parents) const
Supposing that parents would be given as parents to this type's calc function, this function returns ...
Definition: arc_type.cc:206
ArcBTPType::impRequirement
const ObjectImpType * impRequirement(const ObjectImp *o, const Args &parents) const
Supposing that parents would be given as parents to this type's calc function, this function returns ...
Definition: arc_type.cc:144
Args
std::vector< const ObjectImp * > Args
Definition: objects/common.h:47
ArcBCPAType::resultId
const ObjectImpType * resultId() const
returns the ObjectImp id of the ObjectImp's produced by this ObjectType.
Definition: arc_type.cc:216
ArcBCPAType
an arc by a point (center), a starting point and an angle
Definition: arc_type.h:47
ArcBCPAType::instance
static const ArcBCPAType * instance()
Definition: arc_type.cc:184
ArcBCPAType::inherits
bool inherits(int type) const
Definition: arc_type.cc:211
KigDocument
KigDocument is the class holding the real data in a Kig document.
Definition: kig_document.h:36
ConicArcB5PType::calc
ObjectImp * calc(const Args &args, const KigDocument &) const
Definition: arc_type.cc:370
ConicArcB5PType
a conic arc by a five points, a starting point, intermediate, intermediate (used to compute angles)...
Definition: arc_type.h:87
ArcBTPType::inherits
bool inherits(int type) const
Definition: arc_type.cc:149
ObjectImp
The ObjectImp class represents the behaviour of an object after it is calculated. ...
Definition: object_imp.h:226
base_type.h
ConicArcBCTPType::calc
ObjectImp * calc(const Args &args, const KigDocument &) const
Definition: arc_type.cc:261
ConicArcBCTPType
a conic arc by a start point, an intermediate point, an end point and the conic center ...
Definition: arc_type.h:68
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