LibrePCB Developers Documentation
BI_Hole Class Referencefinal

The BI_Hole class. More...

#include <bi_hole.h>

+ Inheritance diagram for BI_Hole:
+ Collaboration diagram for BI_Hole:

Public Types

enum class  Event
 
typedef Slot< BI_Hole, EventOnEditedSlot
 

Public Member Functions

 BI_Hole ()=delete
 
 BI_Hole (const BI_Hole &other)=delete
 
 BI_Hole (Board &board, const BoardHoleData &data)
 
 ~BI_Hole () noexcept
 
const BoardHoleDatagetData () const noexcept
 
const tl::optional< Length > & getStopMaskOffset () const noexcept
 
bool setDiameter (const PositiveLength &diameter) noexcept
 
bool setPath (const NonEmptyPath &path) noexcept
 
bool setStopMaskConfig (const MaskConfig &config) noexcept
 
bool setLocked (bool locked) noexcept
 
void addToBoard () override
 
void removeFromBoard () override
 
BI_Holeoperator= (const BI_Hole &rhs)=delete
 
- Public Member Functions inherited from BI_Base
 BI_Base ()=delete
 
 BI_Base (const BI_Base &other)=delete
 
 BI_Base (Board &board) noexcept
 
virtual ~BI_Base () noexcept
 
ProjectgetProject () const noexcept
 
CircuitgetCircuit () const noexcept
 
BoardgetBoard () const noexcept
 
virtual bool isAddedToBoard () const noexcept
 
virtual void addToBoard ()
 
virtual void removeFromBoard ()
 
BI_Baseoperator= (const BI_Base &rhs)=delete
 

Public Attributes

Signal< BI_Hole, EventonEdited
 

Private Member Functions

void updateStopMaskOffset () noexcept
 

Private Attributes

BoardHoleData mData
 
tl::optional< LengthmStopMaskOffset
 

Additional Inherited Members

- Protected Attributes inherited from BI_Base
BoardmBoard
 

Detailed Description

The BI_Hole class.

Member Typedef Documentation

◆ OnEditedSlot

Member Enumeration Documentation

◆ Event

enum class Event
strong
Enumerator
DiameterChanged 
PathChanged 
StopMaskOffsetChanged 

Constructor & Destructor Documentation

◆ BI_Hole() [1/3]

BI_Hole ( )
delete

◆ BI_Hole() [2/3]

BI_Hole ( const BI_Hole other)
delete

◆ BI_Hole() [3/3]

BI_Hole ( Board board,
const BoardHoleData data 
)
+ Here is the call graph for this function:

◆ ~BI_Hole()

~BI_Hole ( )
noexcept

Member Function Documentation

◆ getData()

const BoardHoleData & getData ( ) const
inlinenoexcept
+ Here is the caller graph for this function:

◆ getStopMaskOffset()

const tl::optional< Length > & getStopMaskOffset ( ) const
inlinenoexcept
+ 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:

◆ setStopMaskConfig()

bool setStopMaskConfig ( const MaskConfig config)
noexcept
+ Here is the caller graph for this function:

◆ setLocked()

bool setLocked ( bool  locked)
noexcept
+ Here is the caller graph for this function:

◆ addToBoard()

void addToBoard ( )
overridevirtual

Reimplemented from BI_Base.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ removeFromBoard()

void removeFromBoard ( )
overridevirtual

Reimplemented from BI_Base.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ operator=()

BI_Hole & operator= ( const BI_Hole rhs)
delete

◆ updateStopMaskOffset()

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

Member Data Documentation

◆ onEdited

Signal<BI_Hole, Event> onEdited

◆ mData

BoardHoleData mData
private

◆ mStopMaskOffset

tl::optional<Length> mStopMaskOffset
private

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