LibrePCB Developers Documentation
Loading...
Searching...
No Matches
GraphicsLayerList Class Referencefinal

The GraphicsLayerList class. More...

#include <graphicslayerlist.h>

Inherits QObject.

+ Collaboration diagram for GraphicsLayerList:

Public Member Functions

 GraphicsLayerList ()=delete
 
 ~GraphicsLayerList () noexcept
 
std::shared_ptr< GraphicsLayerget (const QString &name) noexcept
 
std::shared_ptr< const GraphicsLayerget (const QString &name) const noexcept
 
std::shared_ptr< GraphicsLayerget (const Layer &layer) noexcept
 
std::shared_ptr< const GraphicsLayerget (const Layer &layer) const noexcept
 
std::shared_ptr< const GraphicsLayergrabArea (const Layer &outlineLayer) const noexcept
 
const QList< std::shared_ptr< GraphicsLayer > > & all () const noexcept
 
void showTop () noexcept
 
void showBottom () noexcept
 
void showTopAndBottom () noexcept
 
void showAll () noexcept
 
void showNone () noexcept
 

Static Public Member Functions

static std::unique_ptr< GraphicsLayerListpreviewLayers (const WorkspaceSettings *ws) noexcept
 
static std::unique_ptr< GraphicsLayerListlibraryLayers (const WorkspaceSettings *ws) noexcept
 
static std::unique_ptr< GraphicsLayerListschematicLayers (const WorkspaceSettings *ws) noexcept
 
static std::unique_ptr< GraphicsLayerListboardLayers (const WorkspaceSettings *ws) noexcept
 

Private Member Functions

 GraphicsLayerList (const WorkspaceSettings *ws) noexcept
 
void add (const Theme &theme, const QString &name, bool visible=true) noexcept
 
void reloadSettings () noexcept
 
void setVisibleLayers (const QSet< QString > &layers) noexcept
 

Static Private Member Functions

static QSet< QString > getCommonLayers () noexcept
 
static QSet< QString > getTopLayers () noexcept
 
static QSet< QString > getBottomLayers () noexcept
 
static QSet< QString > getAllLayers () noexcept
 

Private Attributes

QPointer< const WorkspaceSettingsmSettings
 
QList< std::shared_ptr< GraphicsLayer > > mLayers
 

Detailed Description

The GraphicsLayerList class.

Constructor & Destructor Documentation

◆ GraphicsLayerList() [1/2]

GraphicsLayerList ( )
delete

◆ ~GraphicsLayerList()

~GraphicsLayerList ( )
noexcept

◆ GraphicsLayerList() [2/2]

GraphicsLayerList ( const WorkspaceSettings ws)
privatenoexcept
+ Here is the call graph for this function:

Member Function Documentation

◆ get() [1/4]

std::shared_ptr< GraphicsLayer > get ( const QString &  name)
noexcept
+ Here is the caller graph for this function:

◆ get() [2/4]

std::shared_ptr< const GraphicsLayer > get ( const QString &  name) const
noexcept

◆ get() [3/4]

std::shared_ptr< GraphicsLayer > get ( const Layer layer)
noexcept

◆ get() [4/4]

std::shared_ptr< const GraphicsLayer > get ( const Layer layer) const
noexcept

◆ grabArea()

std::shared_ptr< const GraphicsLayer > grabArea ( const Layer outlineLayer) const
noexcept
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ all()

const QList< std::shared_ptr< GraphicsLayer > > & all ( ) const
inlinenoexcept

◆ showTop()

void showTop ( )
noexcept
+ Here is the call graph for this function:

◆ showBottom()

void showBottom ( )
noexcept
+ Here is the call graph for this function:

◆ showTopAndBottom()

void showTopAndBottom ( )
noexcept
+ Here is the call graph for this function:

◆ showAll()

void showAll ( )
noexcept

◆ showNone()

void showNone ( )
noexcept

◆ previewLayers()

std::unique_ptr< GraphicsLayerList > previewLayers ( const WorkspaceSettings ws)
staticnoexcept
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ libraryLayers()

std::unique_ptr< GraphicsLayerList > libraryLayers ( const WorkspaceSettings ws)
staticnoexcept
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ schematicLayers()

std::unique_ptr< GraphicsLayerList > schematicLayers ( const WorkspaceSettings ws)
staticnoexcept

◆ boardLayers()

std::unique_ptr< GraphicsLayerList > boardLayers ( const WorkspaceSettings ws)
staticnoexcept
+ Here is the call graph for this function:

◆ add()

void add ( const Theme theme,
const QString &  name,
bool  visible = true 
)
privatenoexcept
+ Here is the call graph for this function:

◆ reloadSettings()

void reloadSettings ( )
privatenoexcept
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ setVisibleLayers()

void setVisibleLayers ( const QSet< QString > &  layers)
privatenoexcept
+ Here is the caller graph for this function:

◆ getCommonLayers()

QSet< QString > getCommonLayers ( )
staticprivatenoexcept
+ Here is the caller graph for this function:

◆ getTopLayers()

QSet< QString > getTopLayers ( )
staticprivatenoexcept
+ Here is the caller graph for this function:

◆ getBottomLayers()

QSet< QString > getBottomLayers ( )
staticprivatenoexcept
+ Here is the caller graph for this function:

◆ getAllLayers()

static QSet< QString > getAllLayers ( )
staticprivatenoexcept

Member Data Documentation

◆ mSettings

QPointer<const WorkspaceSettings> mSettings
private

◆ mLayers

QList<std::shared_ptr<GraphicsLayer> > mLayers
private

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