LibrePCB Developers Documentation
PadHole Class Reference

The PadHole class. More...

#include <padhole.h>

+ Collaboration diagram for PadHole:

Public Types

enum  Event
 
typedef Slot< PadHole, EventOnEditedSlot
 

Public Member Functions

 PadHole ()=delete
 
 PadHole (const PadHole &other) noexcept
 
 PadHole (const Uuid &uuid, const PadHole &other) noexcept
 
 PadHole (const Uuid &uuid, const PositiveLength &diameter, const NonEmptyPath &path) noexcept
 
 PadHole (const SExpression &node)
 
virtual ~PadHole () noexcept
 
const UuidgetUuid () const noexcept
 
const PositiveLengthgetDiameter () const noexcept
 
const NonEmptyPathgetPath () const noexcept
 
bool isSlot () const noexcept
 
bool isMultiSegmentSlot () const noexcept
 
bool isCurvedSlot () const noexcept
 
bool setDiameter (const PositiveLength &diameter) noexcept
 
bool setPath (const NonEmptyPath &path) noexcept
 
virtual void serialize (SExpression &root) const
 Serialize into librepcb::SExpression node. More...
 
bool operator== (const PadHole &rhs) const noexcept
 
bool operator!= (const PadHole &rhs) const noexcept
 
PadHoleoperator= (const PadHole &rhs) noexcept
 

Public Attributes

Signal< PadHole, EventonEdited
 

Protected Attributes

Uuid mUuid
 
PositiveLength mDiameter
 
NonEmptyPath mPath
 

Detailed Description

The PadHole class.

Member Typedef Documentation

◆ OnEditedSlot

Member Enumeration Documentation

◆ Event

enum Event
strong
Enumerator
UuidChanged 
DiameterChanged 
PathChanged 

Constructor & Destructor Documentation

◆ PadHole() [1/5]

PadHole ( )
delete

◆ PadHole() [2/5]

PadHole ( const PadHole other)
noexcept

◆ PadHole() [3/5]

PadHole ( const Uuid uuid,
const PadHole other 
)
noexcept

◆ PadHole() [4/5]

PadHole ( const Uuid uuid,
const PositiveLength diameter,
const NonEmptyPath path 
)
noexcept

◆ PadHole() [5/5]

PadHole ( const SExpression node)
explicit

◆ ~PadHole()

~PadHole ( )
virtualnoexcept

Member Function Documentation

◆ getUuid()

const Uuid& getUuid ( ) const
inlinenoexcept

◆ getDiameter()

const PositiveLength& getDiameter ( ) const
inlinenoexcept
+ Here is the caller graph for this function:

◆ getPath()

const NonEmptyPath& getPath ( ) const
inlinenoexcept
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ isSlot()

bool isSlot ( ) const
noexcept
+ Here is the caller graph for this function:

◆ isMultiSegmentSlot()

bool isMultiSegmentSlot ( ) const
noexcept
+ Here is the caller graph for this function:

◆ isCurvedSlot()

bool isCurvedSlot ( ) const
noexcept
+ Here is the caller graph for this function:

◆ setDiameter()

bool setDiameter ( const PositiveLength diameter)
noexcept
+ Here is the caller graph for this function:

◆ setPath()

bool setPath ( const NonEmptyPath path)
noexcept
+ Here is the caller graph for this function:

◆ serialize()

void serialize ( SExpression root) const
virtual

Serialize into librepcb::SExpression node.

Parameters
rootRoot node to serialize into.
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ operator==()

bool operator== ( const PadHole rhs) const
noexcept
+ Here is the caller graph for this function:

◆ operator!=()

bool operator!= ( const PadHole rhs) const
inlinenoexcept
+ Here is the call graph for this function:

◆ operator=()

PadHole & operator= ( const PadHole rhs)
noexcept
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Member Data Documentation

◆ onEdited

Signal<PadHole, Event> onEdited

◆ mUuid

Uuid mUuid
protected

◆ mDiameter

PositiveLength mDiameter
protected

◆ mPath

NonEmptyPath mPath
protected

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