LibrePCB Developers Documentation
SGI_Symbol Class Referencefinal

The SGI_Symbol class. More...

#include <sgi_symbol.h>

Inherits QGraphicsItemGroup.

+ Collaboration diagram for SGI_Symbol:

Public Types

enum  Event
 
typedef Slot< SGI_Symbol, EventOnEditedSlot
 

Public Member Functions

 SGI_Symbol ()=delete
 
 SGI_Symbol (const SGI_Symbol &other)=delete
 
 SGI_Symbol (SI_Symbol &symbol, const IF_GraphicsLayerProvider &lp) noexcept
 
virtual ~SGI_Symbol () noexcept
 
SI_SymbolgetSymbol () noexcept
 
QPainterPath shape () const noexcept override
 
SGI_Symboloperator= (const SGI_Symbol &rhs)=delete
 

Public Attributes

Signal< SGI_Symbol, EventonEdited
 

Private Member Functions

void symbolEdited (const SI_Symbol &obj, SI_Symbol::Event event) noexcept
 
void updatePosition () noexcept
 
void updateRotationAndMirrored () noexcept
 
virtual QVariant itemChange (GraphicsItemChange change, const QVariant &value) noexcept override
 

Private Attributes

SI_SymbolmSymbol
 
std::shared_ptr< OriginCrossGraphicsItemmOriginCrossGraphicsItem
 
QVector< std::shared_ptr< CircleGraphicsItem > > mCircleGraphicsItems
 
QVector< std::shared_ptr< PolygonGraphicsItem > > mPolygonGraphicsItems
 
QPainterPath mShape
 
SI_Symbol::OnEditedSlot mOnEditedSlot
 

Detailed Description

The SGI_Symbol class.

Member Typedef Documentation

◆ OnEditedSlot

Member Enumeration Documentation

◆ Event

enum Event
strong
Enumerator
PositionChanged 
SelectionChanged 

Constructor & Destructor Documentation

◆ SGI_Symbol() [1/3]

SGI_Symbol ( )
delete

◆ SGI_Symbol() [2/3]

SGI_Symbol ( const SGI_Symbol other)
delete

◆ SGI_Symbol() [3/3]

SGI_Symbol ( SI_Symbol symbol,
const IF_GraphicsLayerProvider lp 
)
noexcept
+ Here is the call graph for this function:

◆ ~SGI_Symbol()

~SGI_Symbol ( )
virtualnoexcept

Member Function Documentation

◆ getSymbol()

SI_Symbol& getSymbol ( )
inlinenoexcept

◆ shape()

QPainterPath shape ( ) const
inlineoverridenoexcept
+ Here is the call graph for this function:

◆ operator=()

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

◆ symbolEdited()

void symbolEdited ( const SI_Symbol obj,
SI_Symbol::Event  event 
)
privatenoexcept
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ updatePosition()

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

◆ updateRotationAndMirrored()

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

◆ itemChange()

QVariant itemChange ( GraphicsItemChange  change,
const QVariant &  value 
)
overrideprivatevirtualnoexcept
+ Here is the caller graph for this function:

Member Data Documentation

◆ onEdited

Signal<SGI_Symbol, Event> onEdited

◆ mSymbol

SI_Symbol& mSymbol
private

◆ mOriginCrossGraphicsItem

std::shared_ptr<OriginCrossGraphicsItem> mOriginCrossGraphicsItem
private

◆ mCircleGraphicsItems

QVector<std::shared_ptr<CircleGraphicsItem> > mCircleGraphicsItems
private

◆ mPolygonGraphicsItems

QVector<std::shared_ptr<PolygonGraphicsItem> > mPolygonGraphicsItems
private

◆ mShape

QPainterPath mShape
private

◆ mOnEditedSlot

SI_Symbol::OnEditedSlot mOnEditedSlot
private

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