LibrePCB Developers Documentation
SI_Base Class Referenceabstract

The Schematic Item Base (SI_Base) class. More...

#include <si_base.h>

+ Inheritance diagram for SI_Base:
+ Collaboration diagram for SI_Base:

Public Types

enum  Type_t
 

Public Member Functions

 SI_Base ()=delete
 
 SI_Base (const SI_Base &other)=delete
 
 SI_Base (Schematic &schematic) noexcept
 
virtual ~SI_Base () noexcept
 
ProjectgetProject () const noexcept
 
CircuitgetCircuit () const noexcept
 
SchematicgetSchematic () const noexcept
 
virtual Type_t getType () const noexcept=0
 
virtual const PointgetPosition () const noexcept=0
 
virtual QPainterPath getGrabAreaScenePx () const noexcept=0
 
virtual bool isAddedToSchematic () const noexcept
 
virtual bool isSelected () const noexcept
 
virtual void setSelected (bool selected) noexcept
 
virtual void addToSchematic ()=0
 
virtual void removeFromSchematic ()=0
 
SI_Baseoperator= (const SI_Base &rhs)=delete
 

Protected Member Functions

void addToSchematic (SGI_Base *item) noexcept
 
void removeFromSchematic (SGI_Base *item) noexcept
 

Protected Attributes

SchematicmSchematic
 

Private Attributes

bool mIsAddedToSchematic
 
bool mIsSelected
 

Detailed Description

The Schematic Item Base (SI_Base) class.

Member Enumeration Documentation

◆ Type_t

Constructor & Destructor Documentation

◆ SI_Base() [1/3]

SI_Base ( )
delete

◆ SI_Base() [2/3]

SI_Base ( const SI_Base other)
delete

◆ SI_Base() [3/3]

SI_Base ( Schematic schematic)
noexcept

◆ ~SI_Base()

~SI_Base ( )
virtualnoexcept

Member Function Documentation

◆ getProject()

Project & getProject ( ) const
noexcept
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getCircuit()

Circuit & getCircuit ( ) const
noexcept
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getSchematic()

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

◆ getType()

virtual Type_t getType ( ) const
pure virtualnoexcept

Implemented in SI_NetSegment, SI_Symbol, SI_NetLine, SI_SymbolPin, SI_NetLabel, and SI_NetPoint.

+ Here is the caller graph for this function:

◆ getPosition()

virtual const Point& getPosition ( ) const
pure virtualnoexcept

Implemented in SI_NetSegment, SI_Symbol, SI_NetLine, SI_SymbolPin, SI_NetLabel, and SI_NetPoint.

+ Here is the caller graph for this function:

◆ getGrabAreaScenePx()

virtual QPainterPath getGrabAreaScenePx ( ) const
pure virtualnoexcept

Implemented in SI_NetSegment, SI_Symbol, SI_NetLine, SI_SymbolPin, SI_NetLabel, and SI_NetPoint.

+ Here is the caller graph for this function:

◆ isAddedToSchematic()

virtual bool isAddedToSchematic ( ) const
inlinevirtualnoexcept
+ Here is the caller graph for this function:

◆ isSelected()

virtual bool isSelected ( ) const
inlinevirtualnoexcept

Reimplemented in SI_NetSegment.

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

◆ setSelected()

void setSelected ( bool  selected)
virtualnoexcept

Reimplemented in SI_NetSegment, SI_Symbol, SI_NetLine, SI_SymbolPin, SI_NetLabel, and SI_NetPoint.

+ Here is the caller graph for this function:

◆ addToSchematic() [1/2]

virtual void addToSchematic ( )
pure virtual

Implemented in SI_NetSegment, SI_Symbol, SI_NetLine, SI_SymbolPin, SI_NetLabel, and SI_NetPoint.

+ Here is the caller graph for this function:

◆ removeFromSchematic() [1/2]

virtual void removeFromSchematic ( )
pure virtual

Implemented in SI_NetSegment, SI_Symbol, SI_NetLine, SI_SymbolPin, SI_NetLabel, and SI_NetPoint.

+ Here is the caller graph for this function:

◆ operator=()

SI_Base& operator= ( const SI_Base rhs)
delete
+ Here is the caller graph for this function:

◆ addToSchematic() [2/2]

void addToSchematic ( SGI_Base item)
protectednoexcept
+ Here is the call graph for this function:

◆ removeFromSchematic() [2/2]

void removeFromSchematic ( SGI_Base item)
protectednoexcept
+ Here is the call graph for this function:

Member Data Documentation

◆ mSchematic

Schematic& mSchematic
protected

◆ mIsAddedToSchematic

bool mIsAddedToSchematic
private

◆ mIsSelected

bool mIsSelected
private

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