kig
ArcImp Class Reference
#include <other_imp.h>

Detailed Description
An ObjectImp representing an arc.Definition at line 163 of file other_imp.h.
Public Types | |
| typedef CurveImp | Parent |
Public Member Functions | |
| double | angle () const |
| ArcImp (const Coordinate ¢er, const double radius, const double startangle, const double angle) | |
| const Coordinate | center () const |
| bool | contains (const Coordinate &p, int width, const KigWidget &w) const |
| bool | containsPoint (const Coordinate &p, const KigDocument &doc) const |
| ArcImp * | copy () const |
| void | draw (KigPainter &p) const |
| bool | equals (const ObjectImp &rhs) const |
| Coordinate | firstEndPoint () const |
| double | getParam (const Coordinate &c, const KigDocument &d) const |
| const Coordinate | getPoint (double p, const KigDocument &d) const |
| const char * | iconForProperty (int which) const |
| const ObjectImpType * | impRequirementForProperty (int which) const |
| bool | inRect (const Rect &r, int width, const KigWidget &si) const |
| bool | internalContainsPoint (const Coordinate &p, double threshold) 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 | radius () const |
| Coordinate | secondEndPoint () const |
| double | sectorSurface () const |
| double | startAngle () const |
| Rect | surroundingRect () const |
| ObjectImp * | transform (const Transformation &t) const |
| const ObjectImpType * | type () const |
| bool | valid () const |
| void | visit (ObjectImpVisitor *vtor) const |
| ~ArcImp () | |
Static Public Member Functions | |
| static const ObjectImpType * | stype () |
Member Typedef Documentation
| typedef CurveImp ArcImp::Parent |
Constructor & Destructor Documentation
| ArcImp::ArcImp | ( | const Coordinate & | center, | |
| const double | radius, | |||
| const double | startangle, | |||
| const double | angle | |||
| ) |
Construct an Arc with a given center, radius, start angle and dimension (both in radians).
Definition at line 292 of file other_imp.cc.
| ArcImp::~ArcImp | ( | ) |
Definition at line 305 of file other_imp.cc.
Member Function Documentation
| double ArcImp::angle | ( | ) | const |
| const Coordinate ArcImp::center | ( | ) | const |
| bool ArcImp::contains | ( | const Coordinate & | p, | |
| int | width, | |||
| const KigWidget & | w | |||
| ) | const [virtual] |
| bool ArcImp::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.
Implements CurveImp.
Definition at line 633 of file other_imp.cc.
| ArcImp * ArcImp::copy | ( | ) | const [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 309 of file other_imp.cc.
| void ArcImp::draw | ( | KigPainter & | p | ) | const [virtual] |
| bool ArcImp::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 546 of file other_imp.cc.
| Coordinate ArcImp::firstEndPoint | ( | ) | const |
| double ArcImp::getParam | ( | const Coordinate & | c, | |
| const KigDocument & | d | |||
| ) | const [virtual] |
| const Coordinate ArcImp::getPoint | ( | double | p, | |
| const KigDocument & | d | |||
| ) | const [virtual] |
| const char * ArcImp::iconForProperty | ( | int | which | ) | const [virtual] |
| const ObjectImpType * ArcImp::impRequirementForProperty | ( | int | which | ) | const [virtual] |
| bool ArcImp::internalContainsPoint | ( | const Coordinate & | p, | |
| double | threshold | |||
| ) | const |
Definition at line 638 of file other_imp.cc.
| bool ArcImp::isPropertyDefinedOnOrThroughThisImp | ( | int | which | ) | const [virtual] |
| int ArcImp::numberOfProperties | ( | ) | const [virtual] |
| const QByteArrayList ArcImp::properties | ( | ) | const [virtual] |
| const QByteArrayList ArcImp::propertiesInternalNames | ( | ) | const [virtual] |
| ObjectImp * ArcImp::property | ( | int | which, | |
| const KigDocument & | d | |||
| ) | const [virtual] |
| double ArcImp::radius | ( | ) | const |
| Coordinate ArcImp::secondEndPoint | ( | ) | const |
| double ArcImp::sectorSurface | ( | ) | const |
| double ArcImp::startAngle | ( | ) | const |
| const ObjectImpType * ArcImp::stype | ( | ) | [static] |
Returns the ObjectImpType representing the ArcImp type.
Reimplemented from CurveImp.
Definition at line 601 of file other_imp.cc.
| Rect ArcImp::surroundingRect | ( | ) | const [virtual] |
| ObjectImp * ArcImp::transform | ( | const Transformation & | t | ) | const [virtual] |
Return this ObjectImp, transformed by the transformation t.
Implements ObjectImp.
Definition at line 314 of file other_imp.cc.
| const ObjectImpType * ArcImp::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();
Implements ObjectImp.
Definition at line 628 of file other_imp.cc.
| bool ArcImp::valid | ( | ) | const |
Returns true if this is a valid ObjectImp.
If you want to return an invalid ObjectImp, you should return an InvalidImp instance.
Reimplemented from ObjectImp.
Definition at line 364 of file other_imp.cc.
| void ArcImp::visit | ( | ObjectImpVisitor * | vtor | ) | const [virtual] |
The documentation for this class was generated from the following files:
KDE 4.2 API Reference