kig
ObjectFactory Class Reference
#include <object_factory.h>
Detailed Description
Definition at line 23 of file object_factory.h.
Member Function Documentation
| const ObjectFactory * ObjectFactory::instance | ( | ) | [static] |
Definition at line 86 of file object_factory.cc.
| ObjectHolder * ObjectFactory::fixedPoint | ( | const Coordinate & | c | ) | const |
this returns a fixed point.
Note that the returned object is not added to the document.
Definition at line 40 of file object_factory.cc.
| ObjectTypeCalcer * ObjectFactory::fixedPointCalcer | ( | const Coordinate & | c | ) | const |
Definition at line 46 of file object_factory.cc.
| ObjectHolder * ObjectFactory::numericValue | ( | const double | value, | |
| const Coordinate & | loc, | |||
| const KigDocument & | doc | |||
| ) | const |
this returns a numeric label with the value value at the position loc .
Note that the returned object is not added to the document but calced already.
Definition at line 55 of file object_factory.cc.
| ObjectTypeCalcer * ObjectFactory::numericValueCalcer | ( | const double | value, | |
| const Coordinate & | loc, | |||
| const KigDocument & | doc | |||
| ) | const |
Definition at line 61 of file object_factory.cc.
| ObjectTypeCalcer * ObjectFactory::cursorPointCalcer | ( | const Coordinate & | c | ) | const |
this returns a CursorPointType; this is used during special constructions (e.g.
regular polygons) where the constructor wants to use the cursor position without actually generating an object depending on a new point there.
Definition at line 77 of file object_factory.cc.
| ObjectTypeCalcer * ObjectFactory::relativePointCalcer | ( | ObjectCalcer * | o, | |
| const Coordinate & | loc | |||
| ) | const |
this returns a relative point (to an object).
Note that the returned object is not added to the document.
Definition at line 120 of file object_factory.cc.
| ObjectHolder * ObjectFactory::constrainedPoint | ( | ObjectCalcer * | curve, | |
| double | param | |||
| ) | const |
this returns a constrained point.
Note that the returned object is not added to the document.
Definition at line 151 of file object_factory.cc.
| ObjectTypeCalcer * ObjectFactory::constrainedPointCalcer | ( | ObjectCalcer * | curve, | |
| double | param | |||
| ) | const |
Definition at line 141 of file object_factory.cc.
| ObjectTypeCalcer * ObjectFactory::constrainedPointCalcer | ( | ObjectCalcer * | curve, | |
| const Coordinate & | c, | |||
| const KigDocument & | d | |||
| ) | const |
Definition at line 157 of file object_factory.cc.
| ObjectHolder * ObjectFactory::constrainedPoint | ( | ObjectCalcer * | curve, | |
| const Coordinate & | c, | |||
| const KigDocument & | d | |||
| ) | const |
Definition at line 165 of file object_factory.cc.
| ObjectTypeCalcer * ObjectFactory::sensiblePointCalcer | ( | const Coordinate & | c, | |
| const KigDocument & | d, | |||
| const KigWidget & | w | |||
| ) | const |
this returns a "sensible point".
By a "sensible point", I mean a point that would be about what the user expects when he asks for a point at point c . This is a constrained point if c is on a curve, and otherwise a fixed point. I might add the possibility for an intersection point sometime. Note that the returned object is not added to the document.
Definition at line 92 of file object_factory.cc.
| ObjectHolder * ObjectFactory::sensiblePoint | ( | const Coordinate & | c, | |
| const KigDocument & | d, | |||
| const KigWidget & | w | |||
| ) | const |
Definition at line 114 of file object_factory.cc.
| void ObjectFactory::redefinePoint | ( | ObjectTypeCalcer * | point, | |
| const Coordinate & | c, | |||
| KigDocument & | d, | |||
| const KigWidget & | w | |||
| ) | const |
set point to what sensiblePoint would have returned.
Definition at line 313 of file object_factory.cc.
| ObjectTypeCalcer * ObjectFactory::locusCalcer | ( | ObjectCalcer * | a, | |
| ObjectCalcer * | b | |||
| ) | const |
return a locus, defined by the two points ( one constrained, and one following ) a and b .
a should be the constrained point, and thus, it has to be of type ObjectTypeCalcer where a->type() is of type ConstrainedPointType. The semantics of LocusType are a bit weird ( but I believe correct :) ), so this function takes care of the complication there.
Definition at line 171 of file object_factory.cc.
| ObjectHolder * ObjectFactory::locus | ( | ObjectCalcer * | a, | |
| ObjectCalcer * | b | |||
| ) | const |
Definition at line 197 of file object_factory.cc.
| ObjectHolder * ObjectFactory::label | ( | const QString & | s, | |
| const Coordinate & | loc, | |||
| bool | needframe, | |||
| const std::vector< ObjectCalcer * > & | parents, | |||
| const KigDocument & | doc | |||
| ) | const |
returns a label with text s at point c .
. It ( and its parents ) is calced already.
Definition at line 202 of file object_factory.cc.
| ObjectTypeCalcer * ObjectFactory::labelCalcer | ( | const QString & | s, | |
| const Coordinate & | loc, | |||
| bool | needframe, | |||
| const std::vector< ObjectCalcer * > & | parents, | |||
| const KigDocument & | doc | |||
| ) | const |
Definition at line 210 of file object_factory.cc.
| ObjectTypeCalcer * ObjectFactory::attachedLabelCalcer | ( | const QString & | s, | |
| ObjectCalcer * | locationparent, | |||
| const Coordinate & | loc, | |||
| bool | needframe, | |||
| const std::vector< ObjectCalcer * > & | parents, | |||
| const KigDocument & | doc | |||
| ) | const |
this one does the same as the above, only that the new label is attached to locationparent if it is non-null.
Definition at line 218 of file object_factory.cc.
| ObjectCalcer * ObjectFactory::getAttachPoint | ( | ObjectCalcer * | locationparent, | |
| const Coordinate & | loc, | |||
| const KigDocument & | doc | |||
| ) | const |
this has been added because it comes handy when redefining a text label, we move here all the code for getting an attach point from the method above
Definition at line 237 of file object_factory.cc.
| ObjectHolder * ObjectFactory::attachedLabel | ( | const QString & | s, | |
| ObjectCalcer * | locationparent, | |||
| const Coordinate & | loc, | |||
| bool | needframe, | |||
| const std::vector< ObjectCalcer * > & | parents, | |||
| const KigDocument & | doc | |||
| ) | const |
Definition at line 290 of file object_factory.cc.
| ObjectPropertyCalcer * ObjectFactory::propertyObjectCalcer | ( | ObjectCalcer * | o, | |
| const char * | p | |||
| ) | const |
returns a property object for the property p of object o .
- Note:
oshould have already been calc'd, or this will fail and return 0. The returned object also needs to be calced after this.
Definition at line 299 of file object_factory.cc.
| ObjectHolder * ObjectFactory::propertyObject | ( | ObjectCalcer * | o, | |
| const char * | p | |||
| ) | const |
Definition at line 307 of file object_factory.cc.
The documentation for this class was generated from the following files:
KDE 4.0 API Reference