kig
#include <line_imp.h>
Public Types | |
typedef CurveImp | Parent |
Public Types inherited from CurveImp | |
typedef ObjectImp | Parent |
Public Member Functions | |
~AbstractLineImp () | |
LineData | data () const |
bool | equals (const ObjectImp &rhs) const |
const QString | equationString () const |
const char * | iconForProperty (int which) const |
const ObjectImpType * | impRequirementForProperty (int which) const |
bool | inRect (const Rect &r, int width, const KigWidget &) const |
bool | isPropertyDefinedOnOrThroughThisImp (int which) const |
int | numberOfProperties () const |
const QByteArrayList | properties () const |
const QByteArrayList | propertiesInternalNames () const |
ObjectImp * | property (int which, const KigDocument &d) const |
double | slope () const |
Public Member Functions inherited from CurveImp | |
Coordinate | attachPoint () const |
QString | cartesianEquationString (const KigDocument &w) const |
virtual bool | containsPoint (const Coordinate &p, const KigDocument &) const =0 |
virtual CurveImp * | copy () const =0 |
virtual double | getParam (const Coordinate &point, const KigDocument &) const |
virtual const Coordinate | getPoint (double param, const KigDocument &) const =0 |
Public Member Functions inherited from ObjectImp | |
virtual | ~ObjectImp () |
virtual bool | canFillInNextEscape () const |
virtual bool | contains (const Coordinate &p, int width, const KigWidget &si) const =0 |
virtual void | draw (KigPainter &p) const =0 |
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 |
virtual Rect | surroundingRect () const =0 |
virtual ObjectImp * | transform (const Transformation &t) const =0 |
virtual const ObjectImpType * | type () const =0 |
bool | valid () const |
virtual void | visit (ObjectImpVisitor *vtor) const =0 |
Static Public Member Functions | |
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 () |
Protected Member Functions | |
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 | |
LineData | mdata |
Detailed Description
An ObjectImp class that is the base of the line-like ObjectImp's: SegmentImp, LineImp and RayImp.
Definition at line 31 of file line_imp.h.
Member Typedef Documentation
typedef CurveImp AbstractLineImp::Parent |
Definition at line 40 of file line_imp.h.
Constructor & Destructor Documentation
|
protected |
Definition at line 474 of file line_imp.cc.
|
protected |
Definition at line 35 of file line_imp.cc.
AbstractLineImp::~AbstractLineImp | ( | ) |
Definition at line 40 of file line_imp.cc.
Member Function Documentation
LineData AbstractLineImp::data | ( | ) | const |
Get the LineData for this AbstractLineImp.
Definition at line 359 of file line_imp.cc.
|
virtual |
Returns true if this ObjectImp is equal to rhs.
This function checks whether rhs is of the same ObjectImp type, and whether it contains the same data as this ObjectImp.
It is used e.g. by the KigCommand stuff to see what the user has changed during a move.
Implements ObjectImp.
Definition at line 514 of file line_imp.cc.
const QString AbstractLineImp::equationString | ( | ) | const |
Get a string containing the equation of this line in the form "y = a * x + b ".
Definition at line 241 of file line_imp.cc.
|
virtual |
Reimplemented from ObjectImp.
Reimplemented in RayImp, and SegmentImp.
Definition at line 61 of file line_imp.cc.
|
virtual |
Reimplemented from ObjectImp.
Reimplemented in RayImp, and SegmentImp.
Definition at line 54 of file line_imp.cc.
Implements ObjectImp.
Definition at line 44 of file line_imp.cc.
|
virtual |
Reimplemented from ObjectImp.
Definition at line 624 of file line_imp.cc.
|
virtual |
Reimplemented from ObjectImp.
Reimplemented in RayImp, and SegmentImp.
Definition at line 49 of file line_imp.cc.
|
virtual |
Reimplemented from ObjectImp.
Reimplemented in RayImp, and SegmentImp.
Definition at line 94 of file line_imp.cc.
|
virtual |
Reimplemented from ObjectImp.
Reimplemented in RayImp, and SegmentImp.
Definition at line 85 of file line_imp.cc.
|
virtual |
Reimplemented from ObjectImp.
Reimplemented in RayImp, and SegmentImp.
Definition at line 73 of file line_imp.cc.
double AbstractLineImp::slope | ( | ) | const |
Get the slope of this AbstractLineImp.
For a line through points a( xa, ya ) and b ( xb, yb ), this means the value ( yb - ya ) / ( xb - xa ).
Definition at line 235 of file line_imp.cc.
|
static |
Returns the ObjectImpType representing the AbstractLineImp type.
Definition at line 520 of file line_imp.cc.
Member Data Documentation
|
protected |
Definition at line 35 of file line_imp.h.
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.