LibrePCB Developers Documentation
Loading...
Searching...
No Matches
BGI_StrokeText Class Referencefinal

The BGI_StrokeText class. More...

#include <bgi_stroketext.h>

Inherits QGraphicsItemGroup.

+ Collaboration diagram for BGI_StrokeText:

Public Member Functions

 BGI_StrokeText ()=delete
 
 BGI_StrokeText (const BGI_StrokeText &other)=delete
 
 BGI_StrokeText (BI_StrokeText &text, std::weak_ptr< BGI_Device > deviceItem, const IF_GraphicsLayerProvider &lp) noexcept
 
virtual ~BGI_StrokeText () noexcept
 
BI_StrokeTextgetStrokeText () noexcept
 
const std::weak_ptr< BGI_Device > & getDeviceGraphicsItem () noexcept
 
virtual QPainterPath shape () const noexcept override
 
BGI_StrokeTextoperator= (const BGI_StrokeText &rhs)=delete
 

Private Member Functions

void strokeTextEdited (const BI_StrokeText &obj, BI_StrokeText::Event event) noexcept
 
void deviceGraphicsItemEdited (const BGI_Device &obj, BGI_Device::Event event) noexcept
 
virtual QVariant itemChange (GraphicsItemChange change, const QVariant &value) noexcept override
 
void updatePosition () noexcept
 
void updateTransform () noexcept
 
void updateLayer () noexcept
 
void updateStrokeWidth () noexcept
 
void updatePaths () noexcept
 
void updateAnchorLayer () noexcept
 
void updateAnchorLine () noexcept
 

Private Attributes

BI_StrokeTextmText
 
std::weak_ptr< BGI_DevicemDeviceGraphicsItem
 
const IF_GraphicsLayerProvidermLayerProvider
 
QScopedPointer< PrimitivePathGraphicsItemmPathGraphicsItem
 
QScopedPointer< OriginCrossGraphicsItemmOriginCrossGraphicsItem
 
QScopedPointer< LineGraphicsItemmAnchorGraphicsItem
 
BI_StrokeText::OnEditedSlot mOnEditedSlot
 
BGI_Device::OnEditedSlot mOnDeviceEditedSlot
 

Detailed Description

The BGI_StrokeText class.

Constructor & Destructor Documentation

◆ BGI_StrokeText() [1/3]

BGI_StrokeText ( )
delete

◆ BGI_StrokeText() [2/3]

BGI_StrokeText ( const BGI_StrokeText other)
delete

◆ BGI_StrokeText() [3/3]

BGI_StrokeText ( BI_StrokeText text,
std::weak_ptr< BGI_Device deviceItem,
const IF_GraphicsLayerProvider lp 
)
noexcept

◆ ~BGI_StrokeText()

~BGI_StrokeText ( )
virtualnoexcept

Member Function Documentation

◆ getStrokeText()

BI_StrokeText & getStrokeText ( )
inlinenoexcept

◆ getDeviceGraphicsItem()

const std::weak_ptr< BGI_Device > & getDeviceGraphicsItem ( )
inlinenoexcept

◆ shape()

QPainterPath shape ( ) const
overridevirtualnoexcept

◆ operator=()

BGI_StrokeText & operator= ( const BGI_StrokeText rhs)
delete

◆ strokeTextEdited()

void strokeTextEdited ( const BI_StrokeText obj,
BI_StrokeText::Event  event 
)
privatenoexcept

◆ deviceGraphicsItemEdited()

void deviceGraphicsItemEdited ( const BGI_Device obj,
BGI_Device::Event  event 
)
privatenoexcept

◆ itemChange()

QVariant itemChange ( GraphicsItemChange  change,
const QVariant &  value 
)
overrideprivatevirtualnoexcept

◆ updatePosition()

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

◆ updateTransform()

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

◆ updateLayer()

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

◆ updateStrokeWidth()

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

◆ updatePaths()

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

◆ updateAnchorLayer()

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

◆ updateAnchorLine()

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

Member Data Documentation

◆ mText

BI_StrokeText& mText
private

◆ mDeviceGraphicsItem

std::weak_ptr<BGI_Device> mDeviceGraphicsItem
private

◆ mLayerProvider

const IF_GraphicsLayerProvider& mLayerProvider
private

◆ mPathGraphicsItem

QScopedPointer<PrimitivePathGraphicsItem> mPathGraphicsItem
private

◆ mOriginCrossGraphicsItem

QScopedPointer<OriginCrossGraphicsItem> mOriginCrossGraphicsItem
private

◆ mAnchorGraphicsItem

QScopedPointer<LineGraphicsItem> mAnchorGraphicsItem
private

◆ mOnEditedSlot

BI_StrokeText::OnEditedSlot mOnEditedSlot
private

◆ mOnDeviceEditedSlot

BGI_Device::OnEditedSlot mOnDeviceEditedSlot
private

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