LibrePCB Developers Documentation
SymbolPinGraphicsItem Class Referencefinal

The SymbolPinGraphicsItem class. More...

#include <symbolpingraphicsitem.h>

Inherits QGraphicsItem.

+ Collaboration diagram for SymbolPinGraphicsItem:

Public Member Functions

 SymbolPinGraphicsItem ()=delete
 
 SymbolPinGraphicsItem (const SymbolPinGraphicsItem &other)=delete
 
 SymbolPinGraphicsItem (SymbolPin &pin, const IF_GraphicsLayerProvider &lp, QGraphicsItem *parent=nullptr) noexcept
 
 ~SymbolPinGraphicsItem () noexcept
 
SymbolPingetPin () noexcept
 
void setPosition (const Point &pos) noexcept
 
void setRotation (const Angle &rot) noexcept
 
void setLength (const UnsignedLength &length) noexcept
 
void setName (const CircuitIdentifier &name) noexcept
 
void setSelected (bool selected) noexcept
 
QRectF boundingRect () const noexcept override
 
QPainterPath shape () const noexcept override
 
void paint (QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget=0) noexcept override
 
SymbolPinGraphicsItemoperator= (const SymbolPinGraphicsItem &rhs)=delete
 

Private Member Functions

void updateShape () noexcept
 

Private Attributes

SymbolPinmPin
 
QScopedPointer< PrimitiveCircleGraphicsItemmCircleGraphicsItem
 
QScopedPointer< LineGraphicsItemmLineGraphicsItem
 
QScopedPointer< PrimitiveTextGraphicsItemmTextGraphicsItem
 

Detailed Description

Constructor & Destructor Documentation

◆ SymbolPinGraphicsItem() [1/3]

◆ SymbolPinGraphicsItem() [2/3]

SymbolPinGraphicsItem ( const SymbolPinGraphicsItem other)
delete

◆ SymbolPinGraphicsItem() [3/3]

SymbolPinGraphicsItem ( SymbolPin pin,
const IF_GraphicsLayerProvider lp,
QGraphicsItem *  parent = nullptr 
)
noexcept
+ Here is the call graph for this function:

◆ ~SymbolPinGraphicsItem()

~SymbolPinGraphicsItem ( )
noexcept
+ Here is the call graph for this function:

Member Function Documentation

◆ getPin()

SymbolPin& getPin ( )
inlinenoexcept
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ setPosition()

void setPosition ( const Point pos)
noexcept
+ Here is the caller graph for this function:

◆ setRotation()

void setRotation ( const Angle rot)
noexcept
+ Here is the caller graph for this function:

◆ setLength()

void setLength ( const UnsignedLength length)
noexcept
+ Here is the caller graph for this function:

◆ setName()

void setName ( const CircuitIdentifier name)
noexcept
+ Here is the caller graph for this function:

◆ setSelected()

void setSelected ( bool  selected)
noexcept
+ Here is the caller graph for this function:

◆ boundingRect()

QRectF boundingRect ( ) const
inlineoverridenoexcept
+ Here is the call graph for this function:

◆ shape()

QPainterPath shape ( ) const
overridenoexcept
+ Here is the caller graph for this function:

◆ paint()

void paint ( QPainter *  painter,
const QStyleOptionGraphicsItem *  option,
QWidget *  widget = 0 
)
overridenoexcept
+ Here is the caller graph for this function:

◆ operator=()

SymbolPinGraphicsItem& operator= ( const SymbolPinGraphicsItem rhs)
delete
+ Here is the caller graph for this function:

◆ updateShape()

void updateShape ( )
privatenoexcept
+ Here is the caller graph for this function:

Member Data Documentation

◆ mPin

SymbolPin& mPin
private

◆ mCircleGraphicsItem

QScopedPointer<PrimitiveCircleGraphicsItem> mCircleGraphicsItem
private

◆ mLineGraphicsItem

QScopedPointer<LineGraphicsItem> mLineGraphicsItem
private

◆ mTextGraphicsItem

QScopedPointer<PrimitiveTextGraphicsItem> mTextGraphicsItem
private

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