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

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

The SymbolPinPreviewGraphicsItem class.

Author
ubruhin
Date
2015-04-21

Constructor & Destructor Documentation

SymbolPinPreviewGraphicsItem ( const IF_GraphicsLayerProvider layerProvider,
const SymbolPin pin,
const ComponentSignal compSignal,
const CmpSigPinDisplayType displayType 
)
explicitnoexcept

+ Here is the call graph for this function:

SymbolPinPreviewGraphicsItem ( )
privatedelete

Member Function Documentation

void setDrawBoundingRect ( bool  enable)
inlinenoexcept

+ Here is the caller graph for this function:

void updateCacheAndRepaint ( )
noexcept

+ Here is the call graph for this function:

QRectF boundingRect ( ) const
inlineoverridenoexcept
QPainterPath shape ( ) const
inlineoverridenoexcept
void paint ( QPainter *  painter,
const QStyleOptionGraphicsItem *  option,
QWidget *  widget = 0 
)
overridenoexcept

+ Here is the call graph for this function:

SymbolPinPreviewGraphicsItem& operator= ( const SymbolPinPreviewGraphicsItem rhs)
privatedelete

Member Data Documentation

const SymbolPin& mPin
private
const ComponentSignal* mComponentSignal
private
CmpSigPinDisplayType mDisplayType
private
GraphicsLayer* mCircleLayer
private
GraphicsLayer* mLineLayer
private
GraphicsLayer* mTextLayer
private
QFont mFont
private
qreal mRadiusPx
private
bool mDrawBoundingRect
private
QStaticText mStaticText
private
bool mRotate180
private
QRectF mBoundingRect
private
QPointF mTextOrigin
private
QRectF mTextBoundingRect
private
QPainterPath mShape
private

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