![]() |
LibrePCB Developers Documentation
|
The BI_NetSegment class. More...
#include <bi_netsegment.h>
Inheritance diagram for BI_NetSegment:
Collaboration diagram for BI_NetSegment:Signals | |
| void | elementsAdded (const QList< BI_Via * > &vias, const QList< BI_NetPoint * > &netPoints, const QList< BI_NetLine * > &netLines) |
| void | elementsRemoved (const QList< BI_Via * > &vias, const QList< BI_NetPoint * > &netPoints, const QList< BI_NetLine * > &netLines) |
Public Member Functions | |
| BI_NetSegment ()=delete | |
| BI_NetSegment (const BI_NetSegment &other)=delete | |
| BI_NetSegment (Board &board, const Uuid &uuid, NetSignal *signal) | |
| ~BI_NetSegment () noexcept | |
| const Uuid & | getUuid () const noexcept |
| NetSignal * | getNetSignal () const noexcept |
| QString | getNetNameToDisplay (bool fallback=false) const noexcept |
| bool | isUsed () const noexcept |
| void | setNetSignal (NetSignal *netsignal) |
| const QMap< Uuid, BI_Via * > & | getVias () const noexcept |
| const QMap< Uuid, BI_NetPoint * > & | getNetPoints () const noexcept |
| const QMap< Uuid, BI_NetLine * > & | getNetLines () const noexcept |
| void | addElements (const QList< BI_Via * > &vias, const QList< BI_NetPoint * > &netpoints, const QList< BI_NetLine * > &netlines) |
| void | removeElements (const QList< BI_Via * > &vias, const QList< BI_NetPoint * > &netpoints, const QList< BI_NetLine * > &netlines) |
| void | addToBoard () override |
| void | removeFromBoard () override |
| void | serialize (SExpression &root) const |
| Serialize into librepcb::SExpression node. | |
| BI_NetSegment & | operator= (const BI_NetSegment &rhs)=delete |
| bool | operator== (const BI_NetSegment &rhs) noexcept |
| bool | operator!= (const BI_NetSegment &rhs) noexcept |
Public Member Functions inherited from BI_Base | |
| BI_Base ()=delete | |
| BI_Base (const BI_Base &other)=delete | |
| BI_Base (Board &board) noexcept | |
| virtual | ~BI_Base () noexcept |
| Project & | getProject () const noexcept |
| Circuit & | getCircuit () const noexcept |
| Board & | getBoard () const noexcept |
| virtual bool | isAddedToBoard () const noexcept |
| BI_Base & | operator= (const BI_Base &rhs)=delete |
Private Member Functions | |
| bool | checkAttributesValidity () const noexcept |
| bool | areAllNetPointsConnectedTogether () const noexcept |
| void | findAllConnectedNetPoints (const BI_NetLineAnchor &p, QSet< const BI_Via * > &vias, QSet< const BI_FootprintPad * > &pads, QSet< const BI_NetPoint * > &points) const noexcept |
Private Attributes | |
| Uuid | mUuid |
| NetSignal * | mNetSignal |
| QMap< Uuid, BI_Via * > | mVias |
| QMap< Uuid, BI_NetPoint * > | mNetPoints |
| QMap< Uuid, BI_NetLine * > | mNetLines |
Additional Inherited Members | |
Protected Attributes inherited from BI_Base | |
| Board & | mBoard |
The BI_NetSegment class.
|
delete |
|
delete |
| BI_NetSegment | ( | Board & | board, |
| const Uuid & | uuid, | ||
| NetSignal * | signal | ||
| ) |
|
noexcept |
|
inlinenoexcept |
Here is the caller graph for this function:
|
inlinenoexcept |
Get the net signal this segment belongs to
Here is the caller graph for this function:
|
noexcept |
Get the net name to display
If connected to a net, the net name is returned. Otherwise a fallback string is returned (either an empty string, or something like "(no net)" in the user's locale). This is just for convenience to avoid implementing exactly the same logic in many different modules.
| fallback | If the segment has no net, this determines whether an empty string should be returned (false, default) or something like "(no net)". |
Here is the caller graph for this function:
|
noexcept |
Here is the caller graph for this function:| void setNetSignal | ( | NetSignal * | netsignal | ) |
Here is the call graph for this function:
Here is the caller graph for this function:
Here is the caller graph for this function:
|
inlinenoexcept |
Here is the caller graph for this function:
|
inlinenoexcept |
Here is the caller graph for this function:| void addElements | ( | const QList< BI_Via * > & | vias, |
| const QList< BI_NetPoint * > & | netpoints, | ||
| const QList< BI_NetLine * > & | netlines | ||
| ) |
Here is the call graph for this function:
Here is the caller graph for this function:| void removeElements | ( | const QList< BI_Via * > & | vias, |
| const QList< BI_NetPoint * > & | netpoints, | ||
| const QList< BI_NetLine * > & | netlines | ||
| ) |
Here is the call graph for this function:
Here is the caller graph for this function:
|
overridevirtual |
Reimplemented from BI_Base.
Here is the call graph for this function:
Here is the caller graph for this function:
|
overridevirtual |
Reimplemented from BI_Base.
Here is the call graph for this function:
Here is the caller graph for this function:| void serialize | ( | SExpression & | root | ) | const |
Serialize into librepcb::SExpression node.
| root | Root node to serialize into. |
Here is the call graph for this function:
|
delete |
|
inlinenoexcept |
|
inlinenoexcept |
|
signal |
Here is the caller graph for this function:
|
signal |
Here is the caller graph for this function:
|
privatenoexcept |
Here is the call graph for this function:
Here is the caller graph for this function:
|
privatenoexcept |
Here is the call graph for this function:
Here is the caller graph for this function:
|
privatenoexcept |
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
|
private |
The net signal this segment belongs to
This is nullptr if not connected!
|
private |
|
private |