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

The SchematicLayerProvider class provides and manages all available schematic layers which are used in the #project#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 noexceptoverride
 
QList< GraphicsLayer * > getAllLayers () const noexceptoverride
 
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 #project#SchematicEditor class.

Constructor & Destructor Documentation

SchematicLayerProvider ( Project project)
explicit

+ Here is the call graph for this function:

~SchematicLayerProvider ( )
noexcept

Member Function Documentation

Project& getProject ( ) const
inlinenoexcept
GraphicsLayer* getLayer ( const QString &  name) const
inlineoverridevirtualnoexcept

Implements IF_GraphicsLayerProvider.

+ Here is the call graph for this function:

QList<GraphicsLayer*> getAllLayers ( ) const
inlineoverridevirtualnoexcept
SchematicLayerProvider& operator= ( const SchematicLayerProvider rhs)
delete
void addLayer ( const QString &  name)
privatenoexcept

+ Here is the caller graph for this function:

Member Data Documentation

Project& mProject
private

A reference to the Project object (from the ctor)

QList<GraphicsLayer*> mLayers
private

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