kig
#include <object_constructor.h>
Public Member Functions | |
MultiObjectTypeConstructor (const ArgsParserObjectType *t, const char *descname, const char *desc, const char *iconfile, const std::vector< int > ¶ms) | |
MultiObjectTypeConstructor (const ArgsParserObjectType *t, const char *descname, const char *desc, const char *iconfile, int a, int b, int c=-999, int d=-999) | |
~MultiObjectTypeConstructor () | |
std::vector< ObjectHolder * > | build (const std::vector< ObjectCalcer * > &os, KigDocument &d, KigWidget &w) const |
void | drawprelim (const ObjectDrawer &drawer, KigPainter &p, const std::vector< ObjectCalcer * > &parents, const KigDocument &) const |
bool | isTransform () const |
void | plug (KigPart *doc, KigGUIAction *kact) |
Public Member Functions inherited from StandardConstructorBase | |
StandardConstructorBase (const char *descname, const char *desc, const char *iconfile, const ArgsParser &parser) | |
virtual | ~StandardConstructorBase () |
const QString | description () const |
const QString | descriptiveName () const |
void | handleArgs (const std::vector< ObjectCalcer * > &os, KigPart &d, KigWidget &v) const |
void | handlePrelim (KigPainter &p, const std::vector< ObjectCalcer * > &sel, const KigDocument &d, const KigWidget &v) const |
const QByteArray | iconFileName (const bool canBeNull=false) const |
bool | isAlreadySelectedOK (const std::vector< ObjectCalcer * > &os, const uint &) const |
QString | selectStatement (const std::vector< ObjectCalcer * > &sel, const KigDocument &d, const KigWidget &w) const |
QString | useText (const ObjectCalcer &o, const std::vector< ObjectCalcer * > &sel, const KigDocument &d, const KigWidget &v) const |
virtual int | wantArgs (const std::vector< ObjectCalcer * > &os, const KigDocument &d, const KigWidget &v) const |
Public Member Functions inherited from ObjectConstructor | |
virtual | ~ObjectConstructor () |
virtual BaseConstructMode * | constructMode (KigPart &doc) |
virtual bool | isIntersection () const |
virtual bool | isTest () const |
Detailed Description
This class is the equivalent of SimpleObjectTypeConstructor for object types that are constructed in groups of more than one.
For example, the intersection of a circle and line in general produces two points, in general. Internally, we differentiate betweem them by passing them a parameter of ( in this case ) 1 or -1. There are still other object types that work the same, and they all require this sort of parameter. E.g. CubicLineIntersectionType takes a parameter between 1 and 3. This class knows about that, and constructs the objects along this scheme..
Definition at line 251 of file object_constructor.h.
Constructor & Destructor Documentation
MultiObjectTypeConstructor::MultiObjectTypeConstructor | ( | const ArgsParserObjectType * | t, |
const char * | descname, | ||
const char * | desc, | ||
const char * | iconfile, | ||
const std::vector< int > & | params | ||
) |
Definition at line 154 of file object_constructor.cc.
MultiObjectTypeConstructor::MultiObjectTypeConstructor | ( | const ArgsParserObjectType * | t, |
const char * | descname, | ||
const char * | desc, | ||
const char * | iconfile, | ||
int | a, | ||
int | b, | ||
int | c = -999 , |
||
int | d = -999 |
||
) |
Definition at line 164 of file object_constructor.cc.
MultiObjectTypeConstructor::~MultiObjectTypeConstructor | ( | ) |
Definition at line 178 of file object_constructor.cc.
Member Function Documentation
|
virtual |
Implements StandardConstructorBase.
Definition at line 201 of file object_constructor.cc.
|
virtual |
Implements StandardConstructorBase.
Definition at line 182 of file object_constructor.cc.
|
virtual |
Implements ObjectConstructor.
Definition at line 508 of file object_constructor.cc.
|
virtual |
Implements ObjectConstructor.
Definition at line 467 of file object_constructor.cc.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:12:06 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.