20#ifndef LIBREPCB_EDITOR_PRIMITIVECIRCLEGRAPHICSITEM_H
21#define LIBREPCB_EDITOR_PRIMITIVECIRCLEGRAPHICSITEM_H
66 QGraphicsItem* parent =
nullptr) noexcept;
81 virtual QPainterPath
shape() const noexcept override;
82 virtual
void paint(QPainter* painter, const QStyleOptionGraphicsItem* option,
83 QWidget* widget = 0) noexcept override;
The Point class is used to represent a point/coordinate/vector, for example (1.2mm; 5....
Definition: point.h:79
The GraphicsLayer class represents a graphical layer used in schematics and boards.
Definition: graphicslayer.h:53
The PrimitiveCircleGraphicsItem class.
Definition: primitivecirclegraphicsitem.h:49
QPen mPenHighlighted
Definition: primitivecirclegraphicsitem.h:101
ShapeMode
Definition: primitivecirclegraphicsitem.h:52
QRectF mCircleRect
Definition: primitivecirclegraphicsitem.h:104
QBrush mBrush
Definition: primitivecirclegraphicsitem.h:102
void setFillLayer(const std::shared_ptr< GraphicsLayer > &layer) noexcept
Definition: primitivecirclegraphicsitem.cpp:94
QPainterPath mShape
Definition: primitivecirclegraphicsitem.h:106
PrimitiveCircleGraphicsItem(const PrimitiveCircleGraphicsItem &other)=delete
QBrush mBrushHighlighted
Definition: primitivecirclegraphicsitem.h:103
virtual QPainterPath shape() const noexcept override
Definition: primitivecirclegraphicsitem.cpp:117
void setDiameter(const UnsignedLength &dia) noexcept
Definition: primitivecirclegraphicsitem.cpp:67
GraphicsLayer::OnEditedSlot mOnLayerEditedSlot
Definition: primitivecirclegraphicsitem.h:109
std::shared_ptr< GraphicsLayer > mLineLayer
Definition: primitivecirclegraphicsitem.h:97
void setLineLayer(const std::shared_ptr< GraphicsLayer > &layer) noexcept
Definition: primitivecirclegraphicsitem.cpp:80
ShapeMode mShapeMode
Definition: primitivecirclegraphicsitem.h:99
void setShapeMode(ShapeMode mode) noexcept
Definition: primitivecirclegraphicsitem.cpp:108
QRectF mBoundingRect
Definition: primitivecirclegraphicsitem.h:105
void layerEdited(const GraphicsLayer &layer, GraphicsLayer::Event event) noexcept
Definition: primitivecirclegraphicsitem.cpp:140
std::shared_ptr< GraphicsLayer > mFillLayer
Definition: primitivecirclegraphicsitem.h:98
virtual QRectF boundingRect() const noexcept override
Definition: primitivecirclegraphicsitem.h:78
QPen mPen
Definition: primitivecirclegraphicsitem.h:100
virtual void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget=0) noexcept override
Definition: primitivecirclegraphicsitem.cpp:124
void setLineWidth(const UnsignedLength &width) noexcept
Definition: primitivecirclegraphicsitem.cpp:73
void updateVisibility() noexcept
Definition: primitivecirclegraphicsitem.cpp:195
void setPosition(const Point &pos) noexcept
Definition: primitivecirclegraphicsitem.cpp:63
void updateBoundingRectAndShape() noexcept
Definition: primitivecirclegraphicsitem.cpp:182
void updateColors() noexcept
Definition: primitivecirclegraphicsitem.cpp:159
Definition: occmodel.cpp:77
type_safe::constrained_type< Length, UnsignedLengthConstraint, UnsignedLengthVerifier > UnsignedLength
Definition: length.h:696