kig
special_constructors.cc
Go to the documentation of this file.
299 void drawprelim( const ObjectDrawer& drawer, KigPainter& p, const std::vector<ObjectCalcer*>& parents,
301 std::vector<ObjectHolder*> build( const std::vector<ObjectCalcer*>& os, KigDocument& d, KigWidget& w ) const;
340 const ObjectDrawer& drawer, KigPainter& p, const std::vector<ObjectCalcer*>& parents, const KigDocument& doc ) const
363 std::vector<ObjectHolder*> ConicRadicalConstructor::build( const std::vector<ObjectCalcer*>& os, KigDocument&, KigWidget& ) const
385 I18N_NOOP( "Select the moving point, which will be moved around while drawing the locus..." ), false },
387 I18N_NOOP( "Select the following point, whose locations the locus will be drawn through..." ), true }
401 void LocusConstructor::drawprelim( const ObjectDrawer& drawer, KigPainter& p, const std::vector<ObjectCalcer*>& parents,
439 static_cast<ObjectTypeCalcer*>( os.front() )->type()->inherits( ObjectType::ID_ConstrainedPointType ) )
445 static_cast<ObjectTypeCalcer*>( os.back() )->type()->inherits( ObjectType::ID_ConstrainedPointType ) )
453 std::vector<ObjectHolder*> LocusConstructor::build( const std::vector<ObjectCalcer*>& parents, KigDocument&, KigWidget& ) const
477 static_cast<const ObjectTypeCalcer&>( o ).type()->inherits( ObjectType::ID_ConstrainedPointType ) &&
479 !static_cast<const ObjectTypeCalcer*>( os[0] )->type()->inherits( ObjectType::ID_ConstrainedPointType ) )
571 std::vector<ObjectHolder*> PointSequenceConstructor::build( const std::vector<ObjectCalcer*>& parents, KigDocument&, KigWidget& ) const
632 QString PolygonBNPTypeConstructor::useText( const ObjectCalcer&, const std::vector<ObjectCalcer*>& os,
647 void PolygonBNPTypeConstructor::drawprelim( const ObjectDrawer& drawer, KigPainter& p, const std::vector<ObjectCalcer*>& parents,
711 QString OpenPolygonTypeConstructor::useText( const ObjectCalcer&, const std::vector<ObjectCalcer*>& os,
726 void OpenPolygonTypeConstructor::drawprelim( const ObjectDrawer& drawer, KigPainter& p, const std::vector<ObjectCalcer*>& parents,
773 void PolygonVertexTypeConstructor::drawprelim( const ObjectDrawer& drawer, KigPainter& p, const std::vector<ObjectCalcer*>& parents,
778 const FilledPolygonImp* polygon = dynamic_cast<const FilledPolygonImp*>( parents.front()->imp() );
789 std::vector<ObjectHolder*> PolygonVertexTypeConstructor::build( const std::vector<ObjectCalcer*>& parents, KigDocument&, KigWidget& ) const
793 const FilledPolygonImp* polygon = dynamic_cast<const FilledPolygonImp*>( parents.front()->imp() );
840 void PolygonSideTypeConstructor::drawprelim( const ObjectDrawer& drawer, KigPainter& p, const std::vector<ObjectCalcer*>& parents,
845 const FilledPolygonImp* polygon = dynamic_cast<const FilledPolygonImp*>( parents.front()->imp() );
857 std::vector<ObjectHolder*> PolygonSideTypeConstructor::build( const std::vector<ObjectCalcer*>& parents, KigDocument&, KigWidget& ) const
861 const FilledPolygonImp* polygon = dynamic_cast<const FilledPolygonImp*>( parents.front()->imp() );
1030 std::vector<ObjectHolder*> PolygonBCVConstructor::build( const std::vector<ObjectCalcer*>& parents, KigDocument&, KigWidget& ) const
1058 QString PolygonBCVConstructor::useText( const ObjectCalcer&, const std::vector<ObjectCalcer*>& os,
1115 void PolygonBCVConstructor::drawprelim( const ObjectDrawer& drawer, KigPainter& p, const std::vector<ObjectCalcer*>& parents,
1223 QString BezierCurveTypeConstructor::useText( const ObjectCalcer&, const std::vector<ObjectCalcer*>& os,
1227 return i18n("... with this control point (click again on the last control point to terminate construction)");
1309 std::vector<ObjectHolder*> RationalBezierCurveTypeConstructor::build( const std::vector<ObjectCalcer*>& parents, KigDocument&, KigWidget& ) const
1345 return i18n("... with this control point (click again on the last control point or weight to terminate construction)");
1453 void ConicConicIntersectionConstructor::drawprelim( const ObjectDrawer& drawer, KigPainter& p, const std::vector<ObjectCalcer*>& parents,
1545 QString ConicRadicalConstructor::useText( const ObjectCalcer& o, const std::vector<ObjectCalcer*>&,
1567 I18N_NOOP( "The unique affinity that maps three points (or a triangle) onto three other points (or a triangle)" ),
1588 bool GenericAffinityConstructor::isAlreadySelectedOK(const std::vector< ObjectCalcer* >& , const uint& ) const
1596 I18N_NOOP( "The unique projective transformation that maps four points (or a quadrilateral) onto four other points (or a quadrilateral)" ),
1617 bool GenericProjectivityConstructor::isAlreadySelectedOK(const std::vector< ObjectCalcer* >& , const uint& ) const
2065 I18N_NOOP( "Select the first of the points of which you want to construct the midpoint..." ), false },
2129 void TestConstructor::drawprelim( const ObjectDrawer&, KigPainter&, const std::vector<ObjectCalcer*>&,
2136 std::vector<ObjectHolder*> TestConstructor::build( const std::vector<ObjectCalcer*>&, KigDocument&,
const QByteArray iconFileName(const bool canBeNull=false) const
Definition: special_constructors.cc:1280
std::vector< ObjectHolder * > build(const std::vector< ObjectCalcer * > &os, KigDocument &d, KigWidget &w) const
Definition: special_constructors.cc:453
static const CPolygonalLineIntersectionType * instance()
Definition: polygon_type.cc:677
bool coincidentPoints(const ObjectImp *p1, const ObjectImp *p2)
Definition: special_constructors.cc:132
void handleArgs(const std::vector< ObjectCalcer * > &os, KigPart &d, KigWidget &v) const
do something fun with os .
Definition: special_constructors.cc:1763
void handlePrelim(KigPainter &p, const std::vector< ObjectCalcer * > &sel, const KigDocument &d, const KigWidget &v) const
show a preliminary version of what you would do when handleArgs would be called.
Definition: special_constructors.cc:547
This class is a collection of some other ObjectConstructors, that makes them appear to the user as a ...
Definition: object_constructor.h:285
virtual void plug(KigPart *doc, KigGUIAction *kact)=0
LocusImp is an imp that consists of a copy of the curveimp that the moving point moves over...
Definition: locus_imp.h:57
bool isAlreadySelectedOK(const std::vector< ObjectCalcer * > &os, const uint &) const
the following function is called in case of duplication of arguments and returns true if this is acce...
Definition: special_constructors.cc:610
void plug(KigPart *doc, KigGUIAction *kact)
Definition: special_constructors.cc:1869
bool inherits(const ObjectImpType *t) const
Returns true if this ObjectImp inherits the ObjectImp type represented by t.
Definition: object_imp.cc:279
void drawprelim(const ObjectDrawer &drawer, KigPainter &p, const std::vector< ObjectCalcer * > &parents, const KigDocument &) const
Definition: special_constructors.cc:1238
std::vector< ObjectHolder * > build(const std::vector< ObjectCalcer * > &os, KigDocument &d, KigWidget &w) const
Definition: special_constructors.cc:571
static const RationalBezierCurveType * instance()
Definition: bezier_type.cc:600
virtual bool isAlreadySelectedOK(const std::vector< ObjectCalcer * > &os, const uint &) const
the following function is called in case of duplication of arguments and returns true if this is acce...
Definition: special_constructors.cc:1588
virtual int wantArgs(const std::vector< ObjectCalcer * > &os, const KigDocument &d, const KigWidget &v) const
can this constructor do something useful with os ? return ArgsParser::Complete, Valid or NotGood ...
Definition: object_constructor.cc:77
QString useText(const ObjectCalcer &o, const std::vector< ObjectCalcer * > &sel, const KigDocument &d, const KigWidget &v) const
return a string describing what you would use o for if it were selected...
Definition: special_constructors.cc:2008
int wantArgs(const std::vector< ObjectCalcer * > &os, const KigDocument &d, const KigWidget &v) const
can this constructor do something useful with os ? return ArgsParser::Complete, Valid or NotGood ...
Definition: special_constructors.cc:1718
Definition: object_hierarchy.h:30
void drawprelim(const ObjectDrawer &drawer, KigPainter &p, const std::vector< ObjectCalcer * > &parents, const KigDocument &) const
Definition: special_constructors.cc:840
int wantArgs(const std::vector< ObjectCalcer * > &os, const KigDocument &d, const KigWidget &v) const
can this constructor do something useful with os ? return ArgsParser::Complete, Valid or NotGood ...
Definition: special_constructors.cc:617
Definition: construct_mode.h:58
std::vector< ObjectHolder * > build(const std::vector< ObjectCalcer * > &os, KigDocument &d, KigWidget &w) const
Definition: special_constructors.cc:789
void handlePrelim(KigPainter &p, const std::vector< ObjectCalcer * > &sel, const KigDocument &d, const KigWidget &v) const
show a preliminary version of what you would do when handleArgs would be called.
Definition: special_constructors.cc:1777
void drawprelim(const ObjectDrawer &drawer, KigPainter &p, const std::vector< ObjectCalcer * > &parents, const KigDocument &) const
Definition: special_constructors.cc:1115
This is a convenience subclass of ObjectType that a type should inherit from if its parents can be sp...
Definition: object_type.h:113
A standard implementation of StandardConstructorBase for simple types.
Definition: object_constructor.h:188
const QByteArray iconFileName(const bool canBeNull=false) const
Definition: special_constructors.cc:908
void drawprelim(const ObjectDrawer &drawer, KigPainter &p, const std::vector< ObjectCalcer * > &parents, const KigDocument &) const
Definition: special_constructors.cc:773
GenericIntersectionConstructor()
Definition: special_constructors.cc:1913
void drawprelim(const ObjectDrawer &drawer, KigPainter &p, const std::vector< ObjectCalcer * > &parents, const KigDocument &) const
Definition: special_constructors.cc:2129
RationalBezierCurveTypeConstructor()
Definition: special_constructors.cc:1262
std::vector< ObjectCalcer * > removeDuplicatedPoints(std::vector< ObjectCalcer * > points)
Definition: special_constructors.cc:115
int wantArgs(const std::vector< ObjectCalcer * > &os, const KigDocument &d, const KigWidget &v) const
can this constructor do something useful with os ? return ArgsParser::Complete, Valid or NotGood ...
Definition: special_constructors.cc:2164
~GenericProjectivityConstructor()
Definition: special_constructors.cc:1615
This is an ObjectCalcer that keeps an ObjectImp, and never calculates a new one.
Definition: object_calcer.h:232
void handleArgs(const std::vector< ObjectCalcer * > &os, KigPart &d, KigWidget &v) const
do something fun with os .
Definition: special_constructors.cc:533
static const CircleCircleOtherIntersectionType * instance()
Definition: intersection_types.cc:323
PolygonSideTypeConstructor()
Definition: special_constructors.cc:827
static const struct ArgsParser::spec argsspeccci[]
Definition: special_constructors.cc:1905
~BezierCurveTypeConstructor()
Definition: special_constructors.cc:1197
ConicRadicalConstructor()
Definition: special_constructors.cc:323
QString useText(const ObjectCalcer &o, const std::vector< ObjectCalcer * > &sel, const KigDocument &d, const KigWidget &v) const
return a string describing what you would use o for if it were selected...
Definition: special_constructors.cc:473
void plug(KigPart *doc, KigGUIAction *kact)
Definition: special_constructors.cc:277
void plug(KigPart *doc, KigGUIAction *kact)
Definition: special_constructors.cc:876
Definition: text_imp.h:26
QString selectStatement(const std::vector< ObjectCalcer * > &sel, const KigDocument &d, const KigWidget &w) const
return a string describing what argument you want next, if the given selection of objects were select...
Definition: special_constructors.cc:1833
static const CubicLineOtherIntersectionType * instance()
Definition: intersection_types.cc:173
bool isTransform() const
Definition: special_constructors.cc:2113
Definition: polygon_type.h:190
static const ArgsParser::spec argsspecMidPointOfTwoPoints[]
Definition: special_constructors.cc:2062
virtual bool isAlreadySelectedOK(const std::vector< ObjectCalcer * > &os, const uint &) const
the following function is called in case of duplication of arguments and returns true if this is acce...
Definition: special_constructors.cc:1617
const QString description() const
Definition: special_constructors.cc:903
bool isAlreadySelectedOK(const std::vector< ObjectCalcer * > &os, const uint &) const
the following function is called in case of duplication of arguments and returns true if this is acce...
Definition: special_constructors.cc:1706
std::vector< ObjectHolder * > build(const std::vector< ObjectCalcer * > &os, KigDocument &d, KigWidget &w) const
Definition: special_constructors.cc:227
bool inherits(const ObjectImpType *t) const
Does the ObjectImp type represented by this instance inherit the ObjectImp type represented by t ...
Definition: object_imp.cc:224
static const CircleCircleIntersectionType * instance()
Definition: intersection_types.cc:490
void drawprelim(const ObjectDrawer &drawer, KigPainter &p, const std::vector< ObjectCalcer * > &parents, const KigDocument &) const
Definition: special_constructors.cc:93
QString useText(const ObjectCalcer &o, const std::vector< ObjectCalcer * > &sel, const KigDocument &d, const KigWidget &v) const
return a string describing what you would use o for if it were selected...
Definition: special_constructors.cc:632
static const ObjectImpType * stype()
Returns the ObjectImpType representing the RayImp type.
Definition: line_imp.cc:562
virtual std::vector< ObjectHolder * > build(const std::vector< ObjectCalcer * > &os, KigDocument &d, KigWidget &w) const =0
void plug(KigPart *doc, KigGUIAction *kact)
Definition: special_constructors.cc:2109
void draw(const ObjectImp &imp, KigPainter &p, bool selected) const
Draw the object imp on kigpainter p .
Definition: object_drawer.cc:29
Definition: argsparser.h:112
std::vector< ObjectHolder * > build(const std::vector< ObjectCalcer * > &os, KigDocument &d, KigWidget &w) const
Definition: special_constructors.cc:2136
const Coordinate & coordinate() const
Get the coordinate of this PointImp.
Definition: point_imp.h:50
QString useText(const ObjectCalcer &o, const std::vector< ObjectCalcer * > &sel, const KigDocument &d, const KigWidget &v) const
return a string describing what you would use o for if it were selected...
Definition: special_constructors.cc:2222
~GenericAffinityConstructor()
Definition: special_constructors.cc:1586
static const ObjectImpType * stype()
Returns the ObjectImpType representing the IntImp type.
Definition: bogus_imp.cc:278
bool isTransform() const
Definition: special_constructors.cc:1873
This is an ObjectCalcer that uses one of the various ObjectType's to calculate its ObjectImp...
Definition: object_calcer.h:183
const std::vector< Coordinate > points() const
Returns the vector with polygon points.
Definition: polygon_imp.cc:571
static const ObjectImpType * stype()
Returns the ObjectImpType representing the LineImp type.
Definition: line_imp.cc:528
LengthImpType lengthimptypeinstance
~TwoOrOneIntersectionConstructor()
Definition: special_constructors.cc:89
virtual bool isTransform() const =0
bool isAlreadySelectedOK(const std::vector< ObjectCalcer * > &os, const uint &) const
the following function is called in case of duplication of arguments and returns true if this is acce...
Definition: special_constructors.cc:913
virtual ObjectImp * calc(const Args &parents, const KigDocument &d) const =0
int wantArgs(const std::vector< ObjectCalcer * > &os, const KigDocument &d, const KigWidget &v) const
can this constructor do something useful with os ? return ArgsParser::Complete, Valid or NotGood ...
Definition: special_constructors.cc:1293
virtual void drawprelim(const ObjectDrawer &drawer, KigPainter &p, const std::vector< ObjectCalcer * > &parents, const KigDocument &) const =0
PolygonBCVConstructor()
Definition: special_constructors.cc:889
~InversionConstructor()
Definition: special_constructors.cc:1676
The Coordinate class is the basic class representing a 2D location by its x and y components...
Definition: coordinate.h:33
const QString description() const
Definition: special_constructors.cc:1696
Definition: guiaction.h:34
void drawprelim(const ObjectDrawer &drawer, KigPainter &p, const std::vector< ObjectCalcer * > &parents, const KigDocument &) const
Definition: special_constructors.cc:647
QString useText(const ObjectCalcer &o, const std::vector< ObjectCalcer * > &sel, const KigDocument &d, const KigWidget &v) const
return a string describing what you would use o for if it were selected...
Definition: special_constructors.cc:2289
static const ProjectivityB2QuType * instance()
Definition: transform_types.cc:547
This class represents a way to construct a set of objects from a set of other objects.
Definition: object_constructor.h:44
const QByteArray iconFileName(const bool canBeNull=false) const
Definition: special_constructors.cc:1701
MidPointOfTwoPointsConstructor()
Definition: special_constructors.cc:2070
virtual bool isTransform() const
is this object type a transformation type.
Definition: object_type.cc:86
void calc(const KigDocument &doc)
Makes the ObjectCalcer recalculate its ObjectImp from its parents.
Definition: object_calcer.cc:183
~PolygonBNPTypeConstructor()
Definition: special_constructors.cc:606
static const PolygonPolygonIntersectionType * instance()
Definition: polygon_type.cc:845
QString selectStatement(const std::vector< ObjectCalcer * > &sel, const KigDocument &d, const KigWidget &w) const
return a string describing what argument you want next, if the given selection of objects were select...
Definition: special_constructors.cc:1231
const QString descriptiveName() const
Definition: special_constructors.cc:1270
const Coordinate calcConicLineIntersect(const ConicCartesianData &c, const LineData &l, double knownparam, int which)
This function calculates the intersection of a given line ( l ) and a given conic ( c )...
Definition: conic-common.cpp:367
void handlePrelim(KigPainter &p, const std::vector< ObjectCalcer * > &sel, const KigDocument &d, const KigWidget &v) const
show a preliminary version of what you would do when handleArgs would be called.
Definition: special_constructors.cc:1397
static const CircularInversionType * instance()
Definition: inversion_type.cc:56
InversionConstructor()
Definition: special_constructors.cc:1626
~PolygonSideTypeConstructor()
Definition: special_constructors.cc:836
const QString descriptiveName() const
Definition: special_constructors.cc:898
static const LineLineIntersectionType * instance()
Definition: intersection_types.cc:374
bool isTransform() const
Definition: special_constructors.cc:812
bool isAlreadySelectedOK(const std::vector< ObjectCalcer * > &os, const uint &) const
the following function is called in case of duplication of arguments and returns true if this is acce...
Definition: special_constructors.cc:1285
bool isTransform() const
Definition: special_constructors.cc:281
~RationalBezierCurveTypeConstructor()
Definition: special_constructors.cc:1266
void setWidth(int c)
setting this to -1 means to use the default width for the object being drawn.
Definition: kigpainter.cpp:232
void plug(KigPart *doc, KigGUIAction *kact)
Definition: special_constructors.cc:177
An ObjectHolder represents an object as it is known to the document.
Definition: object_holder.h:40
void drawprelim(const ObjectDrawer &drawer, KigPainter &p, const std::vector< ObjectCalcer * > &parents, const KigDocument &) const
Definition: special_constructors.cc:2082
An ObjectCalcer is an object that represents an algorithm for calculating an ObjectImp from other Obj...
Definition: object_calcer.h:66
static const ObjectImpType * stype()
Returns the ObjectImpType representing the PolygonImp type.
Definition: polygon_imp.cc:651
static const PolygonLineIntersectionType * instance()
Definition: polygon_type.cc:532
bool isTransform() const
Definition: special_constructors.cc:880
This class provides wraps ObjectConstructor in a more simple interface for the most common object typ...
Definition: object_constructor.h:133
void plug(KigPart *doc, KigGUIAction *kact)
Definition: special_constructors.cc:808
bool isTransform() const
Definition: special_constructors.cc:492
const QString description() const
Definition: special_constructors.cc:523
virtual void drawprelim(const ObjectDrawer &drawer, KigPainter &p, const std::vector< ObjectCalcer * > &parents, const KigDocument &) const =0
const LineData calcConicRadical(const ConicCartesianData &cequation1, const ConicCartesianData &cequation2, int which, int zeroindex, bool &valid)
This function calculates the radical line of two conics.
Definition: conic-common.cpp:544
std::vector< ObjectHolder * > build(const std::vector< ObjectCalcer * > &os, KigDocument &d, KigWidget &w) const
Definition: special_constructors.cc:857
const QString descriptiveName() const
Definition: special_constructors.cc:1691
QString useText(const ObjectCalcer &o, const std::vector< ObjectCalcer * > &sel, const KigDocument &d, const KigWidget &v) const
return a string describing what you would use o for if it were selected...
Definition: special_constructors.cc:1806
int computeNsides(const Coordinate &c, const Coordinate &v, const Coordinate &cntrl, int &winding) const
Definition: special_constructors.cc:1156
static const OPolygonalLineIntersectionType * instance()
Definition: polygon_type.cc:645
std::vector< ObjectHolder * > build(const std::vector< ObjectCalcer * > &os, KigDocument &d, KigWidget &w) const
Definition: special_constructors.cc:2095
Definition: argsparser.h:112
std::vector< ObjectHolder * > build(const std::vector< ObjectCalcer * > &os, KigDocument &d, KigWidget &w) const
Definition: special_constructors.cc:144
static const ObjectImpType * stype()
Returns the ObjectImpType representing the SegmentImp type.
Definition: line_imp.cc:545
QString selectStatement(const std::vector< ObjectCalcer * > &sel, const KigDocument &d, const KigWidget &w) const
return a string describing what argument you want next, if the given selection of objects were select...
Definition: special_constructors.cc:640
static const CocCurveType * instance()
Definition: centerofcurvature_type.cc:223
static const LineCubicIntersectionType * instance()
Definition: intersection_types.cc:414
This is an ObjectCalcer that has a single parent, and gets a certain property from it in its calc() m...
Definition: object_calcer.h:276
QString selectStatement(const std::vector< ObjectCalcer * > &sel, const KigDocument &d, const KigWidget &w) const
return a string describing what argument you want next, if the given selection of objects were select...
Definition: special_constructors.cc:1093
Definition: argsparser.h:113
static const ObjectImpType * stype()
Returns the ObjectImpType representing the ArcImp type.
Definition: other_imp.cc:629
This class is meant to take care of checking the types of the parents to ObjectCalcer's, and to put them in the correct order.
Definition: argsparser.h:106
~ThreeTwoOneIntersectionConstructor()
Definition: special_constructors.cc:201
void plug(KigPart *doc, KigGUIAction *kact)
Definition: special_constructors.cc:1423
bool isTransform() const
Definition: special_constructors.cc:1427
MeasureTransportConstructor()
Definition: special_constructors.cc:1682
static const ObjectImpType * stype()
Returns the ObjectImpType representing the CircleImp type.
Definition: circle_imp.cc:342
~MidPointOfTwoPointsConstructor()
Definition: special_constructors.cc:2078
QString selectStatement(const std::vector< ObjectCalcer * > &sel, const KigDocument &d, const KigWidget &w) const
return a string describing what argument you want next, if the given selection of objects were select...
Definition: special_constructors.cc:1349
The ObjectType class is a thing that represents the "behaviour" for a certain type.
Definition: object_type.h:32
Definition: polygon_type.h:179
void plug(KigPart *doc, KigGUIAction *kact)
Definition: special_constructors.cc:2145
QString selectStatement(const std::vector< ObjectCalcer * > &sel, const KigDocument &d, const KigWidget &w) const
return a string describing what argument you want next, if the given selection of objects were select...
Definition: special_constructors.cc:2172
QString useText(const ObjectCalcer &o, const std::vector< ObjectCalcer * > &sel, const KigDocument &d, const KigWidget &v) const
return a string describing what you would use o for if it were selected...
Definition: special_constructors.cc:1336
~PolygonVertexTypeConstructor()
Definition: special_constructors.cc:769
PolygonBNPTypeConstructor()
Definition: special_constructors.cc:597
QString useText(const ObjectCalcer &o, const std::vector< ObjectCalcer * > &sel, const KigDocument &d, const KigWidget &v) const
return a string describing what you would use o for if it were selected...
Definition: special_constructors.cc:1545
QString selectStatement(const std::vector< ObjectCalcer * > &sel, const KigDocument &d, const KigWidget &w) const
return a string describing what argument you want next, if the given selection of objects were select...
Definition: special_constructors.cc:719
~OpenPolygonTypeConstructor()
Definition: special_constructors.cc:685
int wantArgs(const std::vector< ObjectCalcer * > &os, const KigDocument &d, const KigWidget &v) const
can this constructor do something useful with os ? return ArgsParser::Complete, Valid or NotGood ...
Definition: special_constructors.cc:696
Definition: conic_types.h:170
std::vector< ObjectHolder * > build(const std::vector< ObjectCalcer * > &os, KigDocument &d, KigWidget &w) const
Definition: special_constructors.cc:363
A class holding some information about how a certain object is drawn on the window.
Definition: object_drawer.h:47
void plug(KigPart *doc, KigGUIAction *kact)
Definition: special_constructors.cc:488
void plug(KigPart *doc, KigGUIAction *kact)
Definition: special_constructors.cc:484
WeightImpType weightimptypeinstance
void drawprelim(const ObjectDrawer &drawer, KigPainter &p, const std::vector< ObjectCalcer * > &parents, const KigDocument &) const
Definition: special_constructors.cc:205
static const struct ArgsParser::spec argsspeccli[]
Definition: special_constructors.cc:1887
bool isTransform() const
Definition: special_constructors.cc:588
void handleArgs(const std::vector< ObjectCalcer * > &os, KigPart &d, KigWidget &v) const
do something fun with os .
Definition: special_constructors.cc:937
static const AffinityB2TrType * instance()
Definition: transform_types.cc:448
static const CocCubicType * instance()
Definition: centerofcurvature_type.cc:141
std::vector< ObjectHolder * > build(const std::vector< ObjectCalcer * > &os, KigDocument &d, KigWidget &w) const
Definition: special_constructors.cc:1030
ThreeTwoOneIntersectionConstructor(const ArgsParserObjectType *t_std, const ArgsParserObjectType *t_special, const ArgsParserObjectType *t_special2, const char *iconfile, const struct ArgsParser::spec argsspecv[])
Definition: special_constructors.cc:186
static const ObjectImpType * stype()
Returns the ObjectImpType representing PointImp's.
Definition: point_imp.cc:159
static const AffinityGI3PType * instance()
Definition: transform_types.cc:498
const QString descriptiveName() const
Definition: special_constructors.cc:518
std::vector< ObjectCalcer * > findIntersectionPoints(const ObjectCalcer *c1, const ObjectCalcer *c2) const
Return all the points that belong (by construction) on both the given curves.
Definition: kig_document.cc:248
virtual bool containsPoint(const Coordinate &p, const KigDocument &) const =0
Return whether this Curve contains the given point.
This class is the equivalent of SimpleObjectTypeConstructor for object types that are constructed in ...
Definition: object_constructor.h:251
TwoOrOneIntersectionConstructor(const ArgsParserObjectType *t_std, const ArgsParserObjectType *t_special, const char *iconfile, const struct ArgsParser::spec argsspecv[])
Definition: special_constructors.cc:76
void plug(KigPart *doc, KigGUIAction *kact)
Definition: special_constructors.cc:1137
static const ObjectImpType * stype()
Returns the ObjectImpType representing the CurveImp type.
Definition: curve_imp.cc:27
static const ObjectImpType * stype()
Returns the ObjectImpType representing the ConicImp type.
Definition: conic_imp.cc:380
void drawprelim(const ObjectDrawer &drawer, KigPainter &p, const std::vector< ObjectCalcer * > &parents, const KigDocument &) const
Definition: special_constructors.cc:726
KigDocument is the class holding the real data in a Kig document.
Definition: kig_document.h:36
const QByteArray iconFileName(const bool canBeNull=false) const
Definition: special_constructors.cc:528
static const ObjectImpType * stype()
Returns the ObjectImpType representing the AbstractLineImp type.
Definition: line_imp.cc:520
static const CocConicType * instance()
Definition: centerofcurvature_type.cc:55
static const ConicLineIntersectionType * instance()
Definition: intersection_types.cc:54
int wantArgs(const std::vector< ObjectCalcer * > &os, const KigDocument &d, const KigWidget &v) const
we override the wantArgs() function, since we need to see something about the objects that an ArgsPar...
Definition: special_constructors.cc:431
bool isAlreadySelectedOK(const std::vector< ObjectCalcer * > &os, const uint &) const
the following function is called in case of duplication of arguments and returns true if this is acce...
Definition: special_constructors.cc:1201
virtual const ObjectImp * imp() const =0
Returns the ObjectImp of this ObjectCalcer.
void plug(KigPart *doc, KigGUIAction *kact)
Definition: special_constructors.cc:584
static const CubicLineTwoIntersectionType * instance()
Definition: intersection_types.cc:241
GenericAffinityConstructor()
Definition: special_constructors.cc:1564
std::vector< ObjectCalcer * > parents() const
Returns the parent ObjectCalcer's of this ObjectCalcer.
Definition: object_calcer.cc:105
static const struct ArgsParser::spec argsspeccbli[]
Definition: special_constructors.cc:1896
QString useText(const ObjectCalcer &o, const std::vector< ObjectCalcer * > &sel, const KigDocument &d, const KigWidget &v) const
return a string describing what you would use o for if it were selected...
Definition: special_constructors.cc:711
int wantArgs(const std::vector< ObjectCalcer * > &os, const KigDocument &d, const KigWidget &v) const
can this constructor do something useful with os ? return ArgsParser::Complete, Valid or NotGood ...
Definition: special_constructors.cc:919
void drawprelim(const ObjectDrawer &drawer, KigPainter &p, const std::vector< ObjectCalcer * > &parents, const KigDocument &) const
Definition: special_constructors.cc:339
~PolygonBCVConstructor()
Definition: special_constructors.cc:894
double getDoubleFromImp(const ObjectImp *obj, bool &valid)
Definition: special_imptypes.cc:27
void calc(const KigDocument &doc)
Makes the ObjectCalcer recalculate its ObjectImp from its parents.
Definition: object_calcer.cc:32
~TangentConstructor()
Definition: special_constructors.cc:2218
The ObjectImp class represents the behaviour of an object after it is calculated. ...
Definition: object_imp.h:226
std::vector< ObjectHolder * > build(const std::vector< ObjectCalcer * > &os, KigDocument &d, KigWidget &w) const
Definition: special_constructors.cc:1309
void drawprelim(const ObjectDrawer &drawer, KigPainter &p, const std::vector< ObjectCalcer * > &parents, const KigDocument &d) const
Definition: special_constructors.cc:1359
int wantArgs(const std::vector< ObjectCalcer * > &os, const KigDocument &d, const KigWidget &v) const
can this constructor do something useful with os ? return ArgsParser::Complete, Valid or NotGood ...
Definition: special_constructors.cc:1208
~ConicRadicalConstructor()
Definition: special_constructors.cc:335
PolygonVertexTypeConstructor()
Definition: special_constructors.cc:760
QString useText(const ObjectCalcer &o, const std::vector< ObjectCalcer * > &sel, const KigDocument &d, const KigWidget &v) const
return a string describing what you would use o for if it were selected...
Definition: special_constructors.cc:1223
void addObjects(const std::vector< ObjectHolder * > &os)
Definition: kig_part.cpp:500
Definition: point_type.h:152
void handleArgs(const std::vector< ObjectCalcer * > &os, KigPart &d, KigWidget &v) const
do something fun with os .
Definition: special_constructors.cc:1322
BaseConstructMode * constructMode(KigPart &doc)
Which construct mode should be used for this ObjectConstructor.
Definition: special_constructors.cc:2159
Definition: argsparser.h:112
TestConstructor(const ArgsParserObjectType *type, const char *descname, const char *desc, const char *iconfile)
Definition: special_constructors.cc:2118
~GenericIntersectionConstructor()
Definition: special_constructors.cc:1999
QString useText(const ObjectCalcer &o, const std::vector< ObjectCalcer * > &sel, const KigDocument &d, const KigWidget &v) const
return a string describing what you would use o for if it were selected...
Definition: special_constructors.cc:1058
std::set< ObjectCalcer * > getAllChildren(ObjectCalcer *obj)
This is an overloaded member function, provided for convenience. It differs from the above function o...
Definition: calcpaths.cc:281
bool isTransform() const
Definition: special_constructors.cc:181
BezierCurveTypeConstructor()
Definition: special_constructors.cc:1188
static const ConicLineOtherIntersectionType * instance()
Definition: intersection_types.cc:118
std::vector< ObjectHolder * > build(const std::vector< ObjectCalcer * > &os, KigDocument &d, KigWidget &w) const
Definition: special_constructors.cc:1855
const QString description() const
Definition: special_constructors.cc:1275
GenericProjectivityConstructor()
Definition: special_constructors.cc:1593
PointSequenceConstructor(const char *descname, const char *desc, const char *iconfile, const ObjectType *type)
Definition: special_constructors.cc:506
static const ProjectivityGI4PType * instance()
Definition: transform_types.cc:601
Coordinate getRotatedCoord(const Coordinate &c1, const Coordinate &c2, double alpha) const
Definition: special_constructors.cc:1146
void drawprelim(const ObjectDrawer &drawer, KigPainter &p, const std::vector< ObjectCalcer * > &parents, const KigDocument &) const
Definition: special_constructors.cc:401
OpenPolygonTypeConstructor()
Definition: special_constructors.cc:676
void drawprelim(const ObjectDrawer &drawer, KigPainter &p, const std::vector< ObjectCalcer * > &parents, const KigDocument &) const
Definition: special_constructors.cc:1792
bool isIntersection() const
Definition: special_constructors.cc:2003
~MeasureTransportConstructor()
Definition: special_constructors.cc:1687
void handlePrelim(KigPainter &p, const std::vector< ObjectCalcer * > &sel, const KigDocument &d, const KigWidget &v) const
show a preliminary version of what you would do when handleArgs would be called.
Definition: special_constructors.cc:951
bool isAlreadySelectedOK(const std::vector< ObjectCalcer * > &os, const uint &) const
the following function is called in case of duplication of arguments and returns true if this is acce...
Definition: special_constructors.cc:689
This class represents a curve: something which is composed of points, like a line, a circle, a locus.
Definition: curve_imp.h:27
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:12:05 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:12:05 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.