|
KiCad PCB EDA Suite
|
#include <algorithm>#include <array>#include <cctype>#include <cmath>#include <cstdlib>#include <limits>#include <map>#include <memory>#include <optional>#include <string>#include <tuple>#include <utility>#include <vector>#include <wx/string.h>#include <wx/translation.h>#include <base_units.h>#include <eda_text.h>#include <embedded_files.h>#include <font/font.h>#include <geometry/shape_compound.h>#include <layer_ids.h>#include <lib_id.h>#include <lib_symbol.h>#include <math/util.h>#include <pin_type.h>#include <paths.h>#include <sch_field.h>#include <sch_no_connect.h>#include <sch_pin.h>#include <sch_screen.h>#include <sch_shape.h>#include <sch_sheet_path.h>#include <sch_symbol.h>#include <sch_text.h>#include <schematic.h>#include <stroke_params.h>#include <string_utils.h>#include <symbol.h>#include <template_fieldnames.h>#include <sch_io/orcad/orcad_converter.h>#include <sch_io/orcad/orcad_stream.h>Go to the source code of this file.
Functions | |
| static std::string | normalizedPath (std::string aPath) |
| static bool | propertyNamesEqual (const std::string &aLeft, const std::string &aRight) |
| static bool | isInstalledPropertyName (const std::string &aName) |
| int | OrcadDisplayType (const ORCAD_DISPLAY_PROP &aProp) |
| bool | OrcadDisplayPropVisible (const ORCAD_DISPLAY_PROP &aProp) |
| bool | OrcadDisplayPropShowsName (const ORCAD_DISPLAY_PROP &aProp) |
| bool | OrcadDisplayPropShowsValue (const ORCAD_DISPLAY_PROP &aProp) |
| int | OrcadDisplayFontId (const ORCAD_DISPLAY_PROP &aProp) |
| wxString | OrcadPinNameMarkup (const wxString &aName) |
| LINE_STYLE | OrcadLineStyle (int aStyle) |
| std::pair< double, double > | OrcadDashRatios (int aFormatVersionMajor) |
| int | OrcadLineWidthIu (int aWidth) |
| int | OrcadPageGraphicLineWidthIu (int aWidth) |
| FILL_T | OrcadFillType (int aFillStyle, int aHatchStyle) |
| int | OrcadHatchPitchIu (uint32_t aModifyTimestamp) |
| int | OrcadHatchLineWidthIu (uint32_t aModifyTimestamp) |
| std::vector< SEG > | OrcadHatchLines (const EDA_SHAPE &aShape, int aHatchStyle, int aPitch) |
| int | OrcadTextBaselineOffset (int aTextSize) |
| static void | addOrcadSymbolHatch (LIB_SYMBOL *aSymbol, const SCH_SHAPE &aOutline, const ORCAD_PRIMITIVE &aPrimitive, int aUnit, int aColor, uint32_t aModifyTimestamp) |
|
static |
Definition at line 2187 of file orcad_converter_symbols.cpp.
References LIB_SYMBOL::AddDrawItem(), SCH_SHAPE::AddPoint(), ORCAD_PRIMITIVE::fillStyle, ORCAD_PRIMITIVE::hatchStyle, LAYER_DEVICE, NO_FILL, OrcadColor(), OrcadHatchLines(), OrcadHatchLineWidthIu(), OrcadHatchPitchIu(), POLY, EDA_SHAPE::SetFillMode(), SCH_SHAPE::SetStroke(), SCH_ITEM::SetUnit(), and SOLID.
Referenced by ORCAD_CONVERTER::addSymbolPrimitive().
|
static |
Definition at line 93 of file orcad_converter_symbols.cpp.
Referenced by ORCAD_CONVERTER::placeInstance().
|
static |
Definition at line 71 of file orcad_converter_symbols.cpp.
Referenced by DESIGN_BLOCK_PANE::AddDesignBlockLibrary(), PCB_BASE_EDIT_FRAME::AddLibrary(), SYMBOL_EDIT_FRAME::addLibTableEntry(), ORCAD_CONVERTER::applyTitleBlock(), DIALOG_SYMBOL_REMAP::createProjectSymbolLibTable(), ORCAD_CONVERTER::libForInstance(), ORCAD_CONVERTER::pickVariant(), ORCAD_CONVERTER::prepareSymbols(), and SYMBOL_EDIT_FRAME::replaceLibTableEntry().
| std::pair< double, double > OrcadDashRatios | ( | int | aFormatVersionMajor | ) |
Definition at line 215 of file orcad_converter_symbols.cpp.
Referenced by BOOST_AUTO_TEST_CASE(), and SCH_IO_ORCAD::LoadSchematicFile().
| int OrcadDisplayFontId | ( | const ORCAD_DISPLAY_PROP & | aProp | ) |
Definition at line 144 of file orcad_converter_symbols.cpp.
References ORCAD_DISPLAY_PROP::fontIdx, and ORCAD_DISPLAY_PROP::name.
Referenced by ORCAD_CONVERTER::displayFontId(), ORCAD_CONVERTER::placeOffpageConnectors(), and ORCAD_CONVERTER::placePorts().
| bool OrcadDisplayPropShowsName | ( | const ORCAD_DISPLAY_PROP & | aProp | ) |
Definition at line 130 of file orcad_converter_symbols.cpp.
References OrcadDisplayType().
Referenced by ORCAD_CONVERTER::applyTitleBlock(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), ORCAD_CONVERTER::placeHierarchicalBlockFields(), ORCAD_CONVERTER::placePowerSymbol(), and ORCAD_CONVERTER::placeSymbolFields().
| bool OrcadDisplayPropShowsValue | ( | const ORCAD_DISPLAY_PROP & | aProp | ) |
Definition at line 137 of file orcad_converter_symbols.cpp.
References OrcadDisplayType().
Referenced by ORCAD_CONVERTER::applyTitleBlock(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), and ORCAD_CONVERTER::placeSymbolFields().
| bool OrcadDisplayPropVisible | ( | const ORCAD_DISPLAY_PROP & | aProp | ) |
Definition at line 114 of file orcad_converter_symbols.cpp.
References ORCAD_DISPLAY_PROP::name, OrcadDisplayType(), and propertyNamesEqual().
Referenced by ORCAD_CONVERTER::addSymbolPin(), ORCAD_CONVERTER::applyTitleBlock(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), ORCAD_CONVERTER::kicadSymbolFor(), ORCAD_CONVERTER::placeGraphicDisplayText(), ORCAD_CONVERTER::placeHierarchicalBlockFields(), ORCAD_CONVERTER::placeOffpageConnectors(), ORCAD_CONVERTER::placePorts(), ORCAD_CONVERTER::placePowerSymbol(), and ORCAD_CONVERTER::placeSymbolFields().
| int OrcadDisplayType | ( | const ORCAD_DISPLAY_PROP & | aProp | ) |
Definition at line 108 of file orcad_converter_symbols.cpp.
References ORCAD_DISPLAY_PROP::dispMode.
Referenced by OrcadDisplayPropShowsName(), OrcadDisplayPropShowsValue(), and OrcadDisplayPropVisible().
| FILL_T OrcadFillType | ( | int | aFillStyle, |
| int | aHatchStyle ) |
Definition at line 243 of file orcad_converter_symbols.cpp.
References CROSS_HATCH, FILLED_SHAPE, HATCH, NO_FILL, and REVERSE_HATCH.
Referenced by ORCAD_CONVERTER::addSymbolPrimitive(), and BOOST_AUTO_TEST_CASE().
Definition at line 277 of file orcad_converter_symbols.cpp.
References ANGLE_90, SHAPE_POLY_SET::CloneDropTriangulation(), ERROR_INSIDE, FILLED_SHAPE, SHAPE_POLY_SET::GenerateHatchLines(), SHAPE_POLY_SET::Rotate(), RotatePoint(), schIUScale, EDA_SHAPE::SetFillMode(), and EDA_SHAPE::TransformShapeToPolygon().
Referenced by addOrcadSymbolHatch(), and BOOST_AUTO_TEST_CASE().
| int OrcadHatchLineWidthIu | ( | uint32_t | aModifyTimestamp | ) |
Definition at line 270 of file orcad_converter_symbols.cpp.
References schIUScale.
Referenced by addOrcadSymbolHatch(), and BOOST_AUTO_TEST_CASE().
| int OrcadHatchPitchIu | ( | uint32_t | aModifyTimestamp | ) |
Definition at line 263 of file orcad_converter_symbols.cpp.
References schIUScale.
Referenced by addOrcadSymbolHatch(), and BOOST_AUTO_TEST_CASE().
| LINE_STYLE OrcadLineStyle | ( | int | aStyle | ) |
Definition at line 200 of file orcad_converter_symbols.cpp.
References DASH, DASHDOT, DASHDOTDOT, DEFAULT, DOT, and SOLID.
Referenced by BOOST_AUTO_TEST_CASE(), and ORCAD_CONVERTER::placeGraphics().
| int OrcadLineWidthIu | ( | int | aWidth | ) |
Definition at line 224 of file orcad_converter_symbols.cpp.
References schIUScale.
Referenced by BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), OrcadPageGraphicLineWidthIu(), and ORCAD_CONVERTER::placeGraphics().
| int OrcadPageGraphicLineWidthIu | ( | int | aWidth | ) |
Definition at line 237 of file orcad_converter_symbols.cpp.
References OrcadLineWidthIu(), and schIUScale.
Referenced by BOOST_AUTO_TEST_CASE(), and ORCAD_CONVERTER::placeGraphics().
| wxString OrcadPinNameMarkup | ( | const wxString & | aName | ) |
Definition at line 159 of file orcad_converter_symbols.cpp.
References result.
Referenced by ORCAD_CONVERTER::addSymbolPin(), and BOOST_AUTO_TEST_CASE().
| int OrcadTextBaselineOffset | ( | int | aTextSize | ) |
Definition at line 326 of file orcad_converter_symbols.cpp.
References KiROUND().
Referenced by BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), ORCAD_CONVERTER::placeGraphics(), ORCAD_CONVERTER::placeInstance(), and ORCAD_CONVERTER::textBaselineOffset().
|
static |
Definition at line 82 of file orcad_converter_symbols.cpp.
Referenced by ORCAD_CONVERTER::kicadSymbolFor(), OrcadDisplayPropVisible(), and ORCAD_CONVERTER::placeSymbolFields().