LibrePCB Developers Documentation
MsgPadClearanceViolation Class Referencefinal

The MsgPadClearanceViolation class. More...

#include <packagecheckmessages.h>

+ Inheritance diagram for MsgPadClearanceViolation:
+ Collaboration diagram for MsgPadClearanceViolation:

Public Member Functions

 MsgPadClearanceViolation ()=delete
 
 MsgPadClearanceViolation (std::shared_ptr< const Footprint > footprint, std::shared_ptr< const FootprintPad > pad1, const QString &pkgPad1Name, std::shared_ptr< const FootprintPad > pad2, const QString &pkgPad2Name, const Length &clearance) noexcept
 
 MsgPadClearanceViolation (const MsgPadClearanceViolation &other) noexcept
 
virtual ~MsgPadClearanceViolation () noexcept
 
std::shared_ptr< const FootprintgetFootprint () const noexcept
 
std::shared_ptr< const FootprintPadgetPad1 () const noexcept
 
std::shared_ptr< const FootprintPadgetPad2 () 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
 

Private Attributes

std::shared_ptr< const FootprintmFootprint
 
std::shared_ptr< const FootprintPadmPad1
 
std::shared_ptr< const FootprintPadmPad2
 

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

◆ MsgPadClearanceViolation() [1/3]

◆ MsgPadClearanceViolation() [2/3]

MsgPadClearanceViolation ( std::shared_ptr< const Footprint footprint,
std::shared_ptr< const FootprintPad pad1,
const QString &  pkgPad1Name,
std::shared_ptr< const FootprintPad pad2,
const QString &  pkgPad2Name,
const Length clearance 
)
noexcept

◆ MsgPadClearanceViolation() [3/3]

MsgPadClearanceViolation ( const MsgPadClearanceViolation other)
inlinenoexcept

◆ ~MsgPadClearanceViolation()

virtual ~MsgPadClearanceViolation ( )
inlinevirtualnoexcept

Member Function Documentation

◆ getFootprint()

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

◆ getPad1()

std::shared_ptr< const FootprintPad > getPad1 ( ) const
inlinenoexcept

◆ getPad2()

std::shared_ptr< const FootprintPad > getPad2 ( ) const
inlinenoexcept

Member Data Documentation

◆ mFootprint

std::shared_ptr<const Footprint> mFootprint
private

◆ mPad1

std::shared_ptr<const FootprintPad> mPad1
private

◆ mPad2

std::shared_ptr<const FootprintPad> mPad2
private

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