18 #ifndef KIG_OBJECTS_CIRCLE_IMP_H
19 #define KIG_OBJECTS_CIRCLE_IMP_H
21 #include "conic_imp.h"
37 static const ObjectImpType*
stype();
48 void draw( KigPainter& p )
const;
49 bool contains(
const Coordinate& p,
int width,
const KigWidget& )
const;
50 bool inRect(
const Rect& r,
int width,
const KigWidget& )
const;
52 Rect surroundingRect()
const;
54 double getParam(
const Coordinate& point,
const KigDocument& )
const;
55 const Coordinate getPoint(
double param,
const KigDocument& )
const;
57 const uint numberOfProperties()
const;
58 const QCStringList properties()
const;
59 const QCStringList propertiesInternalNames()
const;
60 ObjectImp* property( uint which,
const KigDocument& w )
const;
61 const char* iconForProperty( uint which )
const;
62 const ObjectImpType* impRequirementForProperty( uint which )
const;
63 bool isPropertyDefinedOnOrThroughThisImp( uint which )
const;
65 const ObjectImpType*
type()
const;
66 void visit( ObjectImpVisitor* vtor )
const;
122 bool equals(
const ObjectImp& rhs )
const;
int conicType() const
Always returns 1, since a circle always is an ellipse.
double squareRadius() const
Return the square radius of this circle.
Circle(const Coordinate ¢er, double radius)
Construct a Circle with a given center and radius.
bool equals(const Object &rhs) const
Returns true if this Object is equal to rhs.
TQString cartesianEquationString(const KigDocument &w) const
Return a string containing the cartesian equation of this circle.
Object * transform(const Transformation &) const
Return this Object, transformed by the transformation t.
const ConicPolarData polarData() const
Return the polar representation of this conic.
An Object representing a circle.
Definition: circle_imp.h:29
This class represents an equation of a conic in the form .
Definition: conic-common.h:86
The Object class represents the behaviour of an object after it is calculated.
Definition: object_imp.h:219
double surface() const
Return the surface of this circle.
Instances of this class represent a certain Object type.
Definition: object_imp.h:89
An Object representing a conic.
Definition: conic_imp.h:40
Coordinate focus1() const
The first focus of a circle is simply its center.
Circle * copy() const
Returns a copy of this Object.
Cartesian Conic Data.
Definition: conic-common.h:38
const Coordinate center() const
Return the center of this circle.
Coordinate focus2() const
The second focus of a circle is simply its center.
const ObjectType * type() const
Returns the lowermost ObjectType that this object is an instantiation of.
const ConicCartesianData cartesianData() const
Return the cartesian representation of this conic.
TQString simplyCartesianEquationString(const KigDocument &w) const
Return a string containing the cartesian equation of this circle.
double radius() const
Return the radius of this circle.
double circumference() const
Return the circumference of this circle.
The Coordinate class is the basic class representing a 2D location by its x and y components.
Definition: coordinate.h:34
TQString polarEquationString(const KigDocument &w) const
Return a string containing the polar equation of this circle.
static const ObjectType * stype()
Returns the ObjectType representing the Circle type.
This file is part of the documentation for tdelibs .
Documentation copyright © 1996-2002 the KDE developers.
Generated on Wed Nov 4 2020 16:58:44 by
doxygen 1.8.20 written by
Dimitri van Heesch, © 1997-2001