LibrePCB Developers Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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 noexceptoverride
 
QPainterPath shape () const noexceptoverride
 
void paint (QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget=0) noexceptoverride
 
SymbolPinGraphicsItemoperator= (const SymbolPinGraphicsItem &rhs)=delete
 

Private Member Functions

void updateShape () noexcept
 

Private Attributes

SymbolPinmPin
 
QScopedPointer
< PrimitiveCircleGraphicsItem
mCircleGraphicsItem
 
QScopedPointer< LineGraphicsItemmLineGraphicsItem
 
QScopedPointer
< PrimitiveTextGraphicsItem
mTextGraphicsItem
 

Detailed Description

The SymbolPinGraphicsItem class.

Author
ubruhin
Date
2016-11-05

Constructor & Destructor Documentation

SymbolPinGraphicsItem ( const SymbolPinGraphicsItem other)
delete
SymbolPinGraphicsItem ( SymbolPin pin,
const IF_GraphicsLayerProvider lp,
QGraphicsItem *  parent = nullptr 
)
noexcept

+ Here is the call graph for this function:

~SymbolPinGraphicsItem ( )
noexcept

+ Here is the call graph for this function:

Member Function Documentation

SymbolPin& getPin ( )
inlinenoexcept

+ Here is the caller graph for this function:

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

+ Here is the caller graph for this function:

QRectF boundingRect ( ) const
inlineoverridenoexcept
QPainterPath shape ( ) const
overridenoexcept
void paint ( QPainter *  painter,
const QStyleOptionGraphicsItem *  option,
QWidget *  widget = 0 
)
overridenoexcept
SymbolPinGraphicsItem& operator= ( const SymbolPinGraphicsItem rhs)
delete
void updateShape ( )
privatenoexcept

Member Data Documentation

SymbolPin& mPin
private
QScopedPointer<PrimitiveCircleGraphicsItem> mCircleGraphicsItem
private
QScopedPointer<LineGraphicsItem> mLineGraphicsItem
private
QScopedPointer<PrimitiveTextGraphicsItem> mTextGraphicsItem
private

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