kig
AbstractLineImp Class Reference
#include <line_imp.h>

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.
Public Types | |
| typedef CurveImp | Parent |
Public Member Functions | |
| 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 |
| ~AbstractLineImp () | |
Static Public Member Functions | |
| static const ObjectImpType * | stype () |
Protected Member Functions | |
| AbstractLineImp (const Coordinate &a, const Coordinate &b) | |
| AbstractLineImp (const LineData &d) | |
Protected Attributes | |
| LineData | mdata |
Member Typedef Documentation
| typedef CurveImp AbstractLineImp::Parent |
Reimplemented from CurveImp.
Reimplemented in SegmentImp, RayImp, and LineImp.
Definition at line 40 of file line_imp.h.
Constructor & Destructor Documentation
| AbstractLineImp::AbstractLineImp | ( | const LineData & | d | ) | [protected] |
Definition at line 474 of file line_imp.cc.
| AbstractLineImp::AbstractLineImp | ( | const Coordinate & | a, | |
| const Coordinate & | b | |||
| ) | [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 |
| bool AbstractLineImp::equals | ( | const ObjectImp & | rhs | ) | const [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.
For internal use only.
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.
| const char * AbstractLineImp::iconForProperty | ( | int | which | ) | const [virtual] |
Reimplemented from ObjectImp.
Reimplemented in SegmentImp, and RayImp.
Definition at line 61 of file line_imp.cc.
| const ObjectImpType * AbstractLineImp::impRequirementForProperty | ( | int | which | ) | const [virtual] |
Reimplemented from ObjectImp.
Reimplemented in SegmentImp, and RayImp.
Definition at line 54 of file line_imp.cc.
| bool AbstractLineImp::isPropertyDefinedOnOrThroughThisImp | ( | int | which | ) | const [virtual] |
| int AbstractLineImp::numberOfProperties | ( | ) | const [virtual] |
Reimplemented from ObjectImp.
Reimplemented in SegmentImp, and RayImp.
Definition at line 49 of file line_imp.cc.
| const QByteArrayList AbstractLineImp::properties | ( | ) | const [virtual] |
Reimplemented from ObjectImp.
Reimplemented in SegmentImp, and RayImp.
Definition at line 94 of file line_imp.cc.
| const QByteArrayList AbstractLineImp::propertiesInternalNames | ( | ) | const [virtual] |
Reimplemented from ObjectImp.
Reimplemented in SegmentImp, and RayImp.
Definition at line 85 of file line_imp.cc.
| ObjectImp * AbstractLineImp::property | ( | int | which, | |
| const KigDocument & | d | |||
| ) | const [virtual] |
Reimplemented from ObjectImp.
Reimplemented in SegmentImp, and RayImp.
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.
| const ObjectImpType * AbstractLineImp::stype | ( | ) | [static] |
Returns the ObjectImpType representing the AbstractLineImp type.
Reimplemented from CurveImp.
Reimplemented in SegmentImp, RayImp, and LineImp.
Definition at line 520 of file line_imp.cc.
Member Data Documentation
LineData AbstractLineImp::mdata [protected] |
Definition at line 35 of file line_imp.h.
The documentation for this class was generated from the following files:
KDE 4.2 API Reference