LibrePCB Developers Documentation
|
The OriginCrossGraphicsItem class. More...
#include <origincrossgraphicsitem.h>
Inherits QGraphicsItem.
Public Member Functions | |
OriginCrossGraphicsItem (const OriginCrossGraphicsItem &other)=delete | |
OriginCrossGraphicsItem (QGraphicsItem *parent=nullptr) noexcept | |
virtual | ~OriginCrossGraphicsItem () noexcept |
void | setPosition (const Point &pos) noexcept |
void | setRotation (const Angle &rot) noexcept |
void | setSize (const UnsignedLength &size) noexcept |
void | setLayer (const std::shared_ptr< GraphicsLayer > &layer) noexcept |
QRectF | boundingRect () const noexcept override |
QPainterPath | shape () const noexcept override |
void | paint (QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget=0) noexcept override |
OriginCrossGraphicsItem & | operator= (const OriginCrossGraphicsItem &rhs)=delete |
Private Member Functions | |
void | layerEdited (const GraphicsLayer &layer, GraphicsLayer::Event event) noexcept |
void | updateBoundingRectAndShape () noexcept |
Private Attributes | |
std::shared_ptr< GraphicsLayer > | mLayer |
QPen | mPen |
QPen | mPenHighlighted |
UnsignedLength | mSize |
QLineF | mLineH |
QLineF | mLineV |
QRectF | mBoundingRect |
QPainterPath | mShape |
GraphicsLayer::OnEditedSlot | mOnLayerEditedSlot |
The OriginCrossGraphicsItem class.
|
delete |
|
explicitnoexcept |
|
virtualnoexcept |
|
noexcept |
|
noexcept |
|
noexcept |
|
noexcept |
|
inlineoverridenoexcept |
|
overridenoexcept |
|
overridenoexcept |
|
delete |
|
privatenoexcept |
|
privatenoexcept |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |