KiCad PCB EDA Suite
Loading...
Searching...
No Matches
orcad_converter_symbols.cpp File Reference
#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< SEGOrcadHatchLines (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)
 

Function Documentation

◆ addOrcadSymbolHatch()

◆ isInstalledPropertyName()

static bool isInstalledPropertyName ( const std::string & aName)
static

Definition at line 93 of file orcad_converter_symbols.cpp.

Referenced by ORCAD_CONVERTER::placeInstance().

◆ normalizedPath()

◆ OrcadDashRatios()

std::pair< double, double > OrcadDashRatios ( int aFormatVersionMajor)

◆ OrcadDisplayFontId()

◆ OrcadDisplayPropShowsName()

◆ OrcadDisplayPropShowsValue()

bool OrcadDisplayPropShowsValue ( const ORCAD_DISPLAY_PROP & aProp)

◆ OrcadDisplayPropVisible()

◆ OrcadDisplayType()

int OrcadDisplayType ( const ORCAD_DISPLAY_PROP & aProp)

◆ OrcadFillType()

FILL_T OrcadFillType ( int aFillStyle,
int aHatchStyle )

◆ OrcadHatchLines()

◆ OrcadHatchLineWidthIu()

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().

◆ OrcadHatchPitchIu()

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().

◆ OrcadLineStyle()

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().

◆ OrcadLineWidthIu()

int OrcadLineWidthIu ( int aWidth)

◆ OrcadPageGraphicLineWidthIu()

int OrcadPageGraphicLineWidthIu ( int aWidth)

◆ OrcadPinNameMarkup()

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().

◆ OrcadTextBaselineOffset()

◆ propertyNamesEqual()

static bool propertyNamesEqual ( const std::string & aLeft,
const std::string & aRight )
static