20#ifndef LIBREPCB_CORE_GRAPHICSPAINTER_H
21#define LIBREPCB_CORE_GRAPHICSPAINTER_H
26#include "../types/length.h"
63 const QColor& color)
noexcept;
65 const QColor& lineColor,
const QColor& fillColor)
noexcept;
67 const QColor& lineColor,
const QColor& fillColor)
noexcept;
69 const Length& lineWidth,
const QColor& lineColor,
70 const QColor& fillColor)
noexcept;
72 const Length& lineWidth,
const QColor& lineColor,
73 const QColor& fillColor)
noexcept;
76 const QString& text, QFont font,
const QColor& color,
77 bool autoRotate,
bool mirrorInPlace,
bool parseOverlines,
78 int fontPixelSize = 0) noexcept;
80 const
Length& length, const QColor& lineColor,
81 const QColor& circleColor) noexcept;
84 const QString& text, const QFont& font,
85 const QColor& color) noexcept;
The Alignment class.
Definition alignment.h:115
The Angle class is used to represent an angle (for example 12.75 degrees)
Definition angle.h:76
Draw LibrePCB graphics elements on a QPainter.
Definition graphicspainter.h:48
qreal getPenWidthPx(const Length &width) const noexcept
Definition graphicspainter.cpp:261
void drawSlot(const Path &path, const PositiveLength &diameter, const Length &lineWidth, const QColor &lineColor, const QColor &fillColor) noexcept
Definition graphicspainter.cpp:118
void setMinLineWidth(const UnsignedLength &width) noexcept
Definition graphicspainter.h:57
void drawCircle(const Point ¢er, const Length &diameter, const Length &lineWidth, const QColor &lineColor, const QColor &fillColor) noexcept
Definition graphicspainter.cpp:100
UnsignedLength mMinLineWidth
Definition graphicspainter.h:95
GraphicsPainter(const GraphicsPainter &other)=delete
QPainter & mPainter
Definition graphicspainter.h:94
void drawPath(const QPainterPath &path, const Length &lineWidth, const QColor &lineColor, const QColor &fillColor) noexcept
Definition graphicspainter.cpp:71
~GraphicsPainter() noexcept
Definition graphicspainter.cpp:49
void drawNetJunction(const Point &position, const QColor &color) noexcept
Definition graphicspainter.cpp:208
void drawNetLabel(const Point &position, const Angle &rotation, bool mirror, const QString &text, const QFont &font, const QColor &color) noexcept
Definition graphicspainter.cpp:220
void drawSymbolPin(const Point &position, const Angle &rotation, const Length &length, const QColor &lineColor, const QColor &circleColor) noexcept
Definition graphicspainter.cpp:186
void drawLine(const Point &p1, const Point &p2, const Length &width, const QColor &color) noexcept
Definition graphicspainter.cpp:56
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
Definition graphicspainter.cpp:126
void drawPolygon(const Path &path, const Length &lineWidth, const QColor &lineColor, const QColor &fillColor) noexcept
Definition graphicspainter.cpp:88
The Length class is used to represent a length (for example 12.75 millimeters)
Definition length.h:82
The Path class represents a list of vertices connected by straight lines or circular arc segments.
Definition path.h:57
The Point class is used to represent a point/coordinate/vector, for example (1.2mm; 5....
Definition point.h:78
Definition occmodel.cpp:76
type_safe::constrained_type< Length, PositiveLengthConstraint, PositiveLengthVerifier > PositiveLength
Definition length.h:810
type_safe::constrained_type< Length, UnsignedLengthConstraint, UnsignedLengthVerifier > UnsignedLength
Definition length.h:694