The BI_NetSegment class.
More...
#include <bi_netsegment.h>
◆ 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()
◆ getVias()
◆ getNetPoints()
◆ getNetLines()
◆ addElements()
◆ removeElements()
void removeElements |
( |
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_Via * > & |
vias, |
|
|
const QList< BI_NetPoint * > & |
netPoints, |
|
|
const QList< BI_NetLine * > & |
netLines |
|
) |
| |
|
signal |
◆ elementsRemoved
void elementsRemoved |
( |
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!
◆ mVias
◆ mNetPoints
◆ mNetLines
The documentation for this class was generated from the following files: