20 #ifndef LIBREPCB_EDITOR_ORIGINCROSSGRAPHICSITEM_H 21 #define LIBREPCB_EDITOR_ORIGINCROSSGRAPHICSITEM_H 62 void setLayer(
const std::shared_ptr<GraphicsLayer>& layer) noexcept;
66 QPainterPath
shape()
const noexcept
override;
67 void paint(QPainter* painter,
const QStyleOptionGraphicsItem* option,
68 QWidget* widget = 0) noexcept
override;
80 std::shared_ptr<GraphicsLayer>
mLayer;
QRectF boundingRect() const noexcept override
Definition: origincrossgraphicsitem.h:65
void layerEdited(const GraphicsLayer &layer, GraphicsLayer::Event event) noexcept
Definition: origincrossgraphicsitem.cpp:116
QLineF mLineH
Definition: origincrossgraphicsitem.h:84
QPainterPath mShape
Definition: origincrossgraphicsitem.h:87
Definition: occmodel.cpp:77
The OriginCrossGraphicsItem class.
Definition: origincrossgraphicsitem.h:50
void updateBoundingRectAndShape() noexcept
Definition: origincrossgraphicsitem.cpp:139
The Angle class is used to represent an angle (for example 12.75 degrees)
Definition: angle.h:78
OriginCrossGraphicsItem & operator=(const OriginCrossGraphicsItem &rhs)=delete
GraphicsLayer::OnEditedSlot mOnLayerEditedSlot
Definition: origincrossgraphicsitem.h:90
QPen mPenHighlighted
Definition: origincrossgraphicsitem.h:82
void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget=0) noexcept override
Definition: origincrossgraphicsitem.cpp:100
The GraphicsLayer class represents a graphical layer used in schematics and boards.
Definition: graphicslayer.h:53
OriginCrossGraphicsItem(const OriginCrossGraphicsItem &other)=delete
The Point class is used to represent a point/coordinate/vector, for example (1.2mm; 5...
Definition: point.h:79
std::shared_ptr< GraphicsLayer > mLayer
Definition: origincrossgraphicsitem.h:80
void setSize(const UnsignedLength &size) noexcept
Definition: origincrossgraphicsitem.cpp:68
void setRotation(const Angle &rot) noexcept
Definition: origincrossgraphicsitem.cpp:64
QLineF mLineV
Definition: origincrossgraphicsitem.h:85
void setLayer(const std::shared_ptr< GraphicsLayer > &layer) noexcept
Definition: origincrossgraphicsitem.cpp:76
QPen mPen
Definition: origincrossgraphicsitem.h:81
UnsignedLength mSize
Definition: origincrossgraphicsitem.h:83
QPainterPath shape() const noexcept override
Definition: origincrossgraphicsitem.cpp:96
QRectF mBoundingRect
Definition: origincrossgraphicsitem.h:86
Event
Definition: graphicslayer.h:58
virtual ~OriginCrossGraphicsItem() noexcept
Definition: origincrossgraphicsitem.cpp:53
void setPosition(const Point &pos) noexcept
Definition: origincrossgraphicsitem.cpp:60
type_safe::constrained_type< Length, UnsignedLengthConstraint, UnsignedLengthVerifier > UnsignedLength
Definition: length.h:696