LibrePCB Developers Documentation
BoardZoneData Class Referencefinal

The BoardZoneData class. More...

#include <boardzonedata.h>

+ Collaboration diagram for BoardZoneData:

Public Member Functions

 BoardZoneData ()=delete
 
 BoardZoneData (const BoardZoneData &other) noexcept
 
 BoardZoneData (const Uuid &uuid, const BoardZoneData &other) noexcept
 
 BoardZoneData (const Uuid &uuid, const QSet< const Layer * > &layers, Zone::Rules rules, const Path &outline, bool locked) noexcept
 
 BoardZoneData (const SExpression &node)
 
 ~BoardZoneData () noexcept
 
const UuidgetUuid () const noexcept
 
const QSet< const Layer * > & getLayers () const noexcept
 
Zone::Rules getRules () const noexcept
 
const PathgetOutline () const noexcept
 
bool isLocked () const noexcept
 
bool setLayers (const QSet< const Layer * > &layers)
 
bool setRules (Zone::Rules rules) noexcept
 
bool setOutline (const Path &outline) noexcept
 
bool setLocked (bool locked) noexcept
 
void serialize (SExpression &root) const
 Serialize into librepcb::SExpression node. More...
 
bool operator== (const BoardZoneData &rhs) const noexcept
 
bool operator!= (const BoardZoneData &rhs) const noexcept
 
BoardZoneDataoperator= (const BoardZoneData &rhs)=default
 

Private Member Functions

void checkLayers (const QSet< const Layer * > &layers)
 

Private Attributes

Uuid mUuid
 
QSet< const Layer * > mLayers
 
Zone::Rules mRules
 
Path mOutline
 
bool mLocked
 

Detailed Description

The BoardZoneData class.

Constructor & Destructor Documentation

◆ BoardZoneData() [1/5]

BoardZoneData ( )
delete

◆ BoardZoneData() [2/5]

BoardZoneData ( const BoardZoneData other)
noexcept

◆ BoardZoneData() [3/5]

BoardZoneData ( const Uuid uuid,
const BoardZoneData other 
)
noexcept

◆ BoardZoneData() [4/5]

BoardZoneData ( const Uuid uuid,
const QSet< const Layer * > &  layers,
Zone::Rules  rules,
const Path outline,
bool  locked 
)
noexcept

◆ BoardZoneData() [5/5]

BoardZoneData ( const SExpression node)
explicit
+ Here is the call graph for this function:

◆ ~BoardZoneData()

~BoardZoneData ( )
noexcept

Member Function Documentation

◆ getUuid()

const Uuid & getUuid ( ) const
inlinenoexcept
+ Here is the caller graph for this function:

◆ getLayers()

const QSet< const Layer * > & getLayers ( ) const
inlinenoexcept
+ Here is the caller graph for this function:

◆ getRules()

Zone::Rules getRules ( ) const
inlinenoexcept
+ Here is the caller graph for this function:

◆ getOutline()

const Path & getOutline ( ) const
inlinenoexcept
+ Here is the caller graph for this function:

◆ isLocked()

bool isLocked ( ) const
inlinenoexcept
+ Here is the caller graph for this function:

◆ setLayers()

bool setLayers ( const QSet< const Layer * > &  layers)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ setRules()

bool setRules ( Zone::Rules  rules)
noexcept

◆ setOutline()

bool setOutline ( const Path outline)
noexcept
+ Here is the caller graph for this function:

◆ setLocked()

bool setLocked ( bool  locked)
noexcept

◆ serialize()

void serialize ( SExpression root) const

Serialize into librepcb::SExpression node.

Parameters
rootRoot node to serialize into.
+ Here is the call graph for this function:

◆ operator==()

bool operator== ( const BoardZoneData rhs) const
noexcept

◆ operator!=()

bool operator!= ( const BoardZoneData rhs) const
inlinenoexcept

◆ operator=()

BoardZoneData & operator= ( const BoardZoneData rhs)
default

◆ checkLayers()

void checkLayers ( const QSet< const Layer * > &  layers)
private
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Member Data Documentation

◆ mUuid

Uuid mUuid
private

◆ mLayers

QSet<const Layer*> mLayers
private

◆ mRules

Zone::Rules mRules
private

◆ mOutline

Path mOutline
private

◆ mLocked

bool mLocked
private

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