kig
python_scripter.cc
Go to the documentation of this file.
90 const Coordinate (Transformation::*transformapplyfunc)( const Coordinate& ) const = &Transformation::apply;
191 class_<ConicCartesianData>( "ConicCartesianData", init<double,double,double,double,double,double>() )
347 class_<CubicCartesianData>( "CubicCartesianData", init<double,double,double,double,double,double,double,double,double,double>() )
static const Transformation translation(const Coordinate &c)
Translation.
Definition: kigtransform.cpp:273
static const Transformation scalingOverLine(double factor, const LineData &l)
Scaling over Line.
Definition: kigtransform.cpp:324
static const Transformation lineReflection(const LineData &l)
Line Reflection.
Definition: kigtransform.cpp:316
bool inherits(const ObjectImpType *t) const
Returns true if this ObjectImp inherits the ObjectImp type represented by t.
Definition: object_imp.cc:279
static const ObjectImpType * stype()
Returns the ObjectImpType representing the BogusImp type.
Definition: bogus_imp.cc:286
double sectorSurface() const
Return the size of the sector surface of this arc.
Definition: other_imp.cc:493
static const Transformation pointReflection(const Coordinate &c)
Point Reflection.
Definition: kigtransform.cpp:285
const char * internalName() const
Returns an internal name for this ObjectImp type.
Definition: object_imp.cc:235
ObjectImp * calc(const Args &a, const KigDocument &doc)
Definition: python_scripter.cc:439
static const ObjectImpType * stype()
Returns the ObjectImpType representing the DoubleImp type.
Definition: bogus_imp.cc:270
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 Transformation projectiveRotation(double alpha, const Coordinate &d, const Coordinate &t)
Projective Rotation.
Definition: kigtransform.cpp:591
static const ObjectImpType * stype()
Returns the ObjectImpType representing the RayImp type.
Definition: line_imp.cc:562
static const ObjectImpType * stype()
Returns the ObjectImpType representing the VectorImp type.
Definition: other_imp.cc:613
const Coordinate & coordinate() const
Get the coordinate of this PointImp.
Definition: point_imp.h:50
static const ObjectImpType * stype()
Returns the ObjectImpType representing the IntImp type.
Definition: bogus_imp.cc:278
static const ObjectImpType * stype()
The ObjectImpType representing the base ObjectImp class.
Definition: object_imp.cc:284
static const ObjectImpType * stype()
Returns the ObjectImpType representing the LineImp type.
Definition: line_imp.cc:528
The Coordinate class is the basic class representing a 2D location by its x and y components...
Definition: coordinate.h:33
void setCoordinate(const Coordinate &c)
Set the coordinate of this PointImp.
Definition: point_imp.cc:133
bool isHomothetic() const
Returns whether this is a homothetic (affine) transformation.
Definition: kigtransform.cpp:681
static const Transformation castShadow(const Coordinate &ls, const LineData &d)
Cast Shadow.
Definition: kigtransform.cpp:550
friend class CompiledPythonScript
Definition: python_scripter.h:44
CompiledPythonScript compile(const char *code)
Definition: python_scripter.cc:457
QString translatedName() const
The name of this type, translated to the currently used language.
Definition: object_imp.cc:240
const char * selectStatement() const
Returns a translatable string of the form "Select this %1".
Definition: object_imp.cc:245
double distance(const Coordinate &p) const
Distance to another Coordinate.
Definition: coordinate.cpp:139
bool valid() const
Return whether this is a valid CubicCartesianData.
Definition: cubic-common.cc:539
QString moveAStatement() const
Returns a translated string of the form "Move a xxx".
Definition: object_imp.cc:265
const Transformation inverse(bool &valid) const
The inverse Transformation.
Definition: kigtransform.cpp:737
Definition: python_scripter.h:42
std::string lastErrorExceptionValue() const
Definition: python_scripter.cc:498
std::string lastErrorExceptionType() const
Definition: python_scripter.cc:493
static const ObjectImpType * stype()
Returns the ObjectImpType representing the SegmentImp type.
Definition: line_imp.cc:545
Definition: python_scripter.h:28
static const ObjectImpType * stype()
Returns the ObjectImpType representing the ArcImp type.
Definition: other_imp.cc:629
static const ObjectImpType * stype()
Returns the ObjectImpType representing the CircleImp type.
Definition: circle_imp.cc:342
double startAngle() const
Return the start angle in radians of this arc.
Definition: other_imp.cc:542
bool isParallelTo(const LineData &l) const
Return true if this line is parallel to l.
Definition: common.cpp:459
static const ObjectImpType * typeFromInternalName(const char *n)
Returns the type with name n.
Definition: object_imp.cc:270
double startAngle() const
Return the start angle in radians of this angle.
Definition: other_imp.h:83
static const Transformation scalingOverPoint(double factor, const Coordinate ¢er=Coordinate())
Scaling over Point.
Definition: kigtransform.cpp:260
const Coordinate apply(const double x0, const double x1, const double x2) const
Apply this Tranformation.
Definition: kigtransform.cpp:611
static const ObjectImpType * stype()
Returns the ObjectImpType representing the InvalidImp type.
Definition: bogus_imp.cc:213
virtual Coordinate focus1() const
Return the first focus of this conic.
Definition: conic_imp.cc:290
QString removeAStatement() const
Returns a translated string of the form "Remove a xxx".
Definition: object_imp.cc:255
virtual const ConicPolarData polarData() const =0
Return the polar representation of this conic.
static const ObjectImpType * stype()
Returns the ObjectImpType representing PointImp's.
Definition: point_imp.cc:159
const CubicCartesianData data() const
Return the cartesian representation of this cubic.
Definition: cubic_imp.cc:331
const QString equationString() const
Get a string containing the equation of this line in the form "y = a * x + b ".
Definition: line_imp.cc:241
virtual const ConicCartesianData cartesianData() const
Return the cartesian representation of this conic.
Definition: conic_imp.cc:285
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
static const ObjectImpType * stype()
Returns the ObjectImpType representing the AngleImp type.
Definition: other_imp.cc:597
KigDocument is the class holding the real data in a Kig document.
Definition: kig_document.h:36
static const ObjectImpType * stype()
Returns the ObjectImpType representing the AbstractLineImp type.
Definition: line_imp.cc:520
std::string lastErrorExceptionTraceback() const
Definition: python_scripter.cc:503
static const ObjectImpType * stype()
Returns the ObjectImpType representing the StringImp type.
Definition: bogus_imp.cc:220
The ObjectImp class represents the behaviour of an object after it is calculated. ...
Definition: object_imp.h:226
QString attachToThisStatement() const
Returns a translated string of the form "Attach to this xxx".
Definition: object_imp.cc:311
virtual Coordinate focus2() const
Return the second focus of this conic.
Definition: conic_imp.cc:306
QString addAStatement() const
Returns a translated string of the form "Add a xxx".
Definition: object_imp.cc:260
virtual bool equals(const ObjectImp &rhs) const =0
Returns true if this ObjectImp is equal to rhs.
virtual ObjectImp * transform(const Transformation &t) const =0
Return this ObjectImp, transformed by the transformation t.
static const Transformation rotation(double angle, const Coordinate ¢er=Coordinate())
Rotation.
Definition: kigtransform.cpp:658
ObjectImp * calc(CompiledPythonScript &script, const Args &args)
Definition: python_scripter.cc:508
~CompiledPythonScript()
Definition: python_scripter.cc:444
static CubicCartesianData invalidData()
Create an invalid CubicCartesianData.
Definition: cubic-common.cc:532
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.