LibrePCB Developers Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
OriginCrossGraphicsItem Class Referencefinal

The OriginCrossGraphicsItem class. More...

#include <origincrossgraphicsitem.h>

Inherits QGraphicsItem.

+ Collaboration diagram for OriginCrossGraphicsItem:

Public Member Functions

 OriginCrossGraphicsItem (const OriginCrossGraphicsItem &other)=delete
 
 OriginCrossGraphicsItem (QGraphicsItem *parent=nullptr) noexcept
 
 ~OriginCrossGraphicsItem () noexcept
 
void setPosition (const Point &pos) noexcept
 
void setRotation (const Angle &rot) noexcept
 
void setSize (const UnsignedLength &size) noexcept
 
void setLayer (const GraphicsLayer *layer) noexcept
 
QRectF boundingRect () const noexceptoverride
 
QPainterPath shape () const noexceptoverride
 
void paint (QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget=0) noexceptoverride
 
OriginCrossGraphicsItemoperator= (const OriginCrossGraphicsItem &rhs)=delete
 

Private Member Functions

void layerEdited (const GraphicsLayer &layer, GraphicsLayer::Event event) noexcept
 
void updateBoundingRectAndShape () noexcept
 

Private Attributes

const GraphicsLayermLayer
 
QPen mPen
 
QPen mPenHighlighted
 
UnsignedLength mSize
 
QLineF mLineH
 
QLineF mLineV
 
QRectF mBoundingRect
 
QPainterPath mShape
 
GraphicsLayer::OnEditedSlot mOnLayerEditedSlot
 

Detailed Description

Constructor & Destructor Documentation

OriginCrossGraphicsItem ( QGraphicsItem *  parent = nullptr)
explicitnoexcept
~OriginCrossGraphicsItem ( )
noexcept

Member Function Documentation

void setPosition ( const Point pos)
noexcept
void setRotation ( const Angle rot)
noexcept
void setSize ( const UnsignedLength size)
noexcept
void setLayer ( const GraphicsLayer layer)
noexcept
QRectF boundingRect ( ) const
inlineoverridenoexcept
QPainterPath shape ( ) const
inlineoverridenoexcept
void paint ( QPainter *  painter,
const QStyleOptionGraphicsItem *  option,
QWidget *  widget = 0 
)
overridenoexcept
OriginCrossGraphicsItem& operator= ( const OriginCrossGraphicsItem rhs)
delete
void layerEdited ( const GraphicsLayer layer,
GraphicsLayer::Event  event 
)
privatenoexcept
void updateBoundingRectAndShape ( )
privatenoexcept

Member Data Documentation

const GraphicsLayer* mLayer
private
QPen mPen
private
QPen mPenHighlighted
private
UnsignedLength mSize
private
QLineF mLineH
private
QLineF mLineV
private
QRectF mBoundingRect
private
QPainterPath mShape
private
GraphicsLayer::OnEditedSlot mOnLayerEditedSlot
private

The documentation for this class was generated from the following files: