kig
point_type.cc
Go to the documentation of this file.
266 I18N_NOOP( "Select the first of the two points of which you want to construct the midpoint..." ), false },
268 I18N_NOOP( "Select the other of the two points of which you want to construct the midpoint..." ), false }
352 std::vector<ObjectCalcer*> CursorPointType::sortArgs( const std::vector<ObjectCalcer*>& args ) const
472 const Coordinate ConstrainedPointType::moveReferencePoint( const ObjectTypeCalcer& ourobj ) const
478 std::vector<ObjectCalcer*> FixedPointType::movableParents( const ObjectTypeCalcer& ourobj ) const
483 std::vector<ObjectCalcer*> RelativePointType::movableParents( const ObjectTypeCalcer& ourobj ) const
491 std::vector<ObjectCalcer*> ConstrainedPointType::movableParents( const ObjectTypeCalcer& ourobj ) const
665 const ObjectImpType* MeasureTransportType::impRequirement( const ObjectImp* obj, const Args& ) const
692 std::vector<ObjectCalcer*> MeasureTransportType::sortArgs( const std::vector<ObjectCalcer*>& args ) const
const ObjectImpType * impRequirement(const ObjectImp *o, const Args &parents) const
Supposing that parents would be given as parents to this type's calc function, this function returns ...
Definition: point_type.cc:665
static void redefinePoint(ObjectHolder *o, KigPart &d, KigWidget &w)
Definition: point_type.cc:383
const ObjectImpType * resultId() const
returns the ObjectImp id of the ObjectImp's produced by this ObjectType.
Definition: point_type.cc:848
ObjectImp * calcx(const Coordinate &a, const Coordinate &b) const
Definition: point_type.cc:288
void move(const Coordinate &to, const KigDocument &doc)
This is the method that does the real moving work.
Definition: object_calcer.cc:296
const ObjectImpType * resultId() const
returns the ObjectImp id of the ObjectImp's produced by this ObjectType.
Definition: point_type.cc:660
Instances of this class represent a certain ObjectImp type.
Definition: object_imp.h:95
std::vector< ObjectCalcer * > movableParents(const ObjectTypeCalcer &ourobj) const
Definition: point_type.cc:483
bool inherits(const ObjectImpType *t) const
Returns true if this ObjectImp inherits the ObjectImp type represented by t.
Definition: object_imp.cc:279
const ObjectImp * imp() const
Returns the ObjectImp of this ObjectCalcer.
Definition: object_calcer.cc:65
void setImp(ObjectImp *newimp)
Set the ObjectImp of this ObjectConstCalcer to the given newimp.
Definition: object_calcer.cc:241
bool canMove(const ObjectTypeCalcer &ourobj) const
Definition: point_type.cc:248
void move(ObjectTypeCalcer &ourobj, const Coordinate &to, const KigDocument &) const
Definition: point_type.cc:531
KIG_INSTANTIATE_OBJECT_TYPE_INSTANCE(SegmentAxisType)
std::vector< ObjectCalcer * > sortArgs(const std::vector< ObjectCalcer * > &args) const
Definition: point_type.cc:692
Definition: base_type.h:27
This is a convenience subclass of ObjectType that a type should inherit from if its parents can be sp...
Definition: object_type.h:113
void executeAction(int i, ObjectHolder &o, ObjectTypeCalcer &t, KigPart &d, KigWidget &w, NormalMode &m) const
execute the i 'th action from the specialActions above.
Definition: point_type.cc:389
a KigCommand represents almost every action performed in Kig.
Definition: kig_commands.h:44
const ObjectImpType * resultId() const
returns the ObjectImp id of the ObjectImp's produced by this ObjectType.
Definition: point_type.cc:326
This is an ObjectCalcer that keeps an ObjectImp, and never calculates a new one.
Definition: object_calcer.h:232
bool containsPoint(const Coordinate &p, const KigDocument &doc) const
Return whether this Curve contains the given point.
Definition: line_imp.cc:614
const Coordinate getPoint(double param, const KigDocument &) const
Definition: circle_imp.cc:325
static const ArgsParser::spec argsspecProjectedPoint[]
Definition: point_type.cc:810
static const ObjectImpType * stype()
Returns the ObjectImpType representing the DoubleImp type.
Definition: bogus_imp.cc:270
bool canMove(const ObjectTypeCalcer &ourobj) const
Definition: point_type.cc:258
bool canMove(const ObjectTypeCalcer &ourobj) const
Definition: point_type.cc:556
void move(ObjectTypeCalcer &ourobj, const Coordinate &to, const KigDocument &) const
Definition: point_type.cc:211
void executeAction(int i, ObjectHolder &, ObjectTypeCalcer &o, KigPart &d, KigWidget &w, NormalMode &m) const
execute the i 'th action from the specialActions above.
Definition: point_type.cc:423
const Coordinate & coordinate() const
Get the coordinate of this PointImp.
Definition: point_imp.h:50
static const ObjectImpType * stype()
The ObjectImpType representing the base ObjectImp class.
Definition: object_imp.cc:284
This is an ObjectCalcer that uses one of the various ObjectType's to calculate its ObjectImp...
Definition: object_calcer.h:183
static const ObjectImpType * stype()
Returns the ObjectImpType representing the LineImp type.
Definition: line_imp.cc:528
LengthImpType lengthimptypeinstance
Definition: point_type.h:75
Definition: point_type.h:25
ObjectImp * calc(const Args &parents, const KigDocument &) const
Definition: point_type.cc:518
The Coordinate class is the basic class representing a 2D location by its x and y components...
Definition: coordinate.h:33
bool containsPoint(const Coordinate &p, const KigDocument &doc) const
Return whether this Curve contains the given point.
Definition: conic_imp.cc:402
bool isFreelyTranslatable(const ObjectTypeCalcer &ourobj) const
Definition: point_type.cc:561
bool canMove(const ObjectTypeCalcer &ourobj) const
Definition: point_type.cc:228
ObjectImp * calc(const Args &parents, const KigDocument &) const
Definition: point_type.cc:58
virtual const Coordinate getPoint(double param, const KigDocument &) const =0
static void getCoordinate(const QString &caption, const QString &label, QWidget *parent, bool *ok, const KigDocument &doc, Coordinate *cvalue)
Static convenience function to get a Coordinate from the user.
Definition: kiginputdialog.cc:259
double getParam(const Coordinate &point, const KigDocument &) const
Definition: circle_imp.cc:317
static const ArgsParser::spec argsspecMeasureTransportOld[]
Definition: point_type.cc:729
static const ArgsParser::spec argsspecPointByCoords[]
Definition: point_type.cc:780
std::vector< ObjectCalcer * > getAllParents(const std::vector< ObjectCalcer * > &objs)
This function returns all objects above the given in the dependency graph.
Definition: calcpaths.cc:229
const Coordinate moveReferencePoint(const ObjectTypeCalcer &ourobj) const
Definition: point_type.cc:577
std::vector< ObjectCalcer * > movableParents(const ObjectTypeCalcer &ourobj) const
Definition: point_type.cc:584
double getDoubleFromUser(const QString &caption, const QString &label, double value, QWidget *parent, bool *ok, double min, double max, int decimals)
Here, we define some algorithms which we need in various places...
Definition: common.cpp:349
An ObjectHolder represents an object as it is known to the document.
Definition: object_holder.h:40
const ObjectImp * imp() const
Returns the ObjectImp of this ObjectCalcer.
Definition: object_calcer.cc:100
static const ConstrainedRelativePointType * instance()
Definition: point_type.cc:566
An ObjectCalcer is an object that represents an algorithm for calculating an ObjectImp from other Obj...
Definition: object_calcer.h:66
bool isDefinedOnOrThrough(const ObjectImp *o, const Args &parents) const
Supposing that parents would be given as parents to this type's calc function, this function returns ...
Definition: point_type.cc:347
std::vector< ObjectCalcer * > movableParents(const ObjectTypeCalcer &ourobj) const
Definition: point_type.cc:491
this class monitors a set of DataObjects for changes and returns an appropriate ChangeObjectImpsComma...
Definition: kig_commands.h:153
const ArgsParser::spec argsspecConstrainedPoint[]
Definition: point_type.cc:141
bool isDefinedOnOrThrough(const ObjectImp *o, const Args &parents) const
Supposing that parents would be given as parents to this type's calc function, this function returns ...
Definition: point_type.cc:685
Definition: point_type.h:115
bool checkArgs(const std::vector< ObjectCalcer * > &os) const
Definition: argsparser.cpp:222
static const ObjectImpType * stype()
Returns the ObjectImpType representing the SegmentImp type.
Definition: line_imp.cc:545
void move(ObjectTypeCalcer &ourobj, const Coordinate &to, const KigDocument &) const
Definition: point_type.cc:158
bool canMove(const ObjectTypeCalcer &ourobj) const
Definition: point_type.cc:238
Definition: argsparser.h:113
Definition: point_type.h:140
static const ObjectImpType * stype()
Returns the ObjectImpType representing the ArcImp type.
Definition: other_imp.cc:629
virtual Coordinate attachPoint() const =0
Returns a reference point where to attach labels; when this returns an invalidCoord then the attachme...
void finish(KigCommand *comm)
add the generated KigCommandTasks to the command comm .
Definition: kig_commands.cpp:227
const ObjectImpType * resultId() const
returns the ObjectImp id of the ObjectImp's produced by this ObjectType.
Definition: point_type.cc:756
static const ObjectImpType * stype()
Returns the ObjectImpType representing the CircleImp type.
Definition: circle_imp.cc:342
void move(ObjectTypeCalcer &ourobj, const Coordinate &to, const KigDocument &) const
Definition: point_type.cc:194
bool isFreelyTranslatable(const ObjectTypeCalcer &ourobj) const
Definition: point_type.cc:253
The ObjectType class is a thing that represents the "behaviour" for a certain type.
Definition: object_type.h:32
const ObjectImpType * resultId() const
returns the ObjectImp id of the ObjectImp's produced by this ObjectType.
Definition: point_type.cc:805
virtual QString coordinateFormatNoticeMarkup() const =0
Like coordinateFormatNotice(), but with HTML tags useful to have a rich text...
std::vector< ObjectCalcer * > sortArgs(const std::vector< ObjectCalcer * > &args) const
Definition: point_type.cc:352
bool isFreelyTranslatable(const ObjectTypeCalcer &ourobj) const
Definition: point_type.cc:233
Definition: point_type.h:95
const ObjectImpType * resultId() const
returns the ObjectImp id of the ObjectImp's produced by this ObjectType.
Definition: point_type.cc:362
Definition: point_imp.h:81
static const ArgsParser::spec argsspecRelativePoint[]
Definition: point_type.cc:68
std::vector< ObjectCalcer * > movableParents(const ObjectTypeCalcer &ourobj) const
Definition: point_type.cc:478
const ObjectImpType * resultId() const
returns the ObjectImp id of the ObjectImp's produced by this ObjectType.
Definition: point_type.cc:331
static const ObjectImpType * stype()
Returns the ObjectImpType representing PointImp's.
Definition: point_imp.cc:159
Definition: moving.h:86
QStringList specialActions() const
return i18n'd names for the special actions.
Definition: point_type.cc:375
Definition: point_type.h:168
ObjectImp * calc(const Args &parents, const KigDocument &) const
Definition: point_type.cc:130
void move(ObjectTypeCalcer &ourobj, const Coordinate &to, const KigDocument &) const
Definition: point_type.cc:174
static const ObjectImpType * stype()
Returns the ObjectImpType representing the CurveImp type.
Definition: curve_imp.cc:27
ObjectImp * calc(const Args &parents, const KigDocument &) const
Definition: point_type.cc:765
Definition: point_type.h:51
bool isFreelyTranslatable(const ObjectTypeCalcer &ourobj) const
Definition: point_type.cc:243
KigDocument is the class holding the real data in a Kig document.
Definition: kig_document.h:36
const ObjectImpType * impRequirement(const ObjectImp *o, const Args &parents) const
Supposing that parents would be given as parents to this type's calc function, this function returns ...
Definition: point_type.cc:336
static const MeasureTransportTypeOld * instance()
Definition: point_type.cc:750
static const ObjectImpType * stype()
Returns the ObjectImpType representing the AbstractLineImp type.
Definition: line_imp.cc:520
virtual const ObjectImp * imp() const =0
Returns the ObjectImp of this ObjectCalcer.
static const ArgsParser::spec argsspecConstrainedRelativePoint[]
Definition: point_type.cc:498
std::vector< ObjectCalcer * > parents() const
Returns the parent ObjectCalcer's of this ObjectCalcer.
Definition: object_calcer.cc:105
const ObjectImpType * resultId() const
returns the ObjectImp id of the ObjectImp's produced by this ObjectType.
Definition: point_type.cc:315
static const MeasureTransportType * instance()
Definition: point_type.cc:654
QString fromLatin1(const char *str, int size)
double getDoubleFromImp(const ObjectImp *obj, bool &valid)
Definition: special_imptypes.cc:27
The ObjectImp class represents the behaviour of an object after it is calculated. ...
Definition: object_imp.h:226
Definition: point_type.h:192
ObjectImp * calc(const Args &parents, const KigDocument &) const
Definition: point_type.cc:835
const ObjectImpType * resultId() const
returns the ObjectImp id of the ObjectImp's produced by this ObjectType.
Definition: point_type.cc:125
Definition: point_type.h:152
Definition: point_type.h:180
QStringList specialActions() const
return i18n'd names for the special actions.
Definition: point_type.cc:367
static const ConstrainedPointType * instance()
Definition: point_type.cc:298
const CoordinateSystem & coordinateSystem() const
Definition: kig_document.cc:40
ObjectImp * calc(const Args &parents, const KigDocument &) const
Definition: point_type.cc:86
const Coordinate moveReferencePoint(const ObjectTypeCalcer &ourobj) const
Definition: point_type.cc:472
const ObjectImpType * resultId() const
returns the ObjectImp id of the ObjectImp's produced by this ObjectType.
Definition: point_type.cc:572
const Coordinate moveReferencePoint(const ObjectTypeCalcer &ourobj) const
Definition: point_type.cc:465
virtual double getParam(const Coordinate &point, const KigDocument &) const
Definition: curve_imp.cc:149
Definition: normal.h:26
ObjectImp * calc(const Args &parents, const KigDocument &) const
Definition: point_type.cc:707
const Coordinate calcPointProjection(const Coordinate &p, const LineData &l)
this calculates the perpendicular projection of point p on line ab...
Definition: common.cpp:295
static const ProjectedPointType * instance()
Definition: point_type.cc:829
const Coordinate moveReferencePoint(const ObjectTypeCalcer &ourobj) const
Definition: point_type.cc:459
ObjectImp * calc(const Args &parents, const KigDocument &) const
Definition: point_type.cc:115
void push(QUndoCommand *cmd)
ObjectImp * calc(const Args &parents, const KigDocument &) const
Definition: point_type.cc:596
Definition: object_type.h:43
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.