kig
PointImp Class Reference
#include <point_imp.h>

Detailed Description
An ObjectImp representing a point.Definition at line 27 of file point_imp.h.
Public Types | |
| typedef ObjectImp | Parent |
Public Member Functions | |
| PointImp (const Coordinate &c) | |
| ~PointImp () | |
| Rect | surroundingRect () const |
| Coordinate | attachPoint () const |
| const Coordinate & | coordinate () const |
| void | setCoordinate (const Coordinate &c) |
| void | draw (KigPainter &p) const |
| bool | contains (const Coordinate &p, int width, const KigWidget &) const |
| 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 |
| ObjectImp * | transform (const Transformation &) const |
| PointImp * | copy () const |
| const ObjectImpType * | type () const |
| void | visit (ObjectImpVisitor *vtor) const |
| void | fillInNextEscape (QString &s, const KigDocument &) const |
| bool | canFillInNextEscape () const |
| bool | equals (const ObjectImp &rhs) const |
Static Public Member Functions | |
| static const ObjectImpType * | stype () |
Member Typedef Documentation
| typedef ObjectImp PointImp::Parent |
Definition at line 32 of file point_imp.h.
Constructor & Destructor Documentation
| PointImp::PointImp | ( | const Coordinate & | c | ) |
| PointImp::~PointImp | ( | ) |
Definition at line 117 of file point_imp.cc.
Member Function Documentation
| const ObjectImpType * PointImp::stype | ( | ) | [static] |
Returns the ObjectImpType representing PointImp's.
Reimplemented from ObjectImp.
Reimplemented in BogusPointImp.
Definition at line 159 of file point_imp.cc.
| Rect PointImp::surroundingRect | ( | ) | const [virtual] |
| Coordinate PointImp::attachPoint | ( | ) | const [virtual] |
Returns a reference point where to attach labels; when this returns an invalidCoord then the attachment is either not done at all, or done in a specific way (like for curves, or for points) The treatment of points could also take advantage of this attachment mechanism.
If this method returns a valid Coordinate, then this is interpreted as a pivot point for the label, which can still be moved relative to that point, but follows the object when the object changes. In practice a new RelativePointType is created (position of the string), this type in turn depends on the object (to get its attachPoint) and two DoubleImp that are interpreted as relative displacement (x and y)
Implements ObjectImp.
Definition at line 34 of file point_imp.cc.
| const Coordinate& PointImp::coordinate | ( | ) | const [inline] |
| void PointImp::setCoordinate | ( | const Coordinate & | c | ) |
| void PointImp::draw | ( | KigPainter & | p | ) | const [virtual] |
| bool PointImp::contains | ( | const Coordinate & | p, | |
| int | width, | |||
| const KigWidget & | w | |||
| ) | const [virtual] |
| int PointImp::numberOfProperties | ( | ) | const [virtual] |
| const QByteArrayList PointImp::properties | ( | ) | const [virtual] |
| const QByteArrayList PointImp::propertiesInternalNames | ( | ) | const [virtual] |
| ObjectImp * PointImp::property | ( | int | which, | |
| const KigDocument & | d | |||
| ) | const [virtual] |
| const char * PointImp::iconForProperty | ( | int | which | ) | const [virtual] |
| const ObjectImpType * PointImp::impRequirementForProperty | ( | int | which | ) | const [virtual] |
| bool PointImp::isPropertyDefinedOnOrThroughThisImp | ( | int | which | ) | const [virtual] |
| ObjectImp * PointImp::transform | ( | const Transformation & | t | ) | const [virtual] |
Return this ObjectImp, transformed by the transformation t.
Implements ObjectImp.
Definition at line 126 of file point_imp.cc.
| PointImp * PointImp::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 ObjectImp.
Definition at line 121 of file point_imp.cc.
| const ObjectImpType * PointImp::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.
Reimplemented in BogusPointImp.
Definition at line 176 of file point_imp.cc.
| void PointImp::visit | ( | ObjectImpVisitor * | vtor | ) | const [virtual] |
| void PointImp::fillInNextEscape | ( | QString & | s, | |
| const KigDocument & | doc | |||
| ) | const [virtual] |
| bool PointImp::canFillInNextEscape | ( | ) | const [virtual] |
| bool PointImp::equals | ( | const ObjectImp & | rhs | ) | const [virtual] |
The documentation for this class was generated from the following files:
KDE 4.0 API Reference