20#ifndef LIBREPCB_CORE_BOARDZONEDATA_H
21#define LIBREPCB_CORE_BOARDZONEDATA_H
26#include "../../geometry/zone.h"
51 Zone::Rules rules,
const Path& outline,
bool locked)
noexcept;
63 bool setLayers(
const QSet<const Layer*>& layers);
64 bool setRules(Zone::Rules rules)
noexcept;
80 return !(*
this == rhs);
The BoardZoneData class.
Definition: boardzonedata.h:44
bool setLayers(const QSet< const Layer * > &layers)
Definition: boardzonedata.cpp:95
bool mLocked
Definition: boardzonedata.h:92
bool setOutline(const Path &outline) noexcept
Definition: boardzonedata.cpp:114
const QSet< const Layer * > & getLayers() const noexcept
Definition: boardzonedata.h:57
bool setRules(Zone::Rules rules) noexcept
Definition: boardzonedata.cpp:105
bool operator!=(const BoardZoneData &rhs) const noexcept
Definition: boardzonedata.h:79
Zone::Rules getRules() const noexcept
Definition: boardzonedata.h:58
Uuid mUuid
Definition: boardzonedata.h:88
BoardZoneData & operator=(const BoardZoneData &rhs)=default
Zone::Rules mRules
Definition: boardzonedata.h:90
bool isLocked() const noexcept
Definition: boardzonedata.h:60
Path mOutline
Definition: boardzonedata.h:91
~BoardZoneData() noexcept
Definition: boardzonedata.cpp:88
void serialize(SExpression &root) const
Serialize into librepcb::SExpression node.
Definition: boardzonedata.cpp:136
QSet< const Layer * > mLayers
Definition: boardzonedata.h:89
const Uuid & getUuid() const noexcept
Definition: boardzonedata.h:56
void checkLayers(const QSet< const Layer * > &layers)
Definition: boardzonedata.cpp:171
bool operator==(const BoardZoneData &rhs) const noexcept
Definition: boardzonedata.cpp:158
const Path & getOutline() const noexcept
Definition: boardzonedata.h:59
bool setLocked(bool locked) noexcept
Definition: boardzonedata.cpp:123
The Path class represents a list of vertices connected by straight lines or circular arc segments.
Definition: path.h:58
The SExpression class.
Definition: sexpression.h:69
The Uuid class is a replacement for QUuid to get UUID strings without {} braces.
Definition: uuid.h:58
Definition: occmodel.cpp:77