LibrePCB Developers Documentation
|
The SymbolGraphicsItem class. More...
#include <symbolgraphicsitem.h>
Inherits QGraphicsItemGroup.
Public Types | |
enum class | FindFlag |
Public Member Functions | |
SymbolGraphicsItem ()=delete | |
SymbolGraphicsItem (const SymbolGraphicsItem &other)=delete | |
SymbolGraphicsItem (Symbol &symbol, const IF_GraphicsLayerProvider &lp, std::shared_ptr< const Component > cmp=nullptr, std::shared_ptr< const ComponentSymbolVariantItem > cmpItem=nullptr, const QStringList &localeOrder={}) noexcept | |
~SymbolGraphicsItem () noexcept | |
std::shared_ptr< SymbolPinGraphicsItem > | getGraphicsItem (std::shared_ptr< SymbolPin > pin) noexcept |
std::shared_ptr< CircleGraphicsItem > | getGraphicsItem (std::shared_ptr< Circle > circle) noexcept |
std::shared_ptr< PolygonGraphicsItem > | getGraphicsItem (std::shared_ptr< Polygon > polygon) noexcept |
std::shared_ptr< TextGraphicsItem > | getGraphicsItem (std::shared_ptr< Text > text) noexcept |
QList< std::shared_ptr< SymbolPinGraphicsItem > > | getSelectedPins () noexcept |
QList< std::shared_ptr< CircleGraphicsItem > > | getSelectedCircles () noexcept |
QList< std::shared_ptr< PolygonGraphicsItem > > | getSelectedPolygons () noexcept |
QList< std::shared_ptr< TextGraphicsItem > > | getSelectedTexts () noexcept |
QList< std::shared_ptr< QGraphicsItem > > | findItemsAtPos (const QPainterPath &posAreaSmall, const QPainterPath &posAreaLarge, FindFlags flags) noexcept |
void | setPosition (const Point &pos) noexcept |
void | setRotation (const Angle &rot) noexcept |
void | updateAllTexts () noexcept |
void | setSelectionRect (const QRectF rect) noexcept |
SymbolGraphicsItem & | operator= (const SymbolGraphicsItem &rhs)=delete |
Private Member Functions | |
void | syncPins () noexcept |
void | syncCircles () noexcept |
void | syncPolygons () noexcept |
void | syncTexts () noexcept |
void | symbolEdited (const Symbol &symbol, Symbol::Event event) noexcept |
void | substituteText (TextGraphicsItem &text) noexcept |
Private Attributes | |
Symbol & | mSymbol |
const IF_GraphicsLayerProvider & | mLayerProvider |
std::shared_ptr< const Component > | mComponent |
std::shared_ptr< const ComponentSymbolVariantItem > | mItem |
QStringList | mLocaleOrder |
QMap< std::shared_ptr< SymbolPin >, std::shared_ptr< SymbolPinGraphicsItem > > | mPinGraphicsItems |
QMap< std::shared_ptr< Circle >, std::shared_ptr< CircleGraphicsItem > > | mCircleGraphicsItems |
QMap< std::shared_ptr< Polygon >, std::shared_ptr< PolygonGraphicsItem > > | mPolygonGraphicsItems |
QMap< std::shared_ptr< Text >, std::shared_ptr< TextGraphicsItem > > | mTextGraphicsItems |
Symbol::OnEditedSlot | mOnEditedSlot |
The SymbolGraphicsItem class.
|
strong |
|
delete |
|
delete |
|
noexcept |
|
noexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
noexcept |
|
noexcept |
|
noexcept |
|
noexcept |
|
noexcept |
|
noexcept |
|
noexcept |
|
noexcept |
|
noexcept |
|
delete |
|
privatenoexcept |
|
privatenoexcept |
|
privatenoexcept |
|
privatenoexcept |
|
privatenoexcept |
|
privatenoexcept |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |