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;
Object * transform(const Transformation &) const
Return this Object, transformed by the transformation t.
This class represents a curve: something which is composed of points, like a line,...
Definition: curve_imp.h:27
Cubic * copy() const
Returns a copy of this Object.
The Object class represents the behaviour of an object after it is calculated.
Definition: object_imp.h:218
Instances of this class represent a certain Object type.
Definition: object_imp.h:88
An Object representing a cubic.
Definition: cubic_imp.h:30
This class represents an equation of a cubic in the form (in homogeneous coordinates,...
Definition: cubic-common.h:31
Simple class representing a line.
Definition: common.h:60
bool containsPoint(const Coordinate &p, const KigDocument &doc) const
Return whether this Curve contains the given point.
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.
The Coordinate class is the basic class representing a 2D location by its x and y components.
Definition: coordinate.h:33
const CubicCartesianData data() const
Return the cartesian representation of this cubic.
This file is part of the documentation for tdelibs .
Documentation copyright © 1996-2002 the KDE developers.
Generated on Mon Sep 19 2022 02:09:14 by
doxygen 1.8.17 written by
Dimitri van Heesch, © 1997-2001