20#ifndef LIBREPCB_EDITOR_ORIGINCROSSGRAPHICSITEM_H
21#define LIBREPCB_EDITOR_ORIGINCROSSGRAPHICSITEM_H
66 QPainterPath
shape() const noexcept override;
67 void paint(QPainter* painter, const QStyleOptionGraphicsItem* option,
68 QWidget* widget = 0) noexcept override;
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 OriginCrossGraphicsItem class.
Definition origincrossgraphicsitem.h:50
QPen mPenHighlighted
Definition origincrossgraphicsitem.h:82
UnsignedLength mSize
Definition origincrossgraphicsitem.h:83
QRectF boundingRect() const noexcept override
Definition origincrossgraphicsitem.h:65
OriginCrossGraphicsItem(const OriginCrossGraphicsItem &other)=delete
void setLayer(const std::shared_ptr< GraphicsLayer > &layer) noexcept
Definition origincrossgraphicsitem.cpp:76
QPainterPath mShape
Definition origincrossgraphicsitem.h:87
std::shared_ptr< GraphicsLayer > mLayer
Definition origincrossgraphicsitem.h:80
QPainterPath shape() const noexcept override
Definition origincrossgraphicsitem.cpp:96
QLineF mLineV
Definition origincrossgraphicsitem.h:85
GraphicsLayer::OnEditedSlot mOnLayerEditedSlot
Definition origincrossgraphicsitem.h:90
QRectF mBoundingRect
Definition origincrossgraphicsitem.h:86
void layerEdited(const GraphicsLayer &layer, GraphicsLayer::Event event) noexcept
Definition origincrossgraphicsitem.cpp:116
void setSize(const UnsignedLength &size) noexcept
Definition origincrossgraphicsitem.cpp:68
QPen mPen
Definition origincrossgraphicsitem.h:81
void setRotation(const Angle &rot) noexcept
Definition origincrossgraphicsitem.cpp:64
void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget=0) noexcept override
Definition origincrossgraphicsitem.cpp:100
void setPosition(const Point &pos) noexcept
Definition origincrossgraphicsitem.cpp:60
void updateBoundingRectAndShape() noexcept
Definition origincrossgraphicsitem.cpp:139
QLineF mLineH
Definition origincrossgraphicsitem.h:84
Definition occmodel.cpp:76
type_safe::constrained_type< Length, UnsignedLengthConstraint, UnsignedLengthVerifier > UnsignedLength
Definition length.h:694