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

The MsgMinimumWidthViolation class. More...

#include <packagecheckmessages.h>

+ Inheritance diagram for MsgMinimumWidthViolation:
+ Collaboration diagram for MsgMinimumWidthViolation:

Public Member Functions

 MsgMinimumWidthViolation ()=delete
 
 MsgMinimumWidthViolation (std::shared_ptr< const Footprint > footprint, std::shared_ptr< const Polygon > polygon, const Length &minWidth) noexcept
 
 MsgMinimumWidthViolation (std::shared_ptr< const Footprint > footprint, std::shared_ptr< const Circle > circle, const Length &minWidth) noexcept
 
 MsgMinimumWidthViolation (std::shared_ptr< const Footprint > footprint, std::shared_ptr< const StrokeText > text, const Length &minWidth) noexcept
 
 MsgMinimumWidthViolation (const MsgMinimumWidthViolation &other) noexcept
 
virtual ~MsgMinimumWidthViolation () noexcept
 
std::shared_ptr< const FootprintgetFootprint () const noexcept
 
std::shared_ptr< const PolygongetPolygon () const noexcept
 
std::shared_ptr< const CirclegetCircle () const noexcept
 
std::shared_ptr< const StrokeTextgetStrokeText () const noexcept
 
- Public Member Functions inherited from RuleCheckMessage
 RuleCheckMessage ()=delete
 
Severity getSeverity () const noexcept
 
QString getSeverityTr () const noexcept
 
const QIcon & getSeverityIcon () const noexcept
 
const QString & getMessage () const noexcept
 
const QString & getDescription () const noexcept
 
const SExpressiongetApproval () const noexcept
 
const QVector< Path > & getLocations () const noexcept
 
template<typename T >
T * as () noexcept
 
template<typename T >
const T * as () const noexcept
 
bool operator== (const RuleCheckMessage &rhs) const noexcept
 
bool operator!= (const RuleCheckMessage &rhs) const noexcept
 

Static Private Member Functions

static QString getMessage (std::shared_ptr< const Footprint > footprint, const Layer &layer) noexcept
 
static QString getDescriptionAppendix () noexcept
 

Private Attributes

std::shared_ptr< const FootprintmFootprint
 
std::shared_ptr< const PolygonmPolygon
 
std::shared_ptr< const CirclemCircle
 
std::shared_ptr< const StrokeTextmStrokeText
 

Additional Inherited Members

- Public Types inherited from RuleCheckMessage
enum class  Severity
 Message severity type (higher number = higher severity) More...
 
- Static Public Member Functions inherited from RuleCheckMessage
static QString getSeverityTr (Severity severity) noexcept
 
static const QIcon & getSeverityIcon (Severity severity) noexcept
 
static QSet< SExpressiongetAllApprovals (const QVector< std::shared_ptr< const RuleCheckMessage > > &messages) noexcept
 
- Protected Member Functions inherited from RuleCheckMessage
 RuleCheckMessage (const RuleCheckMessage &other) noexcept
 
 RuleCheckMessage (Severity severity, const QString &msg, const QString &description, const QString &approvalName, const QVector< Path > &locations={}) noexcept
 
virtual ~RuleCheckMessage () noexcept
 
- Protected Attributes inherited from RuleCheckMessage
Severity mSeverity
 
QString mMessage
 
QString mDescription
 
std::unique_ptr< SExpressionmApproval
 
QVector< PathmLocations
 

Detailed Description

Constructor & Destructor Documentation

◆ MsgMinimumWidthViolation() [1/5]

◆ MsgMinimumWidthViolation() [2/5]

MsgMinimumWidthViolation ( std::shared_ptr< const Footprint footprint,
std::shared_ptr< const Polygon polygon,
const Length minWidth 
)
noexcept

◆ MsgMinimumWidthViolation() [3/5]

MsgMinimumWidthViolation ( std::shared_ptr< const Footprint footprint,
std::shared_ptr< const Circle circle,
const Length minWidth 
)
noexcept

◆ MsgMinimumWidthViolation() [4/5]

MsgMinimumWidthViolation ( std::shared_ptr< const Footprint footprint,
std::shared_ptr< const StrokeText text,
const Length minWidth 
)
noexcept

◆ MsgMinimumWidthViolation() [5/5]

MsgMinimumWidthViolation ( const MsgMinimumWidthViolation other)
inlinenoexcept

◆ ~MsgMinimumWidthViolation()

virtual ~MsgMinimumWidthViolation ( )
inlinevirtualnoexcept

Member Function Documentation

◆ getFootprint()

std::shared_ptr< const Footprint > getFootprint ( ) const
inlinenoexcept

◆ getPolygon()

std::shared_ptr< const Polygon > getPolygon ( ) const
inlinenoexcept
+ Here is the caller graph for this function:

◆ getCircle()

std::shared_ptr< const Circle > getCircle ( ) const
inlinenoexcept
+ Here is the caller graph for this function:

◆ getStrokeText()

std::shared_ptr< const StrokeText > getStrokeText ( ) const
inlinenoexcept
+ Here is the caller graph for this function:

◆ getMessage()

QString getMessage ( std::shared_ptr< const Footprint footprint,
const Layer layer 
)
staticprivatenoexcept

◆ getDescriptionAppendix()

QString getDescriptionAppendix ( )
staticprivatenoexcept

Member Data Documentation

◆ mFootprint

std::shared_ptr<const Footprint> mFootprint
private

◆ mPolygon

std::shared_ptr<const Polygon> mPolygon
private

◆ mCircle

std::shared_ptr<const Circle> mCircle
private

◆ mStrokeText

std::shared_ptr<const StrokeText> mStrokeText
private

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