LibrePCB Developers Documentation
SchematicLayerProvider Class Referencefinal

The SchematicLayerProvider class provides and manages all available schematic layers which are used in the librepcb::project::editor::SchematicEditor class. More...

#include <schematiclayerprovider.h>

+ Inheritance diagram for SchematicLayerProvider:
+ Collaboration diagram for SchematicLayerProvider:

Public Member Functions

 SchematicLayerProvider ()=delete
 
 SchematicLayerProvider (const SchematicLayerProvider &other)=delete
 
 SchematicLayerProvider (Project &project)
 
 ~SchematicLayerProvider () noexcept
 
ProjectgetProject () const noexcept
 
GraphicsLayergetLayer (const QString &name) const noexcept override
 
QList< GraphicsLayer * > getAllLayers () const noexcept override
 
SchematicLayerProvideroperator= (const SchematicLayerProvider &rhs)=delete
 
- Public Member Functions inherited from IF_GraphicsLayerProvider
virtual ~IF_GraphicsLayerProvider ()
 
GraphicsLayergetGrabAreaLayer (const QString outlineLayerName) const noexcept
 
QList< GraphicsLayer * > getSchematicGeometryElementLayers () const noexcept
 
QList< GraphicsLayer * > getBoardGeometryElementLayers () const noexcept
 
QList< GraphicsLayer * > getLayers (const QStringList &layerNames) const noexcept
 

Private Member Functions

void addLayer (const QString &name) noexcept
 

Private Attributes

ProjectmProject
 A reference to the Project object (from the ctor) More...
 
QList< GraphicsLayer * > mLayers
 

Detailed Description

The SchematicLayerProvider class provides and manages all available schematic layers which are used in the librepcb::project::editor::SchematicEditor class.

Constructor & Destructor Documentation

◆ SchematicLayerProvider() [1/3]

◆ SchematicLayerProvider() [2/3]

◆ SchematicLayerProvider() [3/3]

SchematicLayerProvider ( Project project)
explicit
+ Here is the call graph for this function:

◆ ~SchematicLayerProvider()

~SchematicLayerProvider ( )
noexcept

Member Function Documentation

◆ getProject()

Project& getProject ( ) const
inlinenoexcept

◆ getLayer()

GraphicsLayer* getLayer ( const QString &  name) const
inlineoverridevirtualnoexcept

Implements IF_GraphicsLayerProvider.

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

◆ getAllLayers()

QList<GraphicsLayer*> getAllLayers ( ) const
inlineoverridevirtualnoexcept

Implements IF_GraphicsLayerProvider.

+ Here is the call graph for this function:

◆ operator=()

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

◆ addLayer()

void addLayer ( const QString &  name)
privatenoexcept
+ Here is the caller graph for this function:

Member Data Documentation

◆ mProject

Project& mProject
private

A reference to the Project object (from the ctor)

◆ mLayers

QList<GraphicsLayer*> mLayers
private

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