LibrePCB Developers Documentation
Loading...
Searching...
No Matches
SchematicSelectionQuery Class Referencefinal

The SchematicSelectionQuery class. More...

#include <schematicselectionquery.h>

Inherits QObject.

+ Collaboration diagram for SchematicSelectionQuery:

Classes

struct  BusSegmentItems
 
struct  NetSegmentItems
 

Public Member Functions

 SchematicSelectionQuery ()=delete
 
 SchematicSelectionQuery (const SchematicSelectionQuery &other)=delete
 
 SchematicSelectionQuery (SchematicGraphicsScene &scene, QObject *parent=nullptr)
 
 ~SchematicSelectionQuery () noexcept
 
const QSet< SI_Symbol * > & getSymbols () const noexcept
 
const QSet< SI_BusJunction * > & getBusJunctions () const noexcept
 
const QSet< SI_BusLine * > & getBusLines () const noexcept
 
const QSet< SI_BusLabel * > & getBusLabels () const noexcept
 
const QSet< SI_NetPoint * > & getNetPoints () const noexcept
 
const QSet< SI_NetLine * > & getNetLines () const noexcept
 
const QSet< SI_NetLabel * > & getNetLabels () const noexcept
 
const QSet< SI_Polygon * > & getPolygons () const noexcept
 
const QSet< SI_Text * > & getTexts () const noexcept
 
const QSet< SI_Image * > & getImages () const noexcept
 
QHash< SI_BusSegment *, BusSegmentItemsgetBusSegmentItems () const noexcept
 Get bus junctions, lines and labels grouped by bus segment.
 
QHash< SI_NetSegment *, NetSegmentItemsgetNetSegmentItems () const noexcept
 Get net points, net lines and net labels grouped by net segment.
 
int getResultCount () const noexcept
 
bool isResultEmpty () const noexcept
 
void addSelectedSymbols () noexcept
 
void addSelectedBusJunctions () noexcept
 
void addSelectedBusLines () noexcept
 
void addSelectedBusLabels () noexcept
 
void addSelectedNetPoints () noexcept
 
void addSelectedNetLines () noexcept
 
void addSelectedNetLabels () noexcept
 
void addSelectedPolygons () noexcept
 
void addSelectedSchematicTexts () noexcept
 
void addSelectedSymbolTexts () noexcept
 
void addSelectedImages () noexcept
 
void addJunctionsOfBusLines (bool onlyIfAllLinesSelected=false) noexcept
 Add junctions of the selected bus lines.
 
void addNetPointsOfNetLines (bool onlyIfAllNetLinesSelected=false) noexcept
 Add net points of the selected net lines.
 
void addNetLinesOfSymbolPins () noexcept
 
SchematicSelectionQueryoperator= (const SchematicSelectionQuery &rhs)=delete
 

Private Attributes

SchematicGraphicsScenemScene
 
QSet< SI_Symbol * > mResultSymbols
 
QSet< SI_BusJunction * > mResultBusJunctions
 
QSet< SI_BusLine * > mResultBusLines
 
QSet< SI_BusLabel * > mResultBusLabels
 
QSet< SI_NetPoint * > mResultNetPoints
 
QSet< SI_NetLine * > mResultNetLines
 
QSet< SI_NetLabel * > mResultNetLabels
 
QSet< SI_Polygon * > mResultPolygons
 
QSet< SI_Text * > mResultTexts
 
QSet< SI_Image * > mResultImages
 

Detailed Description

Constructor & Destructor Documentation

◆ SchematicSelectionQuery() [1/3]

◆ SchematicSelectionQuery() [2/3]

◆ SchematicSelectionQuery() [3/3]

SchematicSelectionQuery ( SchematicGraphicsScene scene,
QObject *  parent = nullptr 
)
explicit

◆ ~SchematicSelectionQuery()

~SchematicSelectionQuery ( )
noexcept

Member Function Documentation

◆ getSymbols()

const QSet< SI_Symbol * > & getSymbols ( ) const
inlinenoexcept
+ Here is the caller graph for this function:

◆ getBusJunctions()

const QSet< SI_BusJunction * > & getBusJunctions ( ) const
inlinenoexcept
+ Here is the caller graph for this function:

◆ getBusLines()

const QSet< SI_BusLine * > & getBusLines ( ) const
inlinenoexcept
+ Here is the caller graph for this function:

◆ getBusLabels()

const QSet< SI_BusLabel * > & getBusLabels ( ) const
inlinenoexcept
+ Here is the caller graph for this function:

◆ getNetPoints()

const QSet< SI_NetPoint * > & getNetPoints ( ) const
inlinenoexcept
+ Here is the caller graph for this function:

◆ getNetLines()

const QSet< SI_NetLine * > & getNetLines ( ) const
inlinenoexcept
+ Here is the caller graph for this function:

◆ getNetLabels()

const QSet< SI_NetLabel * > & getNetLabels ( ) const
inlinenoexcept
+ Here is the caller graph for this function:

◆ getPolygons()

const QSet< SI_Polygon * > & getPolygons ( ) const
inlinenoexcept
+ Here is the caller graph for this function:

◆ getTexts()

const QSet< SI_Text * > & getTexts ( ) const
inlinenoexcept
+ Here is the caller graph for this function:

◆ getImages()

const QSet< SI_Image * > & getImages ( ) const
inlinenoexcept
+ Here is the caller graph for this function:

◆ getBusSegmentItems()

QHash< SI_BusSegment *, SchematicSelectionQuery::BusSegmentItems > getBusSegmentItems ( ) const
noexcept

Get bus junctions, lines and labels grouped by bus segment.

Same as getBusJunctions(), getBusLines() and getBusLabels(), but grouped by their corresponding bus segments. Only bus segments containing selected items are returned.

Returns
List of bus segments containing the selected items
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getNetSegmentItems()

QHash< SI_NetSegment *, SchematicSelectionQuery::NetSegmentItems > getNetSegmentItems ( ) const
noexcept

Get net points, net lines and net labels grouped by net segment.

Same as getNetPoints(), getNetLines() and getNetLabels(), but grouped by their corresponding net segments. Only net segments containing selected items are returned.

Returns
List of net segments containing the selected items
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getResultCount()

int getResultCount ( ) const
noexcept
+ Here is the caller graph for this function:

◆ isResultEmpty()

bool isResultEmpty ( ) const
inlinenoexcept
+ Here is the call graph for this function:

◆ addSelectedSymbols()

void addSelectedSymbols ( )
noexcept
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ addSelectedBusJunctions()

void addSelectedBusJunctions ( )
noexcept
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ addSelectedBusLines()

void addSelectedBusLines ( )
noexcept
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ addSelectedBusLabels()

void addSelectedBusLabels ( )
noexcept
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ addSelectedNetPoints()

void addSelectedNetPoints ( )
noexcept
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ addSelectedNetLines()

void addSelectedNetLines ( )
noexcept
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ addSelectedNetLabels()

void addSelectedNetLabels ( )
noexcept
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ addSelectedPolygons()

void addSelectedPolygons ( )
noexcept
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ addSelectedSchematicTexts()

void addSelectedSchematicTexts ( )
noexcept
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ addSelectedSymbolTexts()

void addSelectedSymbolTexts ( )
noexcept
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ addSelectedImages()

void addSelectedImages ( )
noexcept
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ addJunctionsOfBusLines()

void addJunctionsOfBusLines ( bool  onlyIfAllLinesSelected = false)
noexcept

Add junctions of the selected bus lines.

Parameters
onlyIfAllLinesSelectedIf true, junctions are added only if all connected lines are selected. If false, junctions are added if at least one of the connected lines is selected.
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ addNetPointsOfNetLines()

void addNetPointsOfNetLines ( bool  onlyIfAllNetLinesSelected = false)
noexcept

Add net points of the selected net lines.

Parameters
onlyIfAllNetLinesSelectedIf true, net points are added only if all connected net lines are selected. If false, net points are added if at least one of the connected net lines is selected.
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ addNetLinesOfSymbolPins()

void addNetLinesOfSymbolPins ( )
noexcept
+ Here is the call graph for this function:

◆ operator=()

SchematicSelectionQuery & operator= ( const SchematicSelectionQuery rhs)
delete

Member Data Documentation

◆ mScene

SchematicGraphicsScene& mScene
private

◆ mResultSymbols

QSet<SI_Symbol*> mResultSymbols
private

◆ mResultBusJunctions

QSet<SI_BusJunction*> mResultBusJunctions
private

◆ mResultBusLines

QSet<SI_BusLine*> mResultBusLines
private

◆ mResultBusLabels

QSet<SI_BusLabel*> mResultBusLabels
private

◆ mResultNetPoints

QSet<SI_NetPoint*> mResultNetPoints
private

◆ mResultNetLines

QSet<SI_NetLine*> mResultNetLines
private

◆ mResultNetLabels

QSet<SI_NetLabel*> mResultNetLabels
private

◆ mResultPolygons

QSet<SI_Polygon*> mResultPolygons
private

◆ mResultTexts

QSet<SI_Text*> mResultTexts
private

◆ mResultImages

QSet<SI_Image*> mResultImages
private

The documentation for this class was generated from the following files: