kig
kigpainter.h
Go to the documentation of this file.
205 void drawPolygon( const std::vector<Coordinate>& pts, Qt::FillRule fillRule = Qt::OddEvenFill );
a CoordinateSystem is what the user sees: it is kept by KigPart to show the user a grid...
Definition: coordinate_system.h:60
void setWholeWinOverlay()
this is called by some drawing functions that modify the 'entire' screen, i.e.
Definition: kigpainter.cpp:494
void drawCircle(const Coordinate ¢er, double radius)
draw a circle...
Definition: kigpainter.cpp:84
void drawText(const Rect &r, const QString &s, int textFlags=0)
draw text...
Definition: kigpainter.cpp:192
void circleOverlayRecurse(const Coordinate ¢re, double radius, const Rect ¤tRect)
Definition: kigpainter.cpp:354
const Rect boundingRect(const Rect &r, const QString &s, int f=0) const
Definition: kigpainter.cpp:212
void drawVector(const Coordinate &a, const Coordinate &b)
draw a vector ( with an arrow etc.
Definition: kigpainter.cpp:692
void drawPolygon(const std::vector< QPoint > &pts, Qt::FillRule fillRule=Qt::OddEvenFill)
draw a polygon defined by the points in pts...
Definition: kigpainter.cpp:303
ScreenInfo is a simple utility class that maps a region of the document onto a region of the screen...
Definition: screeninfo.h:31
The Coordinate class is the basic class representing a 2D location by its x and y components...
Definition: coordinate.h:33
void drawLine(const Coordinate &p1, const Coordinate &p2)
draw a line...
Definition: kigpainter.cpp:187
void drawFilledRect(const QRect &)
draws a rect filled up with a pattern of cyan lines...
Definition: kigpainter.cpp:523
void setWidth(int c)
setting this to -1 means to use the default width for the object being drawn.
Definition: kigpainter.cpp:232
An ObjectHolder represents an object as it is known to the document.
Definition: object_holder.h:40
void drawArc(const Coordinate ¢er, double radius, double startangle, double angle)
draw the arc ( a part of a circle ), of the circle with center center, radius radius, with size angle, starting at the angle startAngle.
Definition: kigpainter.cpp:957
void drawTextFrame(const Rect &frame, const QString &s, bool needframe)
Definition: kigpainter.cpp:933
void drawGrid(const CoordinateSystem &c, bool showGrid=true, bool showAxes=true)
Definition: kigpainter.cpp:507
const Rect simpleBoundingRect(const Coordinate &c, const QString &s)
Definition: kigpainter.cpp:573
void drawObject(const ObjectHolder *o, bool sel)
draw an object ( by calling its draw function.
Definition: kigpainter.cpp:513
void drawSimpleText(const Coordinate &c, const QString &s)
Definition: kigpainter.cpp:563
void circleOverlay(const Coordinate ¢re, double radius)
adds a number of rects to mOverlay so that the rects entirely contain the circle...
Definition: kigpainter.cpp:419
KigDocument is the class holding the real data in a Kig document.
Definition: kig_document.h:36
void segmentOverlay(const Coordinate &p1, const Coordinate &p2)
adds some rects to mOverlay, so that they cover the segment p1p2 completely...
Definition: kigpainter.cpp:429
QRect toScreenEnlarge(const Rect &r) const
Definition: kigpainter.cpp:550
void drawAngle(const Coordinate &point, double startangle, double angle, int radius)
draw the angle with center point, with size angle, starting at the angle startAngle.
Definition: kigpainter.cpp:631
void drawRightAngle(const Coordinate &point, double startangle, int diagonal)
draw the angle with center point, with size angle, starting at the angle startAngle.
Definition: kigpainter.cpp:664
void drawObjects(const std::vector< ObjectHolder * > &os, bool sel)
Definition: kigpainter.cpp:518
void drawSegment(const Coordinate &from, const Coordinate &to)
draw a segment...
Definition: kigpainter.cpp:94
KigPainter(const ScreenInfo &r, QPaintDevice *device, const KigDocument &doc, bool needOverlay=true)
construct a new KigPainter: the ScreenInfo is used to map the document coordinates to the widget coor...
Definition: kigpainter.cpp:48
void drawArea(const std::vector< Coordinate > &pts, bool border=true)
draw an area defined by the points in pts filled with the set color...
Definition: kigpainter.cpp:327
This class represents a curve: something which is composed of points, like a line, a circle, a locus.
Definition: curve_imp.h:27
void drawTextStd(const QPoint &p, const QString &s)
draws text in a standard manner, convenience function...
Definition: kigpainter.cpp:531
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.