18#ifndef KIG_OBJECTS_CUBIC_IMP_H
19#define KIG_OBJECTS_CUBIC_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;
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;
78 bool internalContainsPoint(
const Coordinate& p,
double threshold )
const;
The Coordinate class is the basic class representing a 2D location by its x and y components.
Definition coordinate.h:34
This class represents an equation of a cubic in the form (in homogeneous coordinates,...
Definition cubic-common.h:32
An Object representing a cubic.
Definition cubic_imp.h:32
Object * transform(const Transformation &) const
Return this Object, transformed by the transformation t.
const ObjectType * type() const
Returns the lowermost ObjectType that this object is an instantiation of.
bool containsPoint(const Coordinate &p, const KigDocument &doc) const
Return whether this Curve contains the given point.
const CubicCartesianData data() const
Return the cartesian representation of this cubic.
Cubic * copy() const
Returns a copy of this Object.
bool equals(const Object &rhs) const
Returns true if this Object is equal to rhs.
This class represents a curve: something which is composed of points, like a line,...
Definition curve_imp.h:29
Simple class representing a line.
Definition common.h:60
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