kig
#include <line_imp.h>
Public Types | |
typedef AbstractLineImp | Parent |
Public Types inherited from AbstractLineImp | |
typedef CurveImp | Parent |
Public Types inherited from CurveImp | |
typedef ObjectImp | Parent |
Public Member Functions | |
SegmentImp (const Coordinate &a, const Coordinate &b) | |
SegmentImp (const LineData &d) | |
bool | contains (const Coordinate &p, int width, const KigWidget &si) const |
bool | containsPoint (const Coordinate &p, const KigDocument &doc) const |
SegmentImp * | copy () const |
void | draw (KigPainter &p) const |
double | getParam (const Coordinate &, const KigDocument &) const |
const Coordinate | getPoint (double param, const KigDocument &) const |
const char * | iconForProperty (int which) const |
const ObjectImpType * | impRequirementForProperty (int which) const |
bool | internalContainsPoint (const Coordinate &p, double threshold) const |
double | length () const |
int | numberOfProperties () const |
const QByteArrayList | properties () const |
const QByteArrayList | propertiesInternalNames () const |
ObjectImp * | property (int which, const KigDocument &d) const |
Rect | surroundingRect () const |
ObjectImp * | transform (const Transformation &) const |
const ObjectImpType * | type () const |
void | visit (ObjectImpVisitor *vtor) const |
Public Member Functions inherited from AbstractLineImp | |
~AbstractLineImp () | |
LineData | data () const |
bool | equals (const ObjectImp &rhs) const |
const QString | equationString () const |
bool | inRect (const Rect &r, int width, const KigWidget &) const |
bool | isPropertyDefinedOnOrThroughThisImp (int which) const |
double | slope () const |
Public Member Functions inherited from CurveImp | |
Coordinate | attachPoint () const |
QString | cartesianEquationString (const KigDocument &w) const |
Public Member Functions inherited from ObjectImp | |
virtual | ~ObjectImp () |
virtual bool | canFillInNextEscape () const |
virtual void | fillInNextEscape (QString &s, const KigDocument &) const |
int | getPropGid (const char *pname) const |
int | getPropLid (int propgid) const |
const char * | getPropName (int propgid) const |
bool | inherits (const ObjectImpType *t) const |
virtual bool | isCache () const |
bool | valid () const |
Static Public Member Functions | |
static const ObjectImpType * | stype () |
Static Public Member Functions inherited from AbstractLineImp | |
static const ObjectImpType * | stype () |
Static Public Member Functions inherited from CurveImp | |
static const ObjectImpType * | stype () |
Static Public Member Functions inherited from ObjectImp | |
static const ObjectImpType * | stype () |
Additional Inherited Members | |
Protected Member Functions inherited from AbstractLineImp | |
AbstractLineImp (const LineData &d) | |
AbstractLineImp (const Coordinate &a, const Coordinate &b) | |
Protected Member Functions inherited from CurveImp | |
double | getDist (double param, const Coordinate &p, const KigDocument &doc) const |
double | getParamofmin (double a, double b, const Coordinate &p, const KigDocument &doc) const |
Protected Member Functions inherited from ObjectImp | |
ObjectImp () | |
Protected Attributes inherited from AbstractLineImp | |
LineData | mdata |
Detailed Description
An ObjectImp representing a segment.
Definition at line 81 of file line_imp.h.
Member Typedef Documentation
typedef AbstractLineImp SegmentImp::Parent |
Definition at line 85 of file line_imp.h.
Constructor & Destructor Documentation
SegmentImp::SegmentImp | ( | const Coordinate & | a, |
const Coordinate & | b | ||
) |
Construct a new segment from point a to point b.
Definition at line 309 of file line_imp.cc.
SegmentImp::SegmentImp | ( | const LineData & | d | ) |
Construct a new segment from a LineData.
Definition at line 479 of file line_imp.cc.
Member Function Documentation
|
virtual |
Implements ObjectImp.
Definition at line 284 of file line_imp.cc.
|
virtual |
Return whether this Curve contains the given point.
This is implemented as a numerical approximation. Implementations can/should use the value test_threshold in common.h as a threshold value.
Implements CurveImp.
Definition at line 594 of file line_imp.cc.
|
virtual |
Returns a copy of this ObjectImp.
The copy is an exact copy. Changes to the copy don't affect the original.
Implements CurveImp.
Definition at line 324 of file line_imp.cc.
|
virtual |
Implements ObjectImp.
Definition at line 279 of file line_imp.cc.
|
virtual |
Reimplemented from CurveImp.
Definition at line 344 of file line_imp.cc.
|
virtual |
Implements CurveImp.
Definition at line 339 of file line_imp.cc.
|
virtual |
Reimplemented from AbstractLineImp.
Definition at line 139 of file line_imp.cc.
|
virtual |
Reimplemented from AbstractLineImp.
Definition at line 132 of file line_imp.cc.
bool SegmentImp::internalContainsPoint | ( | const Coordinate & | p, |
double | threshold | ||
) | const |
Definition at line 599 of file line_imp.cc.
double SegmentImp::length | ( | ) | const |
Get the length of this segment.
Definition at line 494 of file line_imp.cc.
|
virtual |
Reimplemented from AbstractLineImp.
Definition at line 103 of file line_imp.cc.
|
virtual |
Reimplemented from AbstractLineImp.
Definition at line 120 of file line_imp.cc.
|
virtual |
Reimplemented from AbstractLineImp.
Definition at line 108 of file line_imp.cc.
|
virtual |
Reimplemented from AbstractLineImp.
Definition at line 158 of file line_imp.cc.
|
static |
Returns the ObjectImpType representing the SegmentImp type.
Definition at line 545 of file line_imp.cc.
|
virtual |
Implements ObjectImp.
Definition at line 642 of file line_imp.cc.
|
virtual |
Return this ObjectImp, transformed by the transformation t.
Implements ObjectImp.
Definition at line 433 of file line_imp.cc.
|
virtual |
Returns the lowermost ObjectImpType that this object is an instantiation of.
E.g. if you want to get a string containing the internal name of the type of an object, you can do:
Implements ObjectImp.
Definition at line 579 of file line_imp.cc.
|
virtual |
Implements ObjectImp.
Definition at line 499 of file line_imp.cc.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:12:06 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.