![]() |
KiCad PCB EDA Suite
|
#include <memory>
#include "altium_parser_sch.h"
#include <plugins/altium/altium_parser.h>
#include <plugins/altium/altium_parser_utils.h>
#include <sch_plugins/altium/sch_altium_plugin.h>
#include <schematic.h>
#include <lib_shape.h>
#include <lib_id.h>
#include <lib_item.h>
#include <lib_pin.h>
#include <lib_text.h>
#include <sch_bitmap.h>
#include <sch_bus_entry.h>
#include <sch_symbol.h>
#include <sch_junction.h>
#include <sch_line.h>
#include <sch_no_connect.h>
#include <sch_screen.h>
#include <sch_sheet.h>
#include <sch_sheet_pin.h>
#include <sch_text.h>
#include <bezier_curves.h>
#include <compoundfilereader.h>
#include <string_utils.h>
#include <sch_edit_frame.h>
#include <trigo.h>
#include <wildcards_and_files_ext.h>
#include <wx/mstream.h>
#include <wx/log.h>
#include <wx/zstream.h>
#include <wx/wfstream.h>
Go to the source code of this file.
Functions | |
const wxPoint | GetRelativePosition (const wxPoint &aPosition, const SCH_SYMBOL *aSymbol) |
COLOR4D | GetColorFromInt (int color) |
void | SetTextPositioning (EDA_TEXT *text, ASCH_LABEL_JUSTIFICATION justification, ASCH_RECORD_ORIENTATION orientation) |
wxPoint | HelperGeneratePowerPortGraphics (LIB_SYMBOL *aKsymbol, ASCH_POWER_PORT_STYLE aStyle, REPORTER *aReporter) |
COLOR4D GetColorFromInt | ( | int | color | ) |
Definition at line 70 of file sch_altium_plugin.cpp.
References color, KIGFX::COLOR4D::FromCSSRGBA(), and red.
Referenced by SCH_ALTIUM_PLUGIN::ParseSheetSymbol().
const wxPoint GetRelativePosition | ( | const wxPoint & | aPosition, |
const SCH_SYMBOL * | aSymbol | ||
) |
Definition at line 63 of file sch_altium_plugin.cpp.
References SCH_SYMBOL::GetPosition(), SCH_SYMBOL::GetTransform(), TRANSFORM::InverseTransform(), and TRANSFORM::TransformCoordinate().
Referenced by SCH_ALTIUM_PLUGIN::ParseArc(), SCH_ALTIUM_PLUGIN::ParseBezier(), SCH_ALTIUM_PLUGIN::ParseLabel(), SCH_ALTIUM_PLUGIN::ParseLine(), SCH_ALTIUM_PLUGIN::ParsePin(), SCH_ALTIUM_PLUGIN::ParsePolygon(), SCH_ALTIUM_PLUGIN::ParsePolyline(), SCH_ALTIUM_PLUGIN::ParseRectangle(), and SCH_ALTIUM_PLUGIN::ParseRoundRectangle().
wxPoint HelperGeneratePowerPortGraphics | ( | LIB_SYMBOL * | aKsymbol, |
ASCH_POWER_PORT_STYLE | aStyle, | ||
REPORTER * | aReporter | ||
) |
Definition at line 1602 of file sch_altium_plugin.cpp.
References _, LIB_SYMBOL::AddDrawItem(), LIB_SHAPE::AddPoint(), ARROW, BAR, BEZIER, CIRCLE, EARTH, LIB_SHAPE::GetPosition(), GOST_ARROW, GOST_BAR, GOST_EARTH, GOST_POWER_GROUND, POLY, POWER_GROUND, REPORTER::Report(), RPT_SEVERITY_WARNING, EDA_SHAPE::SetEnd(), LIB_SHAPE::SetPosition(), EDA_SHAPE::SetWidth(), SIGNAL_GROUND, and WAVE.
Referenced by SCH_ALTIUM_PLUGIN::ParsePowerPort().
void SetTextPositioning | ( | EDA_TEXT * | text, |
ASCH_LABEL_JUSTIFICATION | justification, | ||
ASCH_RECORD_ORIENTATION | orientation | ||
) |
Definition at line 743 of file sch_altium_plugin.cpp.
References PNS::angle(), BOTTOM_CENTER, BOTTOM_LEFT, BOTTOM_RIGHT, CENTER_CENTER, CENTER_LEFT, CENTER_RIGHT, DOWNWARDS, GR_TEXT_HJUSTIFY_CENTER, GR_TEXT_HJUSTIFY_LEFT, GR_TEXT_HJUSTIFY_RIGHT, GR_TEXT_VJUSTIFY_BOTTOM, GR_TEXT_VJUSTIFY_CENTER, GR_TEXT_VJUSTIFY_TOP, LEFTWARDS, RIGHTWARDS, text, TEXT_ANGLE_HORIZ, TEXT_ANGLE_VERT, TOP_CENTER, TOP_LEFT, TOP_RIGHT, UNKNOWN, and UPWARDS.
Referenced by SCH_ALTIUM_PLUGIN::ParseDesignator(), SCH_ALTIUM_PLUGIN::ParseFileName(), SCH_ALTIUM_PLUGIN::ParseLabel(), SCH_ALTIUM_PLUGIN::ParseParameter(), and SCH_ALTIUM_PLUGIN::ParseSheetName().