18 #ifndef KIG_OBJECTS_CUBIC_IMP_H 19 #define KIG_OBJECTS_CUBIC_IMP_H 21 #include "curve_imp.h" 23 #include "../misc/cubic-common.h" 36 static const ObjectImpType* stype();
42 void draw( KigPainter& p )
const;
43 bool contains(
const Coordinate& p,
int width,
const KigWidget& )
const;
44 bool inRect(
const Rect& r,
int width,
const KigWidget& )
const;
45 Rect surroundingRect()
const;
46 TQString cartesianEquationString(
const KigDocument& )
const;
48 const uint numberOfProperties()
const;
49 const QCStringList properties()
const;
50 const QCStringList propertiesInternalNames()
const;
51 ObjectImp* property( uint which,
const KigDocument& w )
const;
52 const char* iconForProperty( uint which )
const;
53 const ObjectImpType* impRequirementForProperty( uint which )
const;
54 bool isPropertyDefinedOnOrThroughThisImp( uint which )
const;
56 CubicImp* copy()
const;
58 double getParam(
const Coordinate& point,
const KigDocument& )
const;
63 const Coordinate getPoint(
double param,
const KigDocument& )
const;
64 const Coordinate getPoint(
double param )
const;
72 const ObjectImpType* type()
const;
73 void visit( ObjectImpVisitor* vtor )
const;
75 bool equals(
const ObjectImp& rhs )
const;
77 bool containsPoint(
const Coordinate& p,
const KigDocument& doc )
const;
78 bool internalContainsPoint(
const Coordinate& p,
double threshold )
const;
The Object class represents the behaviour of an object after it is calculated.
Definition: object_imp.h:218
Simple class representing a line.
Definition: common.h:60
The Coordinate class is the basic class representing a 2D location by its x and y components...
Definition: coordinate.h:33
This class represents an equation of a cubic in the form (in homogeneous coordinates, ), .
Definition: cubic-common.h:31