The BoardGraphicsScene class.
More...
#include <boardgraphicsscene.h>
|
enum | ItemZValue |
| Z Values of all items in a board scene (to define the stacking order) More...
|
|
|
| BoardGraphicsScene ()=delete |
|
| BoardGraphicsScene (const BoardGraphicsScene &other)=delete |
|
| BoardGraphicsScene (Board &board, const IF_GraphicsLayerProvider &lp, std::shared_ptr< const QSet< const NetSignal *>> highlightedNetSignals, QObject *parent=nullptr) noexcept |
|
virtual | ~BoardGraphicsScene () noexcept |
|
Board & | getBoard () noexcept |
|
const QHash< BI_Device *, std::shared_ptr< BGI_Device > > & | getDevices () noexcept |
|
const QHash< BI_FootprintPad *, std::shared_ptr< BGI_FootprintPad > > & | getFootprintPads () noexcept |
|
const QHash< BI_Via *, std::shared_ptr< BGI_Via > > & | getVias () noexcept |
|
const QHash< BI_NetPoint *, std::shared_ptr< BGI_NetPoint > > & | getNetPoints () noexcept |
|
const QHash< BI_NetLine *, std::shared_ptr< BGI_NetLine > > & | getNetLines () noexcept |
|
const QHash< BI_Plane *, std::shared_ptr< BGI_Plane > > & | getPlanes () noexcept |
|
const QHash< BI_Zone *, std::shared_ptr< BGI_Zone > > & | getZones () noexcept |
|
const QHash< BI_Polygon *, std::shared_ptr< BGI_Polygon > > & | getPolygons () noexcept |
|
const QHash< BI_StrokeText *, std::shared_ptr< BGI_StrokeText > > & | getStrokeTexts () noexcept |
|
const QHash< BI_Hole *, std::shared_ptr< BGI_Hole > > & | getHoles () noexcept |
|
const QHash< BI_AirWire *, std::shared_ptr< BGI_AirWire > > & | getAirWires () noexcept |
|
void | selectAll () noexcept |
|
void | selectItemsInRect (const Point &p1, const Point &p2) noexcept |
|
void | selectNetSegment (BI_NetSegment &netSegment) noexcept |
|
void | clearSelection () noexcept |
|
void | updateHighlightedNetSignals () noexcept |
|
BoardGraphicsScene & | operator= (const BoardGraphicsScene &rhs)=delete |
|
| GraphicsScene (QObject *parent=nullptr) noexcept |
|
virtual | ~GraphicsScene () noexcept |
|
void | addItem (QGraphicsItem &item) noexcept |
|
void | removeItem (QGraphicsItem &item) noexcept |
|
void | setSelectionRectColors (const QColor &line, const QColor &fill) noexcept |
|
void | setSelectionRect (const Point &p1, const Point &p2) noexcept |
|
void | clearSelectionRect () noexcept |
|
QPixmap | toPixmap (int dpi, const QColor &background=Qt::transparent) noexcept |
|
QPixmap | toPixmap (const QSize &size, const QColor &background=Qt::transparent) noexcept |
|
|
Board & | mBoard |
|
const IF_GraphicsLayerProvider & | mLayerProvider |
|
std::shared_ptr< const QSet< const NetSignal * > > | mHighlightedNetSignals |
|
QHash< BI_Device *, std::shared_ptr< BGI_Device > > | mDevices |
|
QHash< BI_FootprintPad *, std::shared_ptr< BGI_FootprintPad > > | mFootprintPads |
|
QHash< BI_Via *, std::shared_ptr< BGI_Via > > | mVias |
|
QHash< BI_NetPoint *, std::shared_ptr< BGI_NetPoint > > | mNetPoints |
|
QHash< BI_NetLine *, std::shared_ptr< BGI_NetLine > > | mNetLines |
|
QHash< BI_Plane *, std::shared_ptr< BGI_Plane > > | mPlanes |
|
QHash< BI_Zone *, std::shared_ptr< BGI_Zone > > | mZones |
|
QHash< BI_Polygon *, std::shared_ptr< BGI_Polygon > > | mPolygons |
|
QHash< BI_StrokeText *, std::shared_ptr< BGI_StrokeText > > | mStrokeTexts |
|
QHash< BI_Hole *, std::shared_ptr< BGI_Hole > > | mHoles |
|
QHash< BI_AirWire *, std::shared_ptr< BGI_AirWire > > | mAirWires |
|
◆ ItemZValue
Z Values of all items in a board scene (to define the stacking order)
These values are used for QGraphicsItem::setZValue() to define the stacking order of all items in a board QGraphicsScene. We use integer values, even if the z-value of QGraphicsItem is a qreal attribute...
Low number = background, high number = foreground
◆ BoardGraphicsScene() [1/3]
◆ BoardGraphicsScene() [2/3]
◆ BoardGraphicsScene() [3/3]
◆ ~BoardGraphicsScene()
◆ getBoard()
◆ getDevices()
◆ getFootprintPads()
◆ getVias()
◆ getNetPoints()
◆ getNetLines()
◆ getPlanes()
◆ getZones()
◆ getPolygons()
◆ getStrokeTexts()
◆ getHoles()
◆ getAirWires()
◆ selectAll()
◆ selectItemsInRect()
void selectItemsInRect |
( |
const Point & |
p1, |
|
|
const Point & |
p2 |
|
) |
| |
|
noexcept |
◆ selectNetSegment()
◆ clearSelection()
◆ updateHighlightedNetSignals()
void updateHighlightedNetSignals |
( |
| ) |
|
|
noexcept |
◆ getZValueOfCopperLayer()
qreal getZValueOfCopperLayer |
( |
const Layer & |
layer | ) |
|
|
staticnoexcept |
◆ operator=()
◆ addDevice()
◆ removeDevice()
◆ addFootprintPad()
◆ removeFootprintPad()
◆ addNetSegment()
◆ removeNetSegment()
◆ addNetSegmentElements()
void addNetSegmentElements |
( |
const QList< BI_Via *> & |
vias, |
|
|
const QList< BI_NetPoint *> & |
netPoints, |
|
|
const QList< BI_NetLine *> & |
netLines |
|
) |
| |
|
privatenoexcept |
◆ removeNetSegmentElements()
void removeNetSegmentElements |
( |
const QList< BI_Via *> & |
vias, |
|
|
const QList< BI_NetPoint *> & |
netPoints, |
|
|
const QList< BI_NetLine *> & |
netLines |
|
) |
| |
|
privatenoexcept |
◆ addVia()
◆ removeVia()
void removeVia |
( |
BI_Via & |
via | ) |
|
|
privatenoexcept |
◆ addNetPoint()
◆ removeNetPoint()
◆ addNetLine()
◆ removeNetLine()
◆ addPlane()
◆ removePlane()
◆ addZone()
◆ removeZone()
◆ addPolygon()
◆ removePolygon()
◆ addStrokeText()
◆ removeStrokeText()
◆ addHole()
◆ removeHole()
◆ addAirWire()
◆ removeAirWire()
◆ mBoard
◆ mLayerProvider
◆ mHighlightedNetSignals
std::shared_ptr<const QSet<const NetSignal*> > mHighlightedNetSignals |
|
private |
◆ mDevices
◆ mFootprintPads
◆ mVias
◆ mNetPoints
◆ mNetLines
◆ mPlanes
◆ mZones
◆ mPolygons
◆ mStrokeTexts
◆ mHoles
◆ mAirWires
The documentation for this class was generated from the following files: