KiCad PCB EDA Suite
Loading...
Searching...
No Matches
kiapi::board Namespace Reference

Namespaces

namespace  types
 

Functions

void PackLayerSet (google::protobuf::RepeatedField< int > &aOutput, const LSET &aLayerSet)
 
LSET UnpackLayerSet (const google::protobuf::RepeatedField< int > &aProtoLayerSet)
 
void PackBoardStackup (const BOARD &aBoard, BoardStackup &aOut)
 
void PackTeardropSettings (types::PadTeardropSettings &aOutput, const TEARDROP_PARAMETERS &aParams)
 
void UnpackTeardropSettings (TEARDROP_PARAMETERS &aOutput, const types::PadTeardropSettings &aProto)
 
void PackZoneLayerOverrides (google::protobuf::RepeatedPtrField< types::ZoneLayerOverrideEntry > *aOutput, const std::map< PCB_LAYER_ID, ZONE_LAYER_OVERRIDE > &aInput)
 
void UnpackZoneLayerOverrides (std::map< PCB_LAYER_ID, ZONE_LAYER_OVERRIDE > &aOutput, const google::protobuf::RepeatedPtrField< types::ZoneLayerOverrideEntry > &aInput)
 
void PackEmbeddedFiles (common::types::EmbeddedFiles &aOutput, const EMBEDDED_FILES &aFiles)
 
bool UnpackEmbeddedFiles (EMBEDDED_FILES &aOutput, const common::types::EmbeddedFiles &aProto)
 
std::vector< BOARD_ITEM * > FindItemsFromSyncSelection (const BOARD *aBoard, const google::protobuf::RepeatedPtrField< kiapi::common::commands::SelectionSpec > &aItems)
 Resolve a cross-probe selection request against a board.
 
void PackEmbeddedFiles (kiapi::common::types::EmbeddedFiles &aOutput, const EMBEDDED_FILES &aFiles)
 
bool UnpackEmbeddedFiles (EMBEDDED_FILES &aOutput, const kiapi::common::types::EmbeddedFiles &aProto)
 

Function Documentation

◆ FindItemsFromSyncSelection()

std::vector< BOARD_ITEM * > kiapi::board::FindItemsFromSyncSelection ( const BOARD * aBoard,
const google::protobuf::RepeatedPtrField< kiapi::common::commands::SelectionSpec > & aItems )

Resolve a cross-probe selection request against a board.

Parameters
aBoardis the board to search.
aItemsare the specs to resolve, each naming a footprint, a pad or a schematic sheet.
Returns
the matching items, ordered to follow the order of aItems.

Definition at line 290 of file api_pcb_utils.cpp.

References BOARD::Footprints(), index, pad, and kiapi::common::UnpackSheetPath().

Referenced by API_HANDLER_PCB::handleSyncSelection(), and CROSS_PROBE_SELECTION_FIXTURE::Resolve().

◆ PackBoardStackup()

void kiapi::board::PackBoardStackup ( const BOARD & aBoard,
BoardStackup & aOut )

◆ PackEmbeddedFiles() [1/2]

void kiapi::board::PackEmbeddedFiles ( common::types::EmbeddedFiles & aOutput,
const EMBEDDED_FILES & aFiles )

◆ PackEmbeddedFiles() [2/2]

void kiapi::board::PackEmbeddedFiles ( kiapi::common::types::EmbeddedFiles & aOutput,
const EMBEDDED_FILES & aFiles )

◆ PackLayerSet()

void kiapi::board::PackLayerSet ( google::protobuf::RepeatedField< int > & aOutput,
const LSET & aLayerSet )

◆ PackTeardropSettings()

◆ PackZoneLayerOverrides()

void kiapi::board::PackZoneLayerOverrides ( google::protobuf::RepeatedPtrField< types::ZoneLayerOverrideEntry > * aOutput,
const std::map< PCB_LAYER_ID, ZONE_LAYER_OVERRIDE > & aInput )

◆ UnpackEmbeddedFiles() [1/2]

bool kiapi::board::UnpackEmbeddedFiles ( EMBEDDED_FILES & aOutput,
const common::types::EmbeddedFiles & aProto )

◆ UnpackEmbeddedFiles() [2/2]

bool kiapi::board::UnpackEmbeddedFiles ( EMBEDDED_FILES & aOutput,
const kiapi::common::types::EmbeddedFiles & aProto )

◆ UnpackLayerSet()

LSET kiapi::board::UnpackLayerSet ( const google::protobuf::RepeatedField< int > & aProtoLayerSet)

◆ UnpackTeardropSettings()

◆ UnpackZoneLayerOverrides()

void kiapi::board::UnpackZoneLayerOverrides ( std::map< PCB_LAYER_ID, ZONE_LAYER_OVERRIDE > & aOutput,
const google::protobuf::RepeatedPtrField< types::ZoneLayerOverrideEntry > & aInput )