The BGI_Plane class.
More...
#include <bgi_plane.h>
Inherits QGraphicsItem.
◆ BGI_Plane() [1/3]
◆ BGI_Plane() [2/3]
◆ BGI_Plane() [3/3]
◆ ~BGI_Plane()
◆ getLineIndexAtPosition()
int getLineIndexAtPosition |
( |
const Point & |
pos | ) |
const |
|
noexcept |
Get the line segment at a specific position
- Parameters
-
pos | The position to check for lines. |
- Returns
- The index of the vertex after the line under the cursor. So for the first line segment, index 1 is returned. If no line is located under the specified position, -1 is returned.
◆ getVertexIndicesAtPosition()
QVector< int > getVertexIndicesAtPosition |
( |
const Point & |
pos | ) |
const |
|
noexcept |
Get the vertices at a specific position
- Parameters
-
pos | The position to check for vertices. |
- Returns
- All indices of the vertices at the specified position.
◆ getPlane()
◆ itemChange()
QVariant itemChange |
( |
GraphicsItemChange |
change, |
|
|
const QVariant & |
value |
|
) |
| |
|
overridenoexcept |
◆ boundingRect()
QRectF boundingRect |
( |
| ) |
const |
|
inlineoverridenoexcept |
◆ shape()
QPainterPath shape |
( |
| ) |
const |
|
overridenoexcept |
◆ paint()
void paint |
( |
QPainter * |
painter, |
|
|
const QStyleOptionGraphicsItem * |
option, |
|
|
QWidget * |
widget = 0 |
|
) |
| |
|
overridenoexcept |
◆ operator=()
◆ planeEdited()
◆ layerEdited()
◆ updateOutlineAndFragments()
void updateOutlineAndFragments |
( |
| ) |
|
|
privatenoexcept |
◆ updateLayer()
◆ updateVisibility()
void updateVisibility |
( |
| ) |
|
|
privatenoexcept |
◆ updateBoundingRectMargin()
void updateBoundingRectMargin |
( |
| ) |
|
|
privatenoexcept |
◆ mPlane
◆ mLayerProvider
◆ mHighlightedNetSignals
std::shared_ptr<const QSet<const NetSignal*> > mHighlightedNetSignals |
|
private |
◆ mLayer
◆ mBoundingRect
◆ mBoundingRectMarginPx
qreal mBoundingRectMarginPx |
|
private |
◆ mShape
◆ mOutline
◆ mAreas
QVector<QPainterPath> mAreas |
|
private |
◆ mLineWidthPx
◆ mVertexHandleRadiusPx
qreal mVertexHandleRadiusPx |
|
private |
◆ mVertexHandles
◆ mOnEditedSlot
◆ mOnLayerEditedSlot
The documentation for this class was generated from the following files:
- /__w/1/s/libs/librepcb/editor/project/boardeditor/graphicsitems/bgi_plane.h
- /__w/1/s/libs/librepcb/editor/project/boardeditor/graphicsitems/bgi_plane.cpp