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

kig

  • sources
  • kde-4.12
  • kdeedu
  • kig
  • objects
locus_imp.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_LOCUS_IMP_H
19 #define KIG_OBJECTS_LOCUS_IMP_H
20 
21 #include "curve_imp.h"
22 #include "../misc/object_hierarchy.h"
23 
57 class LocusImp
58  : public CurveImp
59 {
60  CurveImp* mcurve;
61  const ObjectHierarchy mhier;
62 
63  void getInterval(double& x1,double& x2,double incr,const Coordinate& p, const KigDocument& doc) const;
64 public:
65  typedef CurveImp Parent;
66  static const ObjectImpType* stype();
67 
68  LocusImp( CurveImp*, const ObjectHierarchy& );
69  ~LocusImp();
70  LocusImp* copy() const;
71 
72  ObjectImp* transform( const Transformation& ) const;
73 
74  void draw( KigPainter& p ) const;
75  bool contains( const Coordinate& p, int width, const KigWidget& ) const;
76  Rect surroundingRect() const;
77  bool inRect( const Rect& r, int width, const KigWidget& ) const;
78  const Coordinate getPoint( double param, const KigDocument& ) const;
79 
80  // TODO ?
81  int numberOfProperties() const;
82  const QByteArrayList properties() const;
83  const QByteArrayList propertiesInternalNames() const;
84  ObjectImp* property( int which, const KigDocument& w ) const;
85  const char* iconForProperty( int which ) const;
86  const ObjectImpType* impRequirementForProperty( int which ) const;
87  bool isPropertyDefinedOnOrThroughThisImp( int which ) const;
88 
89  const CurveImp* curve() const;
90  const ObjectHierarchy& hierarchy() const;
91 
92  const ObjectImpType* type() const;
93  void visit( ObjectImpVisitor* vtor ) const;
94 
95  bool equals( const ObjectImp& rhs ) const;
96 
97  bool containsPoint( const Coordinate& p, const KigDocument& d ) const;
98  bool internalContainsPoint( const Coordinate& p, double threshold, const KigDocument& doc ) const;
99 
100  //virtual QString LocusTypeString(const KigDocument& w) const;
101 
102 };
103 
104 #endif
LocusImp
LocusImp is an imp that consists of a copy of the curveimp that the moving point moves over...
Definition: locus_imp.h:57
ObjectImpType
Instances of this class represent a certain ObjectImp type.
Definition: object_imp.h:95
ObjectHierarchy
Definition: object_hierarchy.h:30
LocusImp::propertiesInternalNames
const QByteArrayList propertiesInternalNames() const
Definition: locus_imp.cc:96
LocusImp::curve
const CurveImp * curve() const
Definition: locus_imp.cc:147
LocusImp::impRequirementForProperty
const ObjectImpType * impRequirementForProperty(int which) const
Definition: locus_imp.cc:112
Rect
This file is part of Kig, a KDE program for Interactive Geometry...
Definition: rect.h:34
LocusImp::getPoint
const Coordinate getPoint(double param, const KigDocument &) const
Definition: locus_imp.cc:63
Coordinate
The Coordinate class is the basic class representing a 2D location by its x and y components...
Definition: coordinate.h:33
LocusImp::inRect
bool inRect(const Rect &r, int width, const KigWidget &) const
Definition: locus_imp.cc:57
LocusImp::~LocusImp
~LocusImp()
Definition: locus_imp.cc:37
LocusImp::containsPoint
bool containsPoint(const Coordinate &p, const KigDocument &d) const
Return whether this Curve contains the given point.
Definition: locus_imp.cc:222
LocusImp::stype
static const ObjectImpType * stype()
Definition: locus_imp.cc:200
LocusImp::transform
ObjectImp * transform(const Transformation &) const
Return this ObjectImp, transformed by the transformation t.
Definition: locus_imp.cc:42
KigPainter
KigPainter is an extended QPainter.
Definition: kigpainter.h:51
LocusImp::surroundingRect
Rect surroundingRect() const
Definition: locus_imp.cc:239
LocusImp::LocusImp
LocusImp(CurveImp *, const ObjectHierarchy &)
Definition: locus_imp.cc:86
Transformation
Class representing a transformation.
Definition: kigtransform.h:37
LocusImp::property
ObjectImp * property(int which, const KigDocument &w) const
Definition: locus_imp.cc:129
KigWidget
This class is the real widget showing the document.
Definition: kig_view.h:50
LocusImp::type
const ObjectImpType * type() const
Returns the lowermost ObjectImpType that this object is an instantiation of.
Definition: locus_imp.cc:217
LocusImp::draw
void draw(KigPainter &p) const
Definition: locus_imp.cc:47
LocusImp::iconForProperty
const char * iconForProperty(int which) const
Definition: locus_imp.cc:117
LocusImp::properties
const QByteArrayList properties() const
Definition: locus_imp.cc:104
LocusImp::contains
bool contains(const Coordinate &p, int width, const KigWidget &) const
Definition: locus_imp.cc:52
KigDocument
KigDocument is the class holding the real data in a Kig document.
Definition: kig_document.h:36
LocusImp::hierarchy
const ObjectHierarchy & hierarchy() const
Definition: locus_imp.cc:152
LocusImp::numberOfProperties
int numberOfProperties() const
Definition: locus_imp.cc:91
LocusImp::copy
LocusImp * copy() const
Returns a copy of this ObjectImp.
Definition: locus_imp.cc:142
QByteArrayList
QList< QByteArray > QByteArrayList
Definition: objects/common.h:50
ObjectImp
The ObjectImp class represents the behaviour of an object after it is calculated. ...
Definition: object_imp.h:226
LocusImp::equals
bool equals(const ObjectImp &rhs) const
Returns true if this ObjectImp is equal to rhs.
Definition: locus_imp.cc:193
curve_imp.h
LocusImp::internalContainsPoint
bool internalContainsPoint(const Coordinate &p, double threshold, const KigDocument &doc) const
Definition: locus_imp.cc:227
LocusImp::isPropertyDefinedOnOrThroughThisImp
bool isPropertyDefinedOnOrThroughThisImp(int which) const
Definition: locus_imp.cc:234
ObjectImpVisitor
Definition: object_imp.h:56
LocusImp::visit
void visit(ObjectImpVisitor *vtor) const
Definition: locus_imp.cc:188
CurveImp
This class represents a curve: something which is composed of points, like a line, a circle, a locus.
Definition: curve_imp.h:27
LocusImp::Parent
CurveImp Parent
Definition: locus_imp.h:65
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:35:39 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
  • kstars
  • libkdeedu
  •   keduvocdocument
  • 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