The BI_NetSegment class.
More...
#include <bi_netsegment.h>
|
| | 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_Pad * > & | getPads () const noexcept |
| |
| 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_Pad * > &pads, const QList< BI_Via * > &vias, const QList< BI_NetPoint * > &netpoints, const QList< BI_NetLine * > &netlines) |
| |
| void | removeElements (const QList< BI_Pad * > &pads, 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 |
| |
| | 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 |
| |
◆ BI_NetSegment() [1/3]
◆ BI_NetSegment() [2/3]
◆ BI_NetSegment() [3/3]
◆ ~BI_NetSegment()
◆ getUuid()
| const Uuid & getUuid |
( |
| ) |
const |
|
inlinenoexcept |
◆ getNetSignal()
Get the net signal this segment belongs to
- Note
- If the net segment is not connected to any net (which is allowed), nullptr is returned.
- Returns
- Pointer to the net signal (nullptr if unconnected)
◆ getNetNameToDisplay()
| QString getNetNameToDisplay |
( |
bool |
fallback = false | ) |
const |
|
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.
- Parameters
-
| fallback | If the segment has no net, this determines whether an empty string should be returned (false, default) or something like "(no net)". |
- Returns
- The net name or the fallback.
◆ isUsed()
◆ setNetSignal()
◆ getPads()
◆ getVias()
◆ getNetPoints()
◆ getNetLines()
◆ addElements()
| void addElements |
( |
const QList< BI_Pad * > & |
pads, |
|
|
const QList< BI_Via * > & |
vias, |
|
|
const QList< BI_NetPoint * > & |
netpoints, |
|
|
const QList< BI_NetLine * > & |
netlines |
|
) |
| |
◆ removeElements()
| void removeElements |
( |
const QList< BI_Pad * > & |
pads, |
|
|
const QList< BI_Via * > & |
vias, |
|
|
const QList< BI_NetPoint * > & |
netpoints, |
|
|
const QList< BI_NetLine * > & |
netlines |
|
) |
| |
◆ addToBoard()
◆ removeFromBoard()
◆ serialize()
◆ operator=()
◆ operator==()
◆ operator!=()
◆ elementsAdded
| void elementsAdded |
( |
const QList< BI_Pad * > & |
pads, |
|
|
const QList< BI_Via * > & |
vias, |
|
|
const QList< BI_NetPoint * > & |
netPoints, |
|
|
const QList< BI_NetLine * > & |
netLines |
|
) |
| |
|
signal |
◆ elementsRemoved
| void elementsRemoved |
( |
const QList< BI_Pad * > & |
pads, |
|
|
const QList< BI_Via * > & |
vias, |
|
|
const QList< BI_NetPoint * > & |
netPoints, |
|
|
const QList< BI_NetLine * > & |
netLines |
|
) |
| |
|
signal |
◆ checkAttributesValidity()
| bool checkAttributesValidity |
( |
| ) |
const |
|
privatenoexcept |
◆ areAllNetPointsConnectedTogether()
| bool areAllNetPointsConnectedTogether |
( |
| ) |
const |
|
privatenoexcept |
◆ findAllConnectedNetPoints()
◆ mUuid
◆ mNetSignal
The net signal this segment belongs to
This is nullptr if not connected!
◆ mPads
◆ mVias
◆ mNetPoints
◆ mNetLines
The documentation for this class was generated from the following files: