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 | |
| ~AbstractLineImp () | |
| bool | inRect (const Rect &r, int width, const KigWidget &) const |
| int | numberOfProperties () const |
| const QByteArrayList | properties () const |
| const QByteArrayList | propertiesInternalNames () const |
| ObjectImp * | property (int which, const KigDocument &d) const |
| const char * | iconForProperty (int which) const |
| const ObjectImpType * | impRequirementForProperty (int which) const |
| bool | isPropertyDefinedOnOrThroughThisImp (int which) const |
| double | slope () const |
| const QString | equationString () const |
| LineData | data () const |
| bool | equals (const ObjectImp &rhs) const |
Static Public Member Functions | |
| static const ObjectImpType * | stype () |
Protected Member Functions | |
| AbstractLineImp (const LineData &d) | |
| AbstractLineImp (const Coordinate &a, const Coordinate &b) | |
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
| 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.
| 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.
| 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] |
| 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 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.
| LineData AbstractLineImp::data | ( | ) | const |
| bool AbstractLineImp::equals | ( | const ObjectImp & | rhs | ) | const [virtual] |
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.0 API Reference