20#ifndef LIBREPCB_EDITOR_PRIMITIVEHOLEGRAPHICSITEM_H
21#define LIBREPCB_EDITOR_PRIMITIVEHOLEGRAPHICSITEM_H
28#include <optional/tl/optional.hpp>
42class IF_GraphicsLayerProvider;
43class OriginCrossGraphicsItem;
44class PrimitivePathGraphicsItem;
59 bool originCrossesVisible,
60 QGraphicsItem* parent =
nullptr) noexcept;
65 const
tl::optional<
Length>& stopMaskOffset) noexcept;
68 QPainterPath
shape() const noexcept override;
76 const QVariant& value) noexcept override;
The Length class is used to represent a length (for example 12.75 millimeters)
Definition: length.h:83
The GraphicsLayer class represents a graphical layer used in schematics and boards.
Definition: graphicslayer.h:53
The IF_GraphicsLayerProvider class defines an interface for classes which provide layers.
Definition: graphicslayer.h:111
The OriginCrossGraphicsItem class.
Definition: origincrossgraphicsitem.h:50
Independent graphical representation of a librepcb::Hole.
Definition: primitiveholegraphicsitem.h:53
QScopedPointer< PrimitivePathGraphicsItem > mStopMaskGraphicsItemTop
Definition: primitiveholegraphicsitem.h:82
PrimitiveHoleGraphicsItem()=delete
QVariant itemChange(GraphicsItemChange change, const QVariant &value) noexcept override
Definition: primitiveholegraphicsitem.cpp:137
QPainterPath shape() const noexcept override
Definition: primitiveholegraphicsitem.cpp:133
std::shared_ptr< GraphicsLayer > mHoleLayer
Definition: primitiveholegraphicsitem.h:79
PrimitiveHoleGraphicsItem(const PrimitiveHoleGraphicsItem &other)=delete
void setHole(const NonEmptyPath &path, const PositiveLength &diameter, const tl::optional< Length > &stopMaskOffset) noexcept
Definition: primitiveholegraphicsitem.cpp:91
QScopedPointer< PrimitivePathGraphicsItem > mHoleGraphicsItem
Definition: primitiveholegraphicsitem.h:80
QScopedPointer< OriginCrossGraphicsItem > mOriginCrossGraphicsItemEnd
Definition: primitiveholegraphicsitem.h:84
QScopedPointer< OriginCrossGraphicsItem > mOriginCrossGraphicsItemStart
Definition: primitiveholegraphicsitem.h:83
QScopedPointer< PrimitivePathGraphicsItem > mStopMaskGraphicsItemBot
Definition: primitiveholegraphicsitem.h:81
The PrimitivePathGraphicsItem class.
Definition: primitivepathgraphicsitem.h:50
Definition: occmodel.cpp:77
type_safe::constrained_type< Length, PositiveLengthConstraint, PositiveLengthVerifier > PositiveLength
Definition: length.h:812
type_safe::constrained_type< Path, NonEmptyPathConstraint, NonEmptyPathVerifier > NonEmptyPath
Definition: path.h:222