kig
bezier_imp.cc
Go to the documentation of this file.
309 bool BezierImp::internalContainsPoint( const Coordinate& p, double threshold, const KigDocument& doc ) const
336 RationalBezierImp::RationalBezierImp( const std::vector<Coordinate>& points, const std::vector<double>& weights )
607 bool RationalBezierImp::internalContainsPoint( const Coordinate& p, double threshold, const KigDocument& doc ) const
614 Coordinate RationalBezierImp::deCasteljauPoints( unsigned int m, unsigned int k, double p ) const
634 return deCasteljauPoints( mpoints.size() - 1, 0, p ) / deCasteljauWeights( mweights.size() - 1, 0, p );
Coordinate attachPoint() const
Returns a reference point where to attach labels; when this returns an invalidCoord then the attachme...
Definition: bezier_imp.cc:61
Instances of this class represent a certain ObjectImp type.
Definition: object_imp.h:95
bool inherits(const ObjectImpType *t) const
Returns true if this ObjectImp inherits the ObjectImp type represented by t.
Definition: object_imp.cc:279
ObjectImp * transform(const Transformation &) const
Return this ObjectImp, transformed by the transformation t.
Definition: bezier_imp.cc:66
const QByteArrayList propertiesInternalNames() const
Definition: bezier_imp.cc:123
virtual const ObjectImpType * impRequirementForProperty(int which) const
Definition: object_imp.cc:76
virtual ObjectImp * property(int which, const KigDocument &d) const
Definition: object_imp.cc:70
bool equals(const ObjectImp &rhs) const
Returns true if this ObjectImp is equal to rhs.
Definition: bezier_imp.cc:507
bool isPropertyDefinedOnOrThroughThisImp(int which) const
Definition: bezier_imp.cc:281
QString cartesianEquationString(const KigDocument &w) const
Definition: curve_imp.cc:270
const ObjectImpType * impRequirementForProperty(int which) const
Definition: bezier_imp.cc:143
RationalBezierImp(const std::vector< Coordinate > &points, const std::vector< double > &weights)
Constructs a rational Bézier curve.
Definition: bezier_imp.cc:336
virtual const QByteArrayList propertiesInternalNames() const
Definition: object_imp.cc:63
const Coordinate getPoint(double param, const KigDocument &) const
Definition: bezier_imp.cc:628
const ObjectImpType * impRequirementForProperty(int which) const
Definition: bezier_imp.cc:441
int size() const
The Coordinate class is the basic class representing a 2D location by its x and y components...
Definition: coordinate.h:33
const char * iconForProperty(int which) const
Definition: bezier_imp.cc:150
ObjectImp * transform(const Transformation &) const
Return this ObjectImp, transformed by the transformation t.
Definition: bezier_imp.cc:364
static const ObjectImpType * stype()
Returns the ObjectImpType representing the RationalBezierImp type.
Definition: bezier_imp.cc:516
const ScreenInfo & screenInfo() const
the part of the document we're currently showing i.e.
Definition: kig_view.cpp:272
Coordinate attachPoint() const
Returns a reference point where to attach labels; when this returns an invalidCoord then the attachme...
Definition: bezier_imp.cc:359
virtual const char * iconForProperty(int which) const
Definition: object_imp.cc:187
bool inRect(const Rect &r, int width, const KigWidget &) const
Definition: bezier_imp.cc:92
bool isPropertyDefinedOnOrThroughThisImp(int which) const
Definition: bezier_imp.cc:579
bool contains(const Coordinate &p, int width, const KigWidget &) const
Definition: bezier_imp.cc:597
const char * iconForProperty(int which) const
Definition: bezier_imp.cc:448
const ObjectImpType * type() const
Returns the lowermost ObjectImpType that this object is an instantiation of.
Definition: bezier_imp.cc:272
bool containsPoint(const Coordinate &p, const KigDocument &doc) const
Return whether this Curve contains the given point.
Definition: bezier_imp.cc:602
ObjectImp * property(int which, const KigDocument &w) const
Definition: bezier_imp.cc:165
const Coordinate getPoint(double param, const KigDocument &) const
Definition: bezier_imp.cc:323
const QByteArrayList propertiesInternalNames() const
Definition: bezier_imp.cc:421
virtual bool isPropertyDefinedOnOrThroughThisImp(int which) const
Definition: object_imp.cc:326
void setContains(Coordinate p)
this makes sure p is in the rect, extending it if necessary...
Definition: rect.cc:240
bool contains(const Coordinate &p, int width, const KigWidget &) const
Definition: bezier_imp.cc:299
bool lineInRect(const Rect &r, const Coordinate &a, const Coordinate &b, const int width, const ObjectImp *imp, const KigWidget &w)
Is the line, segment, ray or vector inside r ? We need the imp to distinguish between rays...
Definition: common.cpp:401
const Coordinate apply(const double x0, const double x1, const double x2) const
Apply this Tranformation.
Definition: kigtransform.cpp:611
bool equals(const ObjectImp &rhs) const
Returns true if this ObjectImp is equal to rhs.
Definition: bezier_imp.cc:209
bool containsPoint(const Coordinate &p, const KigDocument &doc) const
Return whether this Curve contains the given point.
Definition: bezier_imp.cc:304
const ObjectImpType * type() const
Returns the lowermost ObjectImpType that this object is an instantiation of.
Definition: bezier_imp.cc:570
bool internalContainsPoint(const Coordinate &p, double threshold, const KigDocument &doc) const
Definition: bezier_imp.cc:309
bool internalContainsPoint(const Coordinate &p, double threshold, const KigDocument &doc) const
Definition: bezier_imp.cc:607
const std::vector< Coordinate > points() const
Returns the vector with control points.
Definition: bezier_imp.cc:487
static const ObjectImpType * stype()
Returns the ObjectImpType representing the CurveImp type.
Definition: curve_imp.cc:27
KigDocument is the class holding the real data in a Kig document.
Definition: kig_document.h:36
static const ObjectImpType * stype()
Returns the ObjectImpType representing the BezierImp type.
Definition: bezier_imp.cc:218
const std::vector< Coordinate > points() const
Returns the vector with control points.
Definition: bezier_imp.cc:189
ObjectImp * property(int which, const KigDocument &w) const
Definition: bezier_imp.cc:463
The ObjectImp class represents the behaviour of an object after it is calculated. ...
Definition: object_imp.h:226
double getDist(double param, const Coordinate &p, const KigDocument &doc) const
This function returns the distance between the point with parameter param and point p...
Definition: curve_imp.cc:137
bool inRect(const Rect &r, int width, const KigWidget &) const
Definition: bezier_imp.cc:390
virtual double getParam(const Coordinate &point, const KigDocument &) const
Definition: curve_imp.cc:149
BezierImp(const std::vector< Coordinate > &points)
Constructs a Bézier curve.
Definition: bezier_imp.cc:43
Definition: object_imp.h:56
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:12:05 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:12:05 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.