kig
ConicArcImp Class Reference
A conic arc, which is given by the cartesian equation and two angles. More...
#include <conic_imp.h>

Public Types | |
| typedef CurveImp | Parent |
Public Member Functions | |
| ConicArcImp (const ConicCartesianData &data, const double startangle, const double angle) | |
| ~ConicArcImp () | |
| bool | contains (const Coordinate &p, int width, const KigWidget &) const |
| bool | containsPoint (const Coordinate &p, const KigDocument &doc) const |
| ConicArcImp * | copy () const |
| Coordinate | firstEndPoint () const |
| double | getParam (const Coordinate &point) const |
| double | getParam (const Coordinate &point, const KigDocument &) const |
| const Coordinate | getPoint (double param) const |
| const Coordinate | getPoint (double param, const KigDocument &) const |
| const char * | iconForProperty (int which) const |
| bool | internalContainsPoint (const Coordinate &p, double threshold, const KigDocument &doc) const |
| bool | isPropertyDefinedOnOrThroughThisImp (int which) const |
| int | numberOfProperties () const |
| const QByteArrayList | properties () const |
| const QByteArrayList | propertiesInternalNames () const |
| ObjectImp * | property (int which, const KigDocument &w) const |
| Coordinate | secondEndPoint () const |
| void | setAngle (double a) |
| void | setStartAngle (double sa) |
| ObjectImp * | transform (const Transformation &t) const |
| const ObjectImpType * | type () const |
Static Public Member Functions | |
| static const ObjectImpType * | stype () |
Detailed Description
A conic arc, which is given by the cartesian equation and two angles.
Definition at line 172 of file conic_imp.h.
Member Typedef Documentation
| typedef CurveImp ConicArcImp::Parent |
Reimplemented from ConicImp.
Definition at line 178 of file conic_imp.h.
Constructor & Destructor Documentation
| ConicArcImp::ConicArcImp | ( | const ConicCartesianData & | data, | |
| const double | startangle, | |||
| const double | angle | |||
| ) |
Construct a Conic Arc with given cartesian equation, start angle and dimension (both in radians).
Definition at line 467 of file conic_imp.cc.
| ConicArcImp::~ConicArcImp | ( | ) |
Definition at line 473 of file conic_imp.cc.
Member Function Documentation
| bool ConicArcImp::contains | ( | const Coordinate & | p, | |
| int | width, | |||
| const KigWidget & | w | |||
| ) | const [virtual] |
Reimplemented from ConicImp.
Definition at line 520 of file conic_imp.cc.
| bool ConicArcImp::containsPoint | ( | const Coordinate & | p, | |
| const KigDocument & | ||||
| ) | const [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.
Reimplemented from ConicImp.
Definition at line 628 of file conic_imp.cc.
| ConicArcImp * ConicArcImp::copy | ( | ) | const [virtual] |
Returns a copy of this ObjectImp.
The copy is an exact copy. Changes to the copy don't affect the original.
Reimplemented from ConicImpCart.
Definition at line 477 of file conic_imp.cc.
| Coordinate ConicArcImp::firstEndPoint | ( | ) | const |
Return the start point of this arc.
Definition at line 596 of file conic_imp.cc.
| double ConicArcImp::getParam | ( | const Coordinate & | point | ) | const |
Reimplemented from ConicImp.
Definition at line 651 of file conic_imp.cc.
| double ConicArcImp::getParam | ( | const Coordinate & | point, | |
| const KigDocument & | ||||
| ) | const [virtual] |
Reimplemented from ConicImp.
Definition at line 646 of file conic_imp.cc.
| const Coordinate ConicArcImp::getPoint | ( | double | param | ) | const |
Reimplemented from ConicImp.
Definition at line 667 of file conic_imp.cc.
| const Coordinate ConicArcImp::getPoint | ( | double | param, | |
| const KigDocument & | ||||
| ) | const [virtual] |
Reimplemented from ConicImp.
Definition at line 662 of file conic_imp.cc.
| const char * ConicArcImp::iconForProperty | ( | int | which | ) | const [virtual] |
Reimplemented from ConicImp.
Definition at line 550 of file conic_imp.cc.
| bool ConicArcImp::internalContainsPoint | ( | const Coordinate & | p, | |
| double | threshold, | |||
| const KigDocument & | doc | |||
| ) | const |
Definition at line 636 of file conic_imp.cc.
| bool ConicArcImp::isPropertyDefinedOnOrThroughThisImp | ( | int | which | ) | const [virtual] |
Reimplemented from ConicImp.
Definition at line 580 of file conic_imp.cc.
| int ConicArcImp::numberOfProperties | ( | ) | const [virtual] |
Reimplemented from ConicImp.
Definition at line 526 of file conic_imp.cc.
| const QByteArrayList ConicArcImp::properties | ( | ) | const [virtual] |
Reimplemented from ConicImp.
Definition at line 531 of file conic_imp.cc.
| const QByteArrayList ConicArcImp::propertiesInternalNames | ( | ) | const [virtual] |
Reimplemented from ConicImp.
Definition at line 541 of file conic_imp.cc.
| ObjectImp * ConicArcImp::property | ( | int | which, | |
| const KigDocument & | w | |||
| ) | const [virtual] |
Reimplemented from ConicImp.
Definition at line 565 of file conic_imp.cc.
| Coordinate ConicArcImp::secondEndPoint | ( | ) | const |
Return the end point of this arc.
Definition at line 601 of file conic_imp.cc.
| void ConicArcImp::setAngle | ( | double | a | ) | [inline] |
Set the dimension in radians of this arc.
Definition at line 219 of file conic_imp.h.
| void ConicArcImp::setStartAngle | ( | double | sa | ) | [inline] |
Set the start angle in radians of this arc.
Definition at line 215 of file conic_imp.h.
| const ObjectImpType * ConicArcImp::stype | ( | ) | [static] |
Returns the ObjectImpType representing the ConicImp type.
Reimplemented from ConicImp.
Definition at line 606 of file conic_imp.cc.
| ObjectImp * ConicArcImp::transform | ( | const Transformation & | t | ) | const [virtual] |
Return this ObjectImp, transformed by the transformation t.
Reimplemented from ConicImp.
Definition at line 482 of file conic_imp.cc.
| const ObjectImpType * ConicArcImp::type | ( | ) | const [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:
std::string typename = object.type()->internalName();
Reimplemented from ConicImp.
Definition at line 623 of file conic_imp.cc.
The documentation for this class was generated from the following files:
KDE 4.5 API Reference