20#ifndef LIBREPCB_EDITOR_PRIMITIVEPATHGRAPHICSITEM_H
21#define LIBREPCB_EDITOR_PRIMITIVEPATHGRAPHICSITEM_H
52 using QGraphicsItem::setRotation;
77 void setPath(const QPainterPath& path) noexcept;
90 QPainterPath
shape() const noexcept override;
91 void paint(QPainter* painter, const QStyleOptionGraphicsItem* option,
92 QWidget* widget = 0) noexcept override;
104 QColor
convertColor(const QColor& color) const noexcept;
The Angle class is used to represent an angle (for example 12.75 degrees)
Definition angle.h:76
The Point class is used to represent a point/coordinate/vector, for example (1.2mm; 5....
Definition point.h:78
The GraphicsLayer class represents a graphical layer used in schematics and boards.
Definition graphicslayer.h:53
The PrimitivePathGraphicsItem class.
Definition primitivepathgraphicsitem.h:50
QPen mPenHighlighted
Definition primitivepathgraphicsitem.h:113
ShapeMode
Definition primitivepathgraphicsitem.h:55
@ FilledOutline
Only the area within the painter path is used as shape.
@ None
No shape is set (empty area).
QRectF boundingRect() const noexcept override
Definition primitivepathgraphicsitem.h:85
qreal mBoundingRectMarginPx
Definition primitivepathgraphicsitem.h:118
void setLighterColors(bool lighter) noexcept
Definition primitivepathgraphicsitem.cpp:123
QBrush mBrush
Definition primitivepathgraphicsitem.h:114
void setFillLayer(const std::shared_ptr< GraphicsLayer > &layer) noexcept
Definition primitivepathgraphicsitem.cpp:109
QPainterPath mShape
Definition primitivepathgraphicsitem.h:119
QBrush mBrushHighlighted
Definition primitivepathgraphicsitem.h:115
QPainterPath shape() const noexcept override
Definition primitivepathgraphicsitem.cpp:137
QColor convertColor(const QColor &color) const noexcept
Definition primitivepathgraphicsitem.cpp:224
GraphicsLayer::OnEditedSlot mOnLayerEditedSlot
Definition primitivepathgraphicsitem.h:122
void setPath(const QPainterPath &path) noexcept
Definition primitivepathgraphicsitem.cpp:83
std::shared_ptr< GraphicsLayer > mLineLayer
Definition primitivepathgraphicsitem.h:108
void setLineLayer(const std::shared_ptr< GraphicsLayer > &layer) noexcept
Definition primitivepathgraphicsitem.cpp:95
bool mMirror
Definition primitivepathgraphicsitem.h:107
ShapeMode mShapeMode
Definition primitivepathgraphicsitem.h:111
void setShapeMode(ShapeMode mode) noexcept
Definition primitivepathgraphicsitem.cpp:128
QRectF mBoundingRect
Definition primitivepathgraphicsitem.h:117
void setMirrored(bool mirrored) noexcept
Definition primitivepathgraphicsitem.cpp:78
bool mLighterColors
Definition primitivepathgraphicsitem.h:110
void layerEdited(const GraphicsLayer &layer, GraphicsLayer::Event event) noexcept
Definition primitivepathgraphicsitem.cpp:164
QPainterPath mPainterPath
Definition primitivepathgraphicsitem.h:116
std::shared_ptr< GraphicsLayer > mFillLayer
Definition primitivepathgraphicsitem.h:109
QPen mPen
Definition primitivepathgraphicsitem.h:112
void setRotation(const Angle &rot) noexcept
Definition primitivepathgraphicsitem.cpp:74
void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget=0) noexcept override
Definition primitivepathgraphicsitem.cpp:144
void setLineWidth(const UnsignedLength &width) noexcept
Definition primitivepathgraphicsitem.cpp:88
void updateVisibility() noexcept
Definition primitivepathgraphicsitem.cpp:220
void setPosition(const Point &pos) noexcept
Definition primitivepathgraphicsitem.cpp:70
PrimitivePathGraphicsItem(const PrimitivePathGraphicsItem &other)=delete
void updateBoundingRectAndShape() noexcept
Definition primitivepathgraphicsitem.cpp:206
void updateColors() noexcept
Definition primitivepathgraphicsitem.cpp:183
Definition occmodel.cpp:76
type_safe::constrained_type< Length, UnsignedLengthConstraint, UnsignedLengthVerifier > UnsignedLength
Definition length.h:694