Draw LibrePCB graphics elements on a QPainter.
More...
#include <graphicspainter.h>
|
| GraphicsPainter ()=delete |
|
| GraphicsPainter (QPainter &painter) noexcept |
|
| GraphicsPainter (const GraphicsPainter &other)=delete |
|
| ~GraphicsPainter () noexcept |
|
void | setMinLineWidth (const UnsignedLength &width) noexcept |
|
void | drawLine (const Point &p1, const Point &p2, const Length &width, const QColor &color) noexcept |
|
void | drawPath (const QPainterPath &path, const Length &lineWidth, const QColor &lineColor, const QColor &fillColor) noexcept |
|
void | drawPolygon (const Path &path, const Length &lineWidth, const QColor &lineColor, const QColor &fillColor) noexcept |
|
void | drawCircle (const Point ¢er, const Length &diameter, const Length &lineWidth, const QColor &lineColor, const QColor &fillColor) noexcept |
|
void | drawSlot (const Path &path, const PositiveLength &diameter, const Length &lineWidth, const QColor &lineColor, const QColor &fillColor) noexcept |
|
void | drawText (const Point &position, const Angle &rotation, const Length &height, const Alignment &alignment, const QString &text, QFont font, const QColor &color, bool autoRotate, bool mirrorInPlace, bool parseOverlines, int fontPixelSize=0) noexcept |
|
void | drawSymbolPin (const Point &position, const Angle &rotation, const Length &length, const QColor &lineColor, const QColor &circleColor) noexcept |
|
void | drawNetJunction (const Point &position, const QColor &color) noexcept |
|
void | drawNetLabel (const Point &position, const Angle &rotation, bool mirror, const QString &text, const QFont &font, const QColor &color) noexcept |
|
GraphicsPainter & | operator= (const GraphicsPainter &rhs)=delete |
|
Draw LibrePCB graphics elements on a QPainter.
◆ GraphicsPainter() [1/3]
◆ GraphicsPainter() [2/3]
◆ GraphicsPainter() [3/3]
◆ ~GraphicsPainter()
◆ setMinLineWidth()
◆ drawLine()
void drawLine |
( |
const Point & |
p1, |
|
|
const Point & |
p2, |
|
|
const Length & |
width, |
|
|
const QColor & |
color |
|
) |
| |
|
noexcept |
◆ drawPath()
void drawPath |
( |
const QPainterPath & |
path, |
|
|
const Length & |
lineWidth, |
|
|
const QColor & |
lineColor, |
|
|
const QColor & |
fillColor |
|
) |
| |
|
noexcept |
◆ drawPolygon()
void drawPolygon |
( |
const Path & |
path, |
|
|
const Length & |
lineWidth, |
|
|
const QColor & |
lineColor, |
|
|
const QColor & |
fillColor |
|
) |
| |
|
noexcept |
◆ drawCircle()
void drawCircle |
( |
const Point & |
center, |
|
|
const Length & |
diameter, |
|
|
const Length & |
lineWidth, |
|
|
const QColor & |
lineColor, |
|
|
const QColor & |
fillColor |
|
) |
| |
|
noexcept |
◆ drawSlot()
void drawSlot |
( |
const Path & |
path, |
|
|
const PositiveLength & |
diameter, |
|
|
const Length & |
lineWidth, |
|
|
const QColor & |
lineColor, |
|
|
const QColor & |
fillColor |
|
) |
| |
|
noexcept |
◆ drawText()
void drawText |
( |
const Point & |
position, |
|
|
const Angle & |
rotation, |
|
|
const Length & |
height, |
|
|
const Alignment & |
alignment, |
|
|
const QString & |
text, |
|
|
QFont |
font, |
|
|
const QColor & |
color, |
|
|
bool |
autoRotate, |
|
|
bool |
mirrorInPlace, |
|
|
bool |
parseOverlines, |
|
|
int |
fontPixelSize = 0 |
|
) |
| |
|
noexcept |
◆ drawSymbolPin()
void drawSymbolPin |
( |
const Point & |
position, |
|
|
const Angle & |
rotation, |
|
|
const Length & |
length, |
|
|
const QColor & |
lineColor, |
|
|
const QColor & |
circleColor |
|
) |
| |
|
noexcept |
◆ drawNetJunction()
void drawNetJunction |
( |
const Point & |
position, |
|
|
const QColor & |
color |
|
) |
| |
|
noexcept |
◆ drawNetLabel()
void drawNetLabel |
( |
const Point & |
position, |
|
|
const Angle & |
rotation, |
|
|
bool |
mirror, |
|
|
const QString & |
text, |
|
|
const QFont & |
font, |
|
|
const QColor & |
color |
|
) |
| |
|
noexcept |
◆ operator=()
◆ getPenWidthPx()
qreal getPenWidthPx |
( |
const Length & |
width | ) |
const |
|
privatenoexcept |
◆ mPainter
◆ mMinLineWidth
The documentation for this class was generated from the following files: