LibrePCB Developers Documentation
|
The Schematic class represents one schematic page of a project and is always part of a circuit. More...
#include <schematic.h>
Inherits QObject.
Signals | |
void | symbolAdded (SI_Symbol &symbol) |
void | symbolRemoved (SI_Symbol &symbol) |
void | netSegmentAdded (SI_NetSegment &netSegment) |
void | netSegmentRemoved (SI_NetSegment &netSegment) |
void | polygonAdded (SI_Polygon &polygon) |
void | polygonRemoved (SI_Polygon &polygon) |
void | textAdded (SI_Text &text) |
void | textRemoved (SI_Text &text) |
void | attributesChanged () |
Public Member Functions | |
Schematic ()=delete | |
Schematic (const Schematic &other)=delete | |
Schematic (Project &project, std::unique_ptr< TransactionalDirectory > directory, const QString &directoryName, const Uuid &uuid, const ElementName &name) | |
~Schematic () noexcept | |
Project & | getProject () const noexcept |
const QString & | getDirectoryName () const noexcept |
TransactionalDirectory & | getDirectory () noexcept |
bool | isEmpty () const noexcept |
const Uuid & | getUuid () const noexcept |
const ElementName & | getName () const noexcept |
const PositiveLength & | getGridInterval () const noexcept |
const LengthUnit & | getGridUnit () const noexcept |
void | setName (const ElementName &name) noexcept |
void | setGridInterval (const PositiveLength &interval) noexcept |
void | setGridUnit (const LengthUnit &unit) noexcept |
const QMap< Uuid, SI_Symbol * > & | getSymbols () const noexcept |
void | addSymbol (SI_Symbol &symbol) |
void | removeSymbol (SI_Symbol &symbol) |
const QMap< Uuid, SI_NetSegment * > & | getNetSegments () const noexcept |
void | addNetSegment (SI_NetSegment &netsegment) |
void | removeNetSegment (SI_NetSegment &netsegment) |
const QMap< Uuid, SI_Polygon * > & | getPolygons () const noexcept |
void | addPolygon (SI_Polygon &polygon) |
void | removePolygon (SI_Polygon &polygon) |
const QMap< Uuid, SI_Text * > & | getTexts () const noexcept |
void | addText (SI_Text &text) |
void | removeText (SI_Text &text) |
void | addToProject () |
void | removeFromProject () |
void | save () |
void | updateAllNetLabelAnchors () noexcept |
Schematic & | operator= (const Schematic &rhs)=delete |
bool | operator== (const Schematic &rhs) const noexcept |
bool | operator!= (const Schematic &rhs) const noexcept |
Private Attributes | |
Project & | mProject |
A reference to the Project object (from the ctor) | |
const QString | mDirectoryName |
std::unique_ptr< TransactionalDirectory > | mDirectory |
bool | mIsAddedToProject |
Uuid | mUuid |
ElementName | mName |
PositiveLength | mGridInterval |
LengthUnit | mGridUnit |
QMap< Uuid, SI_Symbol * > | mSymbols |
QMap< Uuid, SI_NetSegment * > | mNetSegments |
QMap< Uuid, SI_Polygon * > | mPolygons |
QMap< Uuid, SI_Text * > | mTexts |
The Schematic class represents one schematic page of a project and is always part of a circuit.
A schematic can contain following items:
|
delete |
Schematic | ( | Project & | project, |
std::unique_ptr< TransactionalDirectory > | directory, | ||
const QString & | directoryName, | ||
const Uuid & | uuid, | ||
const ElementName & | name | ||
) |
|
noexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
noexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
noexcept |
|
inlinenoexcept |
|
inlinenoexcept |
void addSymbol | ( | SI_Symbol & | symbol | ) |
void removeSymbol | ( | SI_Symbol & | symbol | ) |
|
inlinenoexcept |
void addNetSegment | ( | SI_NetSegment & | netsegment | ) |
void removeNetSegment | ( | SI_NetSegment & | netsegment | ) |
|
inlinenoexcept |
void addPolygon | ( | SI_Polygon & | polygon | ) |
void removePolygon | ( | SI_Polygon & | polygon | ) |
void addText | ( | SI_Text & | text | ) |
void removeText | ( | SI_Text & | text | ) |
void addToProject | ( | ) |
void removeFromProject | ( | ) |
void save | ( | ) |
|
noexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
signal |
|
signal |
|
signal |
|
signal |
|
signal |
|
signal |
|
signal |
|
signal |
|
signal |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |