KiCad PCB EDA Suite
Loading...
Searching...
No Matches
sch_io_altium.cpp File Reference
#include <memory>
#include "altium_parser_sch.h"
#include <io/io_utils.h>
#include <io/altium/altium_binary_parser.h>
#include <io/altium/altium_ascii_parser.h>
#include <io/altium/altium_parser_utils.h>
#include <sch_io/altium/sch_io_altium.h>
#include <schematic.h>
#include <project_sch.h>
#include <project/project_file.h>
#include <project/net_settings.h>
#include <lib_id.h>
#include <sch_pin.h>
#include <sch_bitmap.h>
#include <sch_bus_entry.h>
#include <sch_symbol.h>
#include <sch_junction.h>
#include <sch_line.h>
#include <sch_shape.h>
#include <sch_no_connect.h>
#include <sch_screen.h>
#include <sch_label.h>
#include <sch_sheet.h>
#include <sch_sheet_pin.h>
#include <sch_textbox.h>
#include <bezier_curves.h>
#include <compoundfilereader.h>
#include <geometry/ellipse.h>
#include <string_utils.h>
#include <sch_edit_frame.h>
#include <wildcards_and_files_ext.h>
#include <wx/mstream.h>
#include <wx/log.h>
#include <wx/zstream.h>
#include <wx/wfstream.h>
#include <magic_enum.hpp>

Go to the source code of this file.

Macros

#define HARNESS_PORT_COLOR_DEFAULT_BACKGROUND
 
#define HARNESS_PORT_COLOR_DEFAULT_OUTLINE
 

Functions

static const VECTOR2I GetRelativePosition (const VECTOR2I &aPosition, const SCH_SYMBOL *aSymbol)
 
static COLOR4D GetColorFromInt (int color)
 
static LINE_STYLE GetPlotDashType (const ASCH_POLYLINE_LINESTYLE linestyle)
 
static void SetSchShapeLine (const ASCH_BORDER_INTERFACE &elem, SCH_SHAPE *shape)
 
static void SetSchShapeFillAndColor (const ASCH_FILL_INTERFACE &elem, SCH_SHAPE *shape)
 
static void SetLibShapeLine (const ASCH_BORDER_INTERFACE &elem, SCH_SHAPE *shape, ALTIUM_SCH_RECORD aType)
 
static void SetLibShapeFillAndColor (const ASCH_FILL_INTERFACE &elem, SCH_SHAPE *shape, ALTIUM_SCH_RECORD aType, int aStrokeColor)
 
void SetTextPositioning (EDA_TEXT *text, ASCH_LABEL_JUSTIFICATION justification, ASCH_RECORD_ORIENTATION orientation, bool for_lib_item=false)
 
VECTOR2I HelperGeneratePowerPortGraphics (LIB_SYMBOL *aKsymbol, ASCH_POWER_PORT_STYLE aStyle, REPORTER *aReporter)
 

Macro Definition Documentation

◆ HARNESS_PORT_COLOR_DEFAULT_BACKGROUND

#define HARNESS_PORT_COLOR_DEFAULT_BACKGROUND
Value:
COLOR4D( 0.92941176470588238, \
0.94901960784313721, \
0.98431372549019602, 1.0 )
A color representation with 4 components: red, green, blue, alpha.
Definition: color4d.h:104

Definition at line 69 of file sch_io_altium.cpp.

◆ HARNESS_PORT_COLOR_DEFAULT_OUTLINE

#define HARNESS_PORT_COLOR_DEFAULT_OUTLINE
Value:
COLOR4D( 0.56078431372549020, \
0.61960784313725492, \
0.78823529411764703, 1.0 )

Definition at line 73 of file sch_io_altium.cpp.

Function Documentation

◆ GetColorFromInt()

◆ GetPlotDashType()

static LINE_STYLE GetPlotDashType ( const ASCH_POLYLINE_LINESTYLE  linestyle)
static

Definition at line 95 of file sch_io_altium.cpp.

References DASH, DASH_DOTTED, DASHDOT, DASHED, DEFAULT, DOT, DOTTED, and SOLID.

Referenced by SCH_IO_ALTIUM::ParseLine(), and SCH_IO_ALTIUM::ParsePolyline().

◆ GetRelativePosition()

◆ HelperGeneratePowerPortGraphics()

◆ SetLibShapeFillAndColor()

◆ SetLibShapeLine()

◆ SetSchShapeFillAndColor()

◆ SetSchShapeLine()

◆ SetTextPositioning()