kig
conic_types.cc
Go to the documentation of this file.
33 static const char conic_constructstatement[] = I18N_NOOP( "Construct a conic through this point" );
417 static const char hyperbolatpstatement[] = I18N_NOOP( "Construct a hyperbola through this point" );
543 static const char radicallinesstatement[] = I18N_NOOP( "Construct the radical lines of this conic" );
548 I18N_NOOP( "Select the first of the two conics of which you want to construct the radical line..." ), false },
550 I18N_NOOP( "Select the other of the two conic of which you want to construct the radical line..." ), false },
Definition: conic_types.h:61
static const ArgsParser::spec argsspecConicDirectrix[]
Definition: conic_types.cc:378
const LineData calcConicPolarLine(const ConicCartesianData &data, const Coordinate &cpole, bool &valid)
This function calculates the polar line of the point cpole with respect to the given conic data...
Definition: conic-common.cpp:293
Instances of this class represent a certain ObjectImp type.
Definition: object_imp.h:95
Definition: conic_types.h:71
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
static const ArgsParser::spec argsspecEllipseBFFP[]
Definition: conic_types.cc:142
ObjectImp * calc(const Args &parents, const KigDocument &) const
Definition: conic_types.cc:60
ObjectImp * calc(const Args &parents, const KigDocument &) const
Definition: conic_types.cc:366
virtual QString conicTypeString() const
A string containing "Hyperbola", "Parabola" or "Ellipse".
Definition: conic_imp.cc:205
KIG_INSTANTIATE_OBJECT_TYPE_INSTANCE(SegmentAxisType)
static const ConicDirectrixType * instance()
Definition: conic_types.cc:395
This is a convenience subclass of ObjectType that a type should inherit from if its parents can be sp...
Definition: object_type.h:113
Definition: conic_types.h:125
QStringList specialActions() const
return i18n'd names for the special actions.
Definition: conic_types.cc:666
a KigCommand represents almost every action performed in Kig.
Definition: kig_commands.h:44
An ObjectImp class that is the base of the line-like ObjectImp's: SegmentImp, LineImp and RayImp...
Definition: line_imp.h:31
This is an ObjectCalcer that keeps an ObjectImp, and never calculates a new one.
Definition: object_calcer.h:232
Definition: conic_types.h:136
const LineData calcConicAsymptote(const ConicCartesianData data, int which, bool &valid)
This function calculates the asymptote of the given conic ( data ).
Definition: conic-common.cpp:467
Definition: conic_types.h:23
ObjectImp * calc(const Args &parents, const KigDocument &) const
Definition: conic_types.cc:108
const ConicCartesianData calcConicThroughPoints(const std::vector< Coordinate > &points, const LinearConstraints c1, const LinearConstraints c2, const LinearConstraints c3, const LinearConstraints c4, const LinearConstraints c5)
Calculate a conic through a given set of points.
Definition: conic-common.cpp:169
ObjectImp * calc(const Args &parents, const KigDocument &) const
Definition: conic_types.cc:401
Definition: base_type.h:46
const ObjectImpType * resultId() const
returns the ObjectImp id of the ObjectImp's produced by this ObjectType.
Definition: conic_types.cc:636
const Coordinate calcConicPolarPoint(const ConicCartesianData &data, const LineData &polar)
This function calculates the polar point of the line polar with respect to the given conic data...
Definition: conic-common.cpp:325
const ObjectImpType * resultId() const
returns the ObjectImp id of the ObjectImp's produced by this ObjectType.
Definition: conic_types.cc:621
static const ObjectImpType * stype()
Returns the ObjectImpType representing the IntImp type.
Definition: bogus_imp.cc:278
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
ObjectImp * calc(const Args &parents, const KigDocument &) const
Definition: conic_types.cc:527
Coordinate calcPointOnPerpend(const LineData &l, const Coordinate &t)
This file is part of Kig, a KDE program for Interactive Geometry...
Definition: common.cpp:37
Definition: conic-common.h:138
The Coordinate class is the basic class representing a 2D location by its x and y components...
Definition: coordinate.h:33
static const char constructellipsewithfocusstat[]
Definition: conic_types.cc:139
Definition: conic_types.h:81
ObjectImp * calc(const Args &parents, const KigDocument &) const
Definition: conic_types.cc:236
An implementation of ConicImp to be used when only the polar equation of the conic is known...
Definition: conic_imp.h:157
Definition: conic-common.h:139
const ConicPolarData calcConicBDFP(const LineData &directrix, const Coordinate &cfocus, const Coordinate &cpoint)
function used by ConicBDFP.
Definition: conic-common.cpp:433
ObjectImp * calc(const Args &parents, const KigDocument &) const
Definition: conic_types.cc:330
ObjectImp * calc(const LineData &l, const Coordinate &c) const
Definition: conic_types.cc:488
ObjectImp * calc(const Args &parents, const KigDocument &) const
Definition: conic_types.cc:448
static const char constructhyperbolawithfocusstat[]
Definition: conic_types.cc:174
static const struct ArgsParser::spec argsspecConicB5P[]
Definition: conic_types.cc:35
static const ArgsParser::spec argsspecConicAsymptote[]
Definition: conic_types.cc:503
An implementation of ConicImp to be used when only the cartesian equation of the conic is known...
Definition: conic_imp.h:138
Definition: conic_types.h:103
Coordinate calcCircleRadicalStartPoint(const Coordinate &ca, const Coordinate &cb, double sqra, double sqrb)
Definition: common.cpp:335
An ObjectHolder represents an object as it is known to the document.
Definition: object_holder.h:40
ObjectImp * calc(const Args &parents, const KigDocument &) const
Definition: conic_types.cc:119
static const ConicAsymptoteType * instance()
Definition: conic_types.cc:521
const ObjectImpType * resultId() const
returns the ObjectImp id of the ObjectImp's produced by this ObjectType.
Definition: conic_types.cc:616
ObjectImp * calc(const Args &parents, const KigDocument &) const
Definition: conic_types.cc:568
Definition: conic_types.h:92
this class monitors a set of DataObjects for changes and returns an appropriate ChangeObjectImpsComma...
Definition: kig_commands.h:153
const ObjectImpType * resultId() const
returns the ObjectImp id of the ObjectImp's produced by this ObjectType.
Definition: conic_types.cc:641
const ObjectImpType * resultId() const
returns the ObjectImp id of the ObjectImp's produced by this ObjectType.
Definition: conic_types.cc:646
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
ObjectImp * calc(const Args &parents, const KigDocument &) const
Definition: conic_types.cc:289
static const ConicPolarLineType * instance()
Definition: conic_types.cc:360
bool checkArgs(const std::vector< ObjectCalcer * > &os) const
Definition: argsparser.cpp:222
static const ArgsParser::spec argsspecParabolaBTP[]
Definition: conic_types.cc:262
const ObjectImpType * resultId() const
returns the ObjectImp id of the ObjectImp's produced by this ObjectType.
Definition: conic_types.cc:656
Definition: argsparser.h:113
Definition: conic_types.h:159
void finish(KigCommand *comm)
add the generated KigCommandTasks to the command comm .
Definition: kig_commands.cpp:227
Definition: conic-common.h:139
static const ObjectImpType * stype()
Returns the ObjectImpType representing the CircleImp type.
Definition: circle_imp.cc:342
const ObjectImpType * resultId() const
returns the ObjectImp id of the ObjectImp's produced by this ObjectType.
Definition: conic_types.cc:661
static const ConicPolarPointType * instance()
Definition: conic_types.cc:324
static const ArgsParser::spec argsspecParabolaBDP[]
Definition: conic_types.cc:463
Definition: conic_types.h:170
static const char constructparabolathroughpointstat[]
Definition: conic_types.cc:259
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: conic_types.cc:673
const ConicPolarData calcConicBFFP(const std::vector< Coordinate > &args, int type)
This function is used by ConicBFFP.
Definition: conic-common.cpp:251
Definition: conic_types.h:147
Definition: conic_types.h:114
static const ObjectImpType * stype()
Returns the ObjectImpType representing PointImp's.
Definition: point_imp.cc:159
static const ArgsParser::spec argsspecConicRadical[]
Definition: conic_types.cc:545
const ObjectImpType * resultId() const
returns the ObjectImp id of the ObjectImp's produced by this ObjectType.
Definition: conic_types.cc:626
static const ArgsParser::spec argsspecConicPolarLine[]
Definition: conic_types.cc:341
static const ObjectImpType * stype()
Returns the ObjectImpType representing the ConicImp type.
Definition: conic_imp.cc:380
KigDocument is the class holding the real data in a Kig document.
Definition: kig_document.h:36
Definition: conic_types.h:45
const ConicCartesianData calcConicByAsymptotes(const LineData &line1, const LineData &line2, const Coordinate &p)
This calcs the hyperbola defined by its two asymptotes line1 and line2, and a point p on the edge...
Definition: conic-common.cpp:511
static const ObjectImpType * stype()
Returns the ObjectImpType representing the AbstractLineImp type.
Definition: line_imp.cc:520
static const ArgsParser::spec argsspecHyperbolaBFFP[]
Definition: conic_types.cc:177
std::vector< ObjectCalcer * > parents() const
Returns the parent ObjectCalcer's of this ObjectCalcer.
Definition: object_calcer.cc:105
ConicBFFPType(const char *fullname, const ArgsParser::spec *, int n)
Definition: conic_types.cc:130
static const struct ArgsParser::spec argsspecConicBDFP[]
Definition: conic_types.cc:215
static const ArgsParser::spec argsspecConicPolarPoint[]
Definition: conic_types.cc:305
Definition: conic-common.h:138
The ObjectImp class represents the behaviour of an object after it is calculated. ...
Definition: object_imp.h:226
static const EquilateralHyperbolaB4PType * instance()
Definition: conic_types.cc:442
const ObjectImpType * resultId() const
returns the ObjectImp id of the ObjectImp's produced by this ObjectType.
Definition: conic_types.cc:606
const ObjectImpType * resultId() const
returns the ObjectImp id of the ObjectImp's produced by this ObjectType.
Definition: conic_types.cc:611
static const ArgsParser::spec argsspecHyperbolaB4P[]
Definition: conic_types.cc:419
const ObjectImpType * resultId() const
returns the ObjectImp id of the ObjectImp's produced by this ObjectType.
Definition: conic_types.cc:651
const ObjectImpType * resultId() const
returns the ObjectImp id of the ObjectImp's produced by this ObjectType.
Definition: conic_types.cc:631
Definition: conic_types.h:34
Definition: normal.h:26
void push(QUndoCommand *cmd)
static const HyperbolaBFFPType * instance()
Definition: conic_types.cc:198
This class represents an equation of a conic in the form .
Definition: conic-common.h:85
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.