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 | |
| ArcImp (const Coordinate ¢er, const double radius, const double startangle, const double angle) | |
| ~ArcImp () | |
| ArcImp * | copy () const |
| ObjectImp * | transform (const Transformation &t) const |
| void | draw (KigPainter &p) const |
| bool | contains (const Coordinate &p, int width, const KigWidget &w) const |
| bool | inRect (const Rect &r, int width, const KigWidget &si) const |
| Rect | surroundingRect () const |
| bool | valid () 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 |
| const ObjectImpType * | type () const |
| void | visit (ObjectImpVisitor *vtor) const |
| double | getParam (const Coordinate &c, const KigDocument &d) const |
| const Coordinate | getPoint (double p, const KigDocument &d) const |
| const Coordinate | center () const |
| double | radius () const |
| double | startAngle () const |
| double | angle () const |
| Coordinate | firstEndPoint () const |
| Coordinate | secondEndPoint () const |
| double | sectorSurface () const |
| bool | equals (const ObjectImp &rhs) const |
| bool | containsPoint (const Coordinate &p, const KigDocument &doc) const |
| bool | internalContainsPoint (const Coordinate &p, double threshold) const |
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 290 of file other_imp.cc.
| ArcImp::~ArcImp | ( | ) |
Definition at line 303 of file other_imp.cc.
Member Function Documentation
| const ObjectImpType * ArcImp::stype | ( | ) | [static] |
Returns the ObjectImpType representing the ArcImp type.
Reimplemented from CurveImp.
Definition at line 599 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 307 of file other_imp.cc.
| ObjectImp * ArcImp::transform | ( | const Transformation & | t | ) | const [virtual] |
Return this ObjectImp, transformed by the transformation t.
Implements ObjectImp.
Definition at line 312 of file other_imp.cc.
| void ArcImp::draw | ( | KigPainter & | p | ) | const [virtual] |
| bool ArcImp::contains | ( | const Coordinate & | p, | |
| int | width, | |||
| const KigWidget & | w | |||
| ) | const [virtual] |
| Rect ArcImp::surroundingRect | ( | ) | const [virtual] |
| 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 362 of file other_imp.cc.
| 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] |
| const char * ArcImp::iconForProperty | ( | int | which | ) | const [virtual] |
| const ObjectImpType * ArcImp::impRequirementForProperty | ( | int | which | ) | const [virtual] |
| bool ArcImp::isPropertyDefinedOnOrThroughThisImp | ( | int | which | ) | const [virtual] |
| 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 626 of file other_imp.cc.
| void ArcImp::visit | ( | ObjectImpVisitor * | vtor | ) | const [virtual] |
| double ArcImp::getParam | ( | const Coordinate & | c, | |
| const KigDocument & | d | |||
| ) | const [virtual] |
| const Coordinate ArcImp::getPoint | ( | double | p, | |
| const KigDocument & | d | |||
| ) | const [virtual] |
| const Coordinate ArcImp::center | ( | ) | const |
| double ArcImp::radius | ( | ) | const |
| double ArcImp::startAngle | ( | ) | const |
| double ArcImp::angle | ( | ) | const |
| Coordinate ArcImp::firstEndPoint | ( | ) | const |
| Coordinate ArcImp::secondEndPoint | ( | ) | const |
| double ArcImp::sectorSurface | ( | ) | const |
| bool ArcImp::equals | ( | const ObjectImp & | rhs | ) | 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 631 of file other_imp.cc.
| bool ArcImp::internalContainsPoint | ( | const Coordinate & | p, | |
| double | threshold | |||
| ) | const |
Definition at line 636 of file other_imp.cc.
The documentation for this class was generated from the following files:
KDE 4.0 API Reference