LibrePCB Developers Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
BI_Base Class Referenceabstract

The Board Item Base (BI_Base) class. More...

#include <bi_base.h>

+ Inheritance diagram for BI_Base:
+ Collaboration diagram for BI_Base:

Public Types

enum  Type_t
 

Public Member Functions

 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 Type_t getType () const noexcept=0
 
virtual const PointgetPosition () const noexcept=0
 
virtual bool getIsMirrored () const noexcept=0
 
virtual QPainterPath getGrabAreaScenePx () const noexcept=0
 
virtual bool isAddedToBoard () const noexcept
 
virtual bool isSelectable () const noexcept=0
 
virtual bool isSelected () const noexcept
 
virtual void setSelected (bool selected) noexcept
 
virtual void addToBoard ()=0
 
virtual void removeFromBoard ()=0
 
BI_Baseoperator= (const BI_Base &rhs)=delete
 

Protected Member Functions

void addToBoard (QGraphicsItem *item) noexcept
 
void removeFromBoard (QGraphicsItem *item) noexcept
 

Protected Attributes

BoardmBoard
 

Private Attributes

bool mIsAddedToBoard
 
bool mIsSelected
 

Detailed Description

The Board Item Base (BI_Base) class.

Member Enumeration Documentation

Constructor & Destructor Documentation

BI_Base ( )
delete
BI_Base ( const BI_Base other)
delete
BI_Base ( Board board)
noexcept
~BI_Base ( )
virtualnoexcept

Member Function Documentation

Project & getProject ( ) const
noexcept

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Circuit & getCircuit ( ) const
noexcept

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Board& getBoard ( ) const
inlinenoexcept

+ Here is the caller graph for this function:

virtual Type_t getType ( ) const
pure virtualnoexcept
virtual const Point& getPosition ( ) const
pure virtualnoexcept
virtual bool getIsMirrored ( ) const
pure virtualnoexcept
virtual QPainterPath getGrabAreaScenePx ( ) const
pure virtualnoexcept
virtual bool isAddedToBoard ( ) const
inlinevirtualnoexcept

+ Here is the caller graph for this function:

virtual bool isSelectable ( ) const
pure virtualnoexcept
virtual bool isSelected ( ) const
inlinevirtualnoexcept

Reimplemented in BI_NetSegment.

+ Here is the caller graph for this function:

void setSelected ( bool  selected)
virtualnoexcept

Reimplemented in BI_NetSegment, BI_Device, BI_NetLine, BI_Plane, BI_Footprint, BI_Via, BI_FootprintPad, BI_Polygon, BI_StrokeText, BI_NetPoint, BI_Hole, and BI_AirWire.

+ Here is the caller graph for this function:

virtual void addToBoard ( )
pure virtual

Implemented in BI_NetLine, BI_NetSegment, BI_Plane, BI_Device, BI_Footprint, BI_Via, BI_FootprintPad, BI_Polygon, BI_StrokeText, BI_NetPoint, BI_Hole, and BI_AirWire.

+ Here is the caller graph for this function:

virtual void removeFromBoard ( )
pure virtual

Implemented in BI_NetLine, BI_NetSegment, BI_Plane, BI_Device, BI_Footprint, BI_Via, BI_FootprintPad, BI_Polygon, BI_StrokeText, BI_NetPoint, BI_Hole, and BI_AirWire.

+ Here is the caller graph for this function:

BI_Base& operator= ( const BI_Base rhs)
delete
void addToBoard ( QGraphicsItem *  item)
protectednoexcept
void removeFromBoard ( QGraphicsItem *  item)
protectednoexcept

Member Data Documentation

Board& mBoard
protected
bool mIsAddedToBoard
private
bool mIsSelected
private

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