![]() |
LibrePCB Developers Documentation
|
The BI_NetLine class. More...
#include <bi_netline.h>
Public Member Functions | |
BI_NetLine ()=delete | |
BI_NetLine (const BI_NetLine &other)=delete | |
BI_NetLine (BI_NetSegment &segment, const BI_NetLine &other, BI_NetLineAnchor &startPoint, BI_NetLineAnchor &endPoint) | |
BI_NetLine (BI_NetSegment &segment, const SExpression &node, const QHash< Uuid, QString > &netpointLayerMap, const QHash< Uuid, BI_NetLineAnchor * > &netPointAnchorMap) | |
BI_NetLine (BI_NetSegment &segment, BI_NetLineAnchor &startPoint, BI_NetLineAnchor &endPoint, GraphicsLayer &layer, const PositiveLength &width) | |
~BI_NetLine () noexcept | |
BI_NetSegment & | getNetSegment () const noexcept |
const Uuid & | getUuid () const noexcept |
GraphicsLayer & | getLayer () const noexcept |
const PositiveLength & | getWidth () const noexcept |
BI_NetLineAnchor & | getStartPoint () const noexcept |
BI_NetLineAnchor & | getEndPoint () const noexcept |
BI_NetLineAnchor * | getOtherPoint (const BI_NetLineAnchor &firstPoint) const noexcept |
NetSignal & | getNetSignalOfNetSegment () const noexcept |
bool | isSelectable () const noexceptoverride |
Path | getSceneOutline (const Length &expansion=Length(0)) const noexcept |
void | setLayer (GraphicsLayer &layer) |
void | setWidth (const PositiveLength &width) noexcept |
void | addToBoard () override |
void | removeFromBoard () override |
void | updateLine () noexcept |
void | serialize (SExpression &root) const override |
Serialize the object into an existing S-Expression node. More... | |
Type_t | getType () const noexceptoverride |
const Point & | getPosition () const noexceptoverride |
bool | getIsMirrored () const noexceptoverride |
QPainterPath | getGrabAreaScenePx () const noexceptoverride |
void | setSelected (bool selected) noexceptoverride |
BI_NetLine & | operator= (const BI_NetLine &rhs)=delete |
![]() | |
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 |
virtual bool | isSelected () const noexcept |
BI_Base & | operator= (const BI_Base &rhs)=delete |
![]() | |
SerializableObject () noexcept | |
virtual | ~SerializableObject () noexcept |
SExpression | serializeToDomElement (const QString &name) const |
Serialize the object to a new S-Expression node. More... | |
Private Member Functions | |
void | init () |
BI_NetLineAnchor * | deserializeAnchor (const SExpression &root, const QString &oldKey, const QString &newKey, const QHash< Uuid, BI_NetLineAnchor * > &netPointAnchorMap, Uuid &oldPointUuid) const |
void | serializeAnchor (SExpression &root, BI_NetLineAnchor *anchor) const |
Private Attributes | |
BI_NetSegment & | mNetSegment |
QScopedPointer< BGI_NetLine > | mGraphicsItem |
Point | mPosition |
the center of startpoint and endpoint More... | |
QMetaObject::Connection | mHighlightChangedConnection |
Uuid | mUuid |
BI_NetLineAnchor * | mStartPoint |
BI_NetLineAnchor * | mEndPoint |
GraphicsLayer * | mLayer |
PositiveLength | mWidth |
Additional Inherited Members | |
![]() | |
enum | Type_t |
![]() | |
template<typename T > | |
static void | serializeObjectContainer (SExpression &root, const T &container, const QString &itemName) |
template<typename T > | |
static void | serializePointerContainer (SExpression &root, const T &container, const QString &itemName) |
template<typename T > | |
static void | serializePointerContainerUuidSorted (SExpression &root, const T &container, const QString &itemName) |
![]() | |
void | addToBoard (QGraphicsItem *item) noexcept |
void | removeFromBoard (QGraphicsItem *item) noexcept |
![]() | |
Board & | mBoard |
The BI_NetLine class.
|
delete |
|
delete |
BI_NetLine | ( | BI_NetSegment & | segment, |
const BI_NetLine & | other, | ||
BI_NetLineAnchor & | startPoint, | ||
BI_NetLineAnchor & | endPoint | ||
) |
BI_NetLine | ( | BI_NetSegment & | segment, |
const SExpression & | node, | ||
const QHash< Uuid, QString > & | netpointLayerMap, | ||
const QHash< Uuid, BI_NetLineAnchor * > & | netPointAnchorMap | ||
) |
BI_NetLine | ( | BI_NetSegment & | segment, |
BI_NetLineAnchor & | startPoint, | ||
BI_NetLineAnchor & | endPoint, | ||
GraphicsLayer & | layer, | ||
const PositiveLength & | width | ||
) |
|
noexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
noexcept |
|
noexcept |
|
overridevirtualnoexcept |
void setLayer | ( | GraphicsLayer & | layer | ) |
|
noexcept |
|
overridevirtual |
Implements BI_Base.
|
overridevirtual |
Implements BI_Base.
|
noexcept |
|
overridevirtual |
Serialize the object into an existing S-Expression node.
This method inserts/appends all attributes and childs of the object to an existing S-Expression node. The content which already exists in the given S-Expression node will not be removed.
root | The target DOM root node |
Exception | This method throws an exception if an error occurs. |
Implements SerializableObject.
|
inlineoverridevirtualnoexcept |
|
inlineoverridevirtualnoexcept |
Implements BI_Base.
|
overridevirtualnoexcept |
|
overridevirtualnoexcept |
Reimplemented from BI_Base.
|
delete |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
the center of startpoint and endpoint
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |