KiCad PCB EDA Suite
|
#include <vector>
#include <eda_draw_frame.h>
#include <lib_symbol.h>
#include <sch_shape.h>
#include <macros.h>
Go to the source code of this file.
Functions | |
static bool | sort_by_pin_number (const SCH_PIN *ref, const SCH_PIN *tst) |
static void | CheckLibSymbolGraphics (LIB_SYMBOL *aSymbol, std::vector< wxString > &aMessages, UNITS_PROVIDER *aUnitsProvider) |
void | CheckDuplicatePins (LIB_SYMBOL *aSymbol, std::vector< wxString > &aMessages, UNITS_PROVIDER *aUnitsProvider) |
void | CheckLibSymbol (LIB_SYMBOL *aSymbol, std::vector< wxString > &aMessages, int aGridForPins, UNITS_PROVIDER *aUnitsProvider) |
Check a lib symbol to find incorrect settings Pins not on a valid grid Pins duplicated Conflict with pins at same location Incorrect Power Symbols illegal reference prefix (cannot ends by a digit or a '?') | |
void CheckDuplicatePins | ( | LIB_SYMBOL * | aSymbol, |
std::vector< wxString > & | aMessages, | ||
UNITS_PROVIDER * | aUnitsProvider | ||
) |
Definition at line 36 of file symbol_checker.cpp.
References _, SCH_ITEM::GetBodyStyleDescription(), LIB_SYMBOL::GetPins(), LIB_SYMBOL::GetUnitReference(), LIB_SYMBOL::HasAlternateBodyStyle(), UNITS_PROVIDER::MessageTextFromValue(), next(), pin, and sort_by_pin_number().
Referenced by CheckLibSymbol(), and ERC_TESTER::TestLibSymbolIssues().
void CheckLibSymbol | ( | LIB_SYMBOL * | aSymbol, |
std::vector< wxString > & | aMessages, | ||
int | aGridForPins, | ||
UNITS_PROVIDER * | aUnitsProvider | ||
) |
Check a lib symbol to find incorrect settings Pins not on a valid grid Pins duplicated Conflict with pins at same location Incorrect Power Symbols illegal reference prefix (cannot ends by a digit or a '?')
aSymbol | is the library symbol to check |
aMessages | is a room to store error messages |
aGridForPins | (in IU) is the grid to test pin positions ( >= 25 mils ) should be 25, 50 or 100 mils (convered to IUs) |
aUnitsProvider | a frame to format coordinates in messages |
Definition at line 159 of file symbol_checker.cpp.
References _, CheckDuplicatePins(), CheckLibSymbolGraphics(), SCH_ITEM::GetBodyStyleDescription(), LIB_SYMBOL::GetPins(), LIB_SYMBOL::GetReferenceField(), EDA_TEXT::GetText(), LIB_SYMBOL::GetUnitCount(), LIB_SYMBOL::HasAlternateBodyStyle(), LIB_SYMBOL::IsPower(), UNITS_PROVIDER::MessageTextFromValue(), EDA_IU_SCALE::MilsToIU(), pin, PT_POWER_IN, PT_POWER_OUT, schIUScale, and sort_by_pin_number().
Referenced by EE_INSPECTION_TOOL::CheckSymbol().
|
static |
Definition at line 366 of file symbol_checker.cpp.
References _, ARC, BEZIER, CIRCLE, LIB_SYMBOL::GetDrawItems(), EDA_SHAPE::GetEnd(), SCH_SHAPE::GetPosition(), EDA_SHAPE::GetRadius(), EDA_SHAPE::GetShape(), UNITS_PROVIDER::MessageTextFromValue(), POLY, RECTANGLE, SCH_SHAPE_T, EDA_SHAPE::SHAPE_T_asString(), UNIMPLEMENTED_FOR, VECTOR2< T >::x, and VECTOR2< T >::y.
Referenced by CheckLibSymbol().
Definition at line 421 of file symbol_checker.cpp.
References SCH_ITEM::GetBodyStyle(), SCH_PIN::GetNumber(), and SCH_ITEM::GetUnit().
Referenced by CheckDuplicatePins(), and CheckLibSymbol().