18#ifndef KIG_OBJECTS_CIRCLE_IMP_H
19#define KIG_OBJECTS_CIRCLE_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;
An Object representing a circle.
Definition: circle_imp.h:29
static const ObjectType * stype()
Returns the ObjectType representing the Circle type.
const Coordinate center() const
Return the center of this circle.
const ObjectType * type() const
Returns the lowermost ObjectType that this object is an instantiation of.
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.
Coordinate focus1() const
The first focus of a circle is simply its center.
const ConicPolarData polarData() const
Return the polar representation of this conic.
double circumference() const
Return the circumference of this circle.
Circle * copy() const
Returns a copy of this Object.
const ConicCartesianData cartesianData() const
Return the cartesian representation of this conic.
double squareRadius() const
Return the square radius of this circle.
TQString polarEquationString(const KigDocument &w) const
Return a string containing the polar equation of this circle.
int conicType() const
Always returns 1, since a circle always is an ellipse.
Coordinate focus2() const
The second focus of a circle is simply its center.
double radius() const
Return the radius of this circle.
Object * transform(const Transformation &) const
Return this Object, transformed by the transformation t.
TQString simplyCartesianEquationString(const KigDocument &w) const
Return a string containing the cartesian equation of this circle.
double surface() const
Return the surface of this circle.
Circle(const Coordinate ¢er, double radius)
Construct a Circle with a given center and radius.
Cartesian Conic Data.
Definition: conic-common.h:38
This class represents an equation of a conic in the form .
Definition: conic-common.h:86
An Object representing a conic.
Definition: conic_imp.h:40
The Coordinate class is the basic class representing a 2D location by its x and y components.
Definition: coordinate.h:34
Instances of this class represent a certain Object type.
Definition: object_imp.h:89
The Object class represents the behaviour of an object after it is calculated.
Definition: object_imp.h:219