kig
line_imp.cc
Go to the documentation of this file.
bool contains(const Coordinate &p, int width, const KigWidget &si) const
Definition: line_imp.cc:284
Instances of this class represent a certain ObjectImp type.
Definition: object_imp.h:95
ObjectImp * property(int which, const KigDocument &d) const
Definition: line_imp.cc:221
bool isOnLine(const Coordinate &o, const Coordinate &a, const Coordinate &b, const double fault)
is o on the line defined by point a and point b ? fault is the allowed difference...
Definition: common.cpp:188
QString & append(QChar ch)
bool internalContainsPoint(const Coordinate &p, double threshold) const
Definition: line_imp.cc:599
bool contains(const Coordinate &p, int width, const KigWidget &si) const
Definition: line_imp.cc:304
ObjectImp * property(int which, const KigDocument &d) const
Definition: line_imp.cc:158
double getParam(const Coordinate &, const KigDocument &) const
Definition: line_imp.cc:344
bool contains(const Coordinate &p, int width, const KigWidget &si) const
Definition: line_imp.cc:294
ObjectImp * property(int which, const KigDocument &d) const
Definition: line_imp.cc:73
An ObjectImp class that is the base of the line-like ObjectImp's: SegmentImp, LineImp and RayImp...
Definition: line_imp.h:31
bool containsPoint(const Coordinate &p, const KigDocument &doc) const
Return whether this Curve contains the given point.
Definition: line_imp.cc:614
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
const ObjectImpType * impRequirementForProperty(int which) const
Definition: line_imp.cc:54
const ObjectImpType * impRequirementForProperty(int which) const
Definition: line_imp.cc:201
static const ObjectImpType * stype()
Returns the ObjectImpType representing the RayImp type.
Definition: line_imp.cc:562
double getProjectiveIndicator(const Coordinate &c) const
Definition: kigtransform.cpp:703
LineImp(const Coordinate &a, const Coordinate &b)
Construct a LineImp going through points a and b.
Definition: line_imp.cc:319
double getParam(const Coordinate &, const KigDocument &) const
Definition: line_imp.cc:415
virtual const QByteArrayList propertiesInternalNames() const
Definition: object_imp.cc:63
static const ObjectImpType * stype()
Returns the ObjectImpType representing the LineImp type.
Definition: line_imp.cc:528
Coordinate calcPointOnPerpend(const LineData &l, const Coordinate &t)
This file is part of Kig, a KDE program for Interactive Geometry...
Definition: common.cpp:37
bool internalContainsPoint(const Coordinate &p, double threshold) const
Definition: line_imp.cc:609
int size() const
The Coordinate class is the basic class representing a 2D location by its x and y components...
Definition: coordinate.h:33
void drawLine(const Coordinate &p1, const Coordinate &p2)
draw a line...
Definition: kigpainter.cpp:187
ObjectImp * transform(const Transformation &) const
Return this ObjectImp, transformed by the transformation t.
Definition: line_imp.cc:433
void addTerm(double coeff, const QString &unknowns, bool &needsign)
Definition: equation.cc:41
const ScreenInfo & screenInfo() const
the part of the document we're currently showing i.e.
Definition: kig_view.cpp:272
const ObjectImpType * impRequirementForProperty(int which) const
Definition: line_imp.cc:132
const Coordinate apply0(const Coordinate &c) const
Definition: kigtransform.cpp:653
virtual const ObjectImpType * type() const =0
Returns the lowermost ObjectImpType that this object is an instantiation of.
const ObjectImpType * type() const
Returns the lowermost ObjectImpType that this object is an instantiation of.
Definition: line_imp.cc:584
bool isOnSegment(const Coordinate &o, const Coordinate &a, const Coordinate &b, const double fault)
is o on the segment defined by point a and point b ? this calls isOnLine(), but also checks if o is "...
Definition: common.cpp:212
virtual const char * iconForProperty(int which) const
Definition: object_imp.cc:187
ObjectImp * transform(const Transformation &) const
Return this ObjectImp, transformed by the transformation t.
Definition: line_imp.cc:447
const Coordinate getPoint(double param, const KigDocument &) const
Definition: line_imp.cc:339
bool equals(const ObjectImp &rhs) const
Returns true if this ObjectImp is equal to rhs.
Definition: line_imp.cc:514
ObjectImp * transform(const Transformation &) const
Return this ObjectImp, transformed by the transformation t.
Definition: line_imp.cc:455
bool inRect(const Rect &r, int width, const KigWidget &) const
Definition: line_imp.cc:44
static const ObjectImpType * stype()
Returns the ObjectImpType representing the SegmentImp type.
Definition: line_imp.cc:545
virtual bool isPropertyDefinedOnOrThroughThisImp(int which) const
Definition: object_imp.cc:326
Coordinate calcIntersectionPoint(const LineData &l1, const LineData &l2)
this calcs the point where the lines l and m intersect...
Definition: common.cpp:57
const char * iconForProperty(int which) const
Definition: line_imp.cc:139
bool containsPoint(const Coordinate &p, const KigDocument &doc) const
Return whether this Curve contains the given point.
Definition: line_imp.cc:604
bool isOnRay(const Coordinate &o, const Coordinate &a, const Coordinate &b, const double fault)
Definition: common.cpp:226
const Coordinate getPoint(double param, const KigDocument &) const
Definition: line_imp.cc:397
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 isPropertyDefinedOnOrThroughThisImp(int which) const
Definition: line_imp.cc:624
const QString equationString() const
Get a string containing the equation of this line in the form "y = a * x + b ".
Definition: line_imp.cc:241
const ObjectImpType * type() const
Returns the lowermost ObjectImpType that this object is an instantiation of.
Definition: line_imp.cc:579
const QByteArrayList propertiesInternalNames() const
Definition: line_imp.cc:85
static const ObjectImpType * stype()
Returns the ObjectImpType representing the CurveImp type.
Definition: curve_imp.cc:27
const Coordinate getPoint(double param, const KigDocument &) const
Definition: line_imp.cc:364
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 AbstractLineImp type.
Definition: line_imp.cc:520
const char * iconForProperty(int which) const
Definition: line_imp.cc:61
const QByteArrayList propertiesInternalNames() const
Definition: line_imp.cc:183
The ObjectImp class represents the behaviour of an object after it is calculated. ...
Definition: object_imp.h:226
const ObjectImpType * type() const
Returns the lowermost ObjectImpType that this object is an instantiation of.
Definition: line_imp.cc:589
const QByteArrayList propertiesInternalNames() const
Definition: line_imp.cc:108
double getParam(const Coordinate &, const KigDocument &) const
Definition: line_imp.cc:370
void drawSegment(const Coordinate &from, const Coordinate &to)
draw a segment...
Definition: kigpainter.cpp:94
SegmentImp(const Coordinate &a, const Coordinate &b)
Construct a new segment from point a to point b.
Definition: line_imp.cc:309
bool internalContainsPoint(const Coordinate &p, double threshold) const
Definition: line_imp.cc:619
bool containsPoint(const Coordinate &p, const KigDocument &doc) const
Return whether this Curve contains the given point.
Definition: line_imp.cc:594
RayImp(const Coordinate &a, const Coordinate &b)
Construct a ray, starting at a, and going through b.
Definition: line_imp.cc:314
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.