kig
pgfexporterimpvisitor.cc
Go to the documentation of this file.
46 pencolor = "color={rgb,255:red," + QString::number(c.red()) + ";green," + QString::number(c.green()) + ";blue," + QString::number(c.blue()) + "}";
90 QString PGFExporterImpVisitor::emitPen( const QColor& c, const int width, const Qt::PenStyle& style )
179 QString tmp = "\\draw [" + emitStyle( mcurobj->drawer() ) + ", /pgf/fpu,/pgf/fpu/output format=fixed ] ";
267 double end = Goniometry::convert( imp->startAngle() + imp->angle(), Goniometry::Rad, Goniometry::Deg );
335 double end = Goniometry::convert( imp->startAngle() + imp->angle(), Goniometry::Rad, Goniometry::Deg );
void calcRayBorderPoints(const Coordinate &a, Coordinate &b, const Rect &r)
this does the same as the above function, but only for b.
Definition: common.cpp:131
LocusImp is an imp that consists of a copy of the curveimp that the moving point moves over...
Definition: locus_imp.h:57
bool shown() const
returns whether the object this ObjectDrawer is responsible for will be drawn or not.
Definition: object_drawer.cc:52
Definition: goniometry.h:31
virtual void visit(ObjectImpVisitor *vtor) const =0
Definition: text_imp.h:26
const Coordinate & coordinate() const
Get the coordinate of this PointImp.
Definition: point_imp.h:50
const std::vector< Coordinate > points() const
Returns the vector with polygon points.
Definition: polygon_imp.cc:571
The Coordinate class is the basic class representing a 2D location by its x and y components...
Definition: coordinate.h:33
virtual const Coordinate getPoint(double param, const KigDocument &) const =0
QString number(int n, int base)
virtual const ObjectImpType * type() const =0
Returns the lowermost ObjectImpType that this object is an instantiation of.
QString translatedName() const
The name of this type, translated to the currently used language.
Definition: object_imp.cc:240
int red() const
An ObjectHolder represents an object as it is known to the document.
Definition: object_holder.h:40
double distance(const Coordinate &p) const
Distance to another Coordinate.
Definition: coordinate.cpp:139
static double convert(const double angle, const Goniometry::System from, const Goniometry::System to)
The most useful method of this class: convert the specified angle from the system from to the system ...
Definition: goniometry.cc:87
int green() const
double startAngle() const
Return the start angle in radians of this arc.
Definition: other_imp.cc:542
double startAngle() const
Return the start angle in radians of this angle.
Definition: other_imp.h:83
A class holding some information about how a certain object is drawn on the window.
Definition: object_drawer.h:47
Definition: goniometry.h:31
int blue() const
void calcBorderPoints(Coordinate &p1, Coordinate &p2, const Rect &r)
this sets p1 and p2 to p1' and p2' so that p1'p2' is the same line as p1p2, and so that p1' and p2' a...
Definition: common.cpp:82
int length() const
const std::vector< Coordinate > points() const
Returns the vector with control points.
Definition: bezier_imp.cc:189
QColor color() const
returns the color that the object will be drawn in
Definition: object_drawer.cc:57
Qt::PenStyle style() const
return PenStyle for all objects except points
Definition: object_drawer.cc:139
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.