LibrePCB Developers Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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

Constructor & Destructor Documentation

SI_Base ( )
delete
SI_Base ( const SI_Base other)
delete
SI_Base ( Schematic schematic)
noexcept
~SI_Base ( )
virtualnoexcept

Member Function Documentation

Project & getProject ( ) const
noexcept

+ Here is the call graph for this function:

Circuit & getCircuit ( ) const
noexcept

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Schematic& getSchematic ( ) 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 QPainterPath getGrabAreaScenePx ( ) const
pure virtualnoexcept
virtual bool isAddedToSchematic ( ) const
inlinevirtualnoexcept

+ Here is the caller graph for this function:

virtual bool isSelected ( ) const
inlinevirtualnoexcept

Reimplemented in SI_NetSegment.

+ Here is the caller graph for this function:

void setSelected ( bool  selected)
virtualnoexcept

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

+ Here is the caller graph for this function:

virtual void addToSchematic ( )
pure virtual

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

+ Here is the caller graph for this function:

virtual void removeFromSchematic ( )
pure virtual

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

+ Here is the caller graph for this function:

SI_Base& operator= ( const SI_Base rhs)
delete
void addToSchematic ( SGI_Base item)
protectednoexcept
void removeFromSchematic ( SGI_Base item)
protectednoexcept

Member Data Documentation

Schematic& mSchematic
protected
bool mIsAddedToSchematic
private
bool mIsSelected
private

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