LibrePCB Developers Documentation
SGI_Symbol Class Referencefinal

The SGI_Symbol class. More...

#include <sgi_symbol.h>

+ Inheritance diagram for SGI_Symbol:
+ Collaboration diagram for SGI_Symbol:

Classes

struct  CachedTextProperties_t
 

Public Member Functions

 SGI_Symbol (SI_Symbol &symbol) noexcept
 
 ~SGI_Symbol () noexcept
 
void updateCacheAndRepaint () noexcept
 
QRectF boundingRect () const noexcept
 
QPainterPath shape () const noexcept
 
void paint (QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget=0)
 
- Public Member Functions inherited from SGI_Base
 SGI_Base () noexcept
 
virtual ~SGI_Base () noexcept
 

Private Member Functions

 SGI_Symbol ()=delete
 
 SGI_Symbol (const SGI_Symbol &other)=delete
 
SGI_Symboloperator= (const SGI_Symbol &rhs)=delete
 
GraphicsLayergetLayer (const QString &name) const noexcept
 

Private Attributes

SI_SymbolmSymbol
 
const library::SymbolmLibSymbol
 
QFont mFont
 
QRectF mBoundingRect
 
QPainterPath mShape
 
QHash< const Text *, CachedTextProperties_tmCachedTextProperties
 

Detailed Description

The SGI_Symbol class.

Constructor & Destructor Documentation

◆ SGI_Symbol() [1/3]

SGI_Symbol ( SI_Symbol symbol)
explicitnoexcept

◆ ~SGI_Symbol()

~SGI_Symbol ( )
noexcept

◆ SGI_Symbol() [2/3]

SGI_Symbol ( )
privatedelete

◆ SGI_Symbol() [3/3]

SGI_Symbol ( const SGI_Symbol other)
privatedelete

Member Function Documentation

◆ updateCacheAndRepaint()

void updateCacheAndRepaint ( )
noexcept
+ Here is the call graph for this function:

◆ boundingRect()

QRectF boundingRect ( ) const
inlinenoexcept
+ Here is the caller graph for this function:

◆ shape()

QPainterPath shape ( ) const
inlinenoexcept

◆ paint()

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

◆ operator=()

SGI_Symbol& operator= ( const SGI_Symbol rhs)
privatedelete

◆ getLayer()

GraphicsLayer * getLayer ( const QString &  name) const
privatenoexcept
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Member Data Documentation

◆ mSymbol

SI_Symbol& mSymbol
private

◆ mLibSymbol

const library::Symbol& mLibSymbol
private

◆ mFont

QFont mFont
private

◆ mBoundingRect

QRectF mBoundingRect
private

◆ mShape

QPainterPath mShape
private

◆ mCachedTextProperties

QHash<const Text*, CachedTextProperties_t> mCachedTextProperties
private

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