LibrePCB Developers Documentation
SymbolPinPreviewGraphicsItem Class Referencefinal

The SymbolPinPreviewGraphicsItem class. More...

#include <symbolpinpreviewgraphicsitem.h>

Inherits QGraphicsItem.

+ Collaboration diagram for SymbolPinPreviewGraphicsItem:

Public Member Functions

 SymbolPinPreviewGraphicsItem (const IF_GraphicsLayerProvider &layerProvider, const SymbolPin &pin, const ComponentSignal *compSignal, const CmpSigPinDisplayType &displayType) noexcept
 
 ~SymbolPinPreviewGraphicsItem () noexcept
 
void setDrawBoundingRect (bool enable) noexcept
 
void updateCacheAndRepaint () noexcept
 
QRectF boundingRect () const noexcept override
 
QPainterPath shape () const noexcept override
 
void paint (QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget=0) noexcept override
 

Private Member Functions

 SymbolPinPreviewGraphicsItem ()=delete
 
 SymbolPinPreviewGraphicsItem (const SymbolPinPreviewGraphicsItem &other)=delete
 
SymbolPinPreviewGraphicsItemoperator= (const SymbolPinPreviewGraphicsItem &rhs)=delete
 

Private Attributes

const SymbolPinmPin
 
const ComponentSignalmComponentSignal
 
CmpSigPinDisplayType mDisplayType
 
GraphicsLayermCircleLayer
 
GraphicsLayermLineLayer
 
GraphicsLayermTextLayer
 
QFont mFont
 
qreal mRadiusPx
 
bool mDrawBoundingRect
 
QStaticText mStaticText
 
bool mRotate180
 
QRectF mBoundingRect
 
QPointF mTextOrigin
 
QRectF mTextBoundingRect
 
QPainterPath mShape
 

Detailed Description

Constructor & Destructor Documentation

◆ SymbolPinPreviewGraphicsItem() [1/3]

SymbolPinPreviewGraphicsItem ( const IF_GraphicsLayerProvider layerProvider,
const SymbolPin pin,
const ComponentSignal compSignal,
const CmpSigPinDisplayType displayType 
)
explicitnoexcept
+ Here is the call graph for this function:

◆ ~SymbolPinPreviewGraphicsItem()

◆ SymbolPinPreviewGraphicsItem() [2/3]

SymbolPinPreviewGraphicsItem ( )
privatedelete
+ Here is the caller graph for this function:

◆ SymbolPinPreviewGraphicsItem() [3/3]

Member Function Documentation

◆ setDrawBoundingRect()

void setDrawBoundingRect ( bool  enable)
inlinenoexcept
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ updateCacheAndRepaint()

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

◆ boundingRect()

QRectF boundingRect ( ) const
inlineoverridenoexcept

◆ shape()

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

◆ paint()

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

◆ operator=()

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

Member Data Documentation

◆ mPin

const SymbolPin& mPin
private

◆ mComponentSignal

const ComponentSignal* mComponentSignal
private

◆ mDisplayType

CmpSigPinDisplayType mDisplayType
private

◆ mCircleLayer

GraphicsLayer* mCircleLayer
private

◆ mLineLayer

GraphicsLayer* mLineLayer
private

◆ mTextLayer

GraphicsLayer* mTextLayer
private

◆ mFont

QFont mFont
private

◆ mRadiusPx

qreal mRadiusPx
private

◆ mDrawBoundingRect

bool mDrawBoundingRect
private

◆ mStaticText

QStaticText mStaticText
private

◆ mRotate180

bool mRotate180
private

◆ mBoundingRect

QRectF mBoundingRect
private

◆ mTextOrigin

QPointF mTextOrigin
private

◆ mTextBoundingRect

QRectF mTextBoundingRect
private

◆ mShape

QPainterPath mShape
private

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