KiCad PCB EDA Suite
Loading...
Searching...
No Matches
easypc_pcb_items.cpp File Reference
#include <easypc/easypc_pcb_items.h>
#include <io/easypc/easypc_classes_connectivity.h>
#include <io/easypc/easypc_classes_library.h>
#include <io/easypc/easypc_text_metrics.h>
#include <board_item_container.h>
#include <convert_basic_shapes_to_polygon.h>
#include <font/font.h>
#include <footprint.h>
#include <ki_exception.h>
#include <geometry/shape_arc.h>
#include <geometry/shape_compound.h>
#include <geometry/shape_segment.h>
#include <lib_id.h>
#include <pad.h>
#include <pcb_field.h>
#include <pcb_shape.h>
#include <pcb_text.h>
#include <stroke_params.h>
#include <algorithm>
#include <cmath>
#include <limits>
#include <optional>
#include <set>

Go to the source code of this file.

Namespaces

namespace  EASYPC_PCB
 

Typedefs

using KI_PAD_SHAPE = ::PAD_SHAPE
 

Functions

ARC_FORM EASYPC_PCB::ArcForm (const POINT32 &aStart, const POINT32 &aEnd, int32_t aArcAngle, bool aAnticlockwise, const FRAME &aFrame)
 
SHAPE_POLY_SET EASYPC_PCB::ShapeToPolySet (const EASYPC::SOURCE_DESIGN_SHAPE &aShape, const FRAME &aFrame)
 A closed shape and its cutouts as an outline with holes.
 
SHAPE_POLY_SET EASYPC_PCB::ShapeItemArea (const EASYPC::SOURCE_SHAPE_ITEM &aItem, const FRAME &aFrame, int aMaxError)
 The copper a shape item plots: its filled region and every span stroked at the line width with round ends.
 
std::vector< PCB_SHAPE * > EASYPC_PCB::AddShapeItem (BOARD_ITEM_CONTAINER &aContainer, const EASYPC::SOURCE_SHAPE_ITEM &aItem, const FRAME &aFrame, const LAYER_MAPPER &aLayers, PCB_LAYER_ID aLayer=UNDEFINED_LAYER)
 Add a shape item as one filled polygon, a circle, or one shape per span; aLayer overrides the item's layer.
 
std::unique_ptr< PAD > EASYPC_PCB::CreatePad (FOOTPRINT *aParent, const EASYPC::SOURCE_FREE_PAD &aPad, const EASYPC::SOURCE_PAD_STYLE &aStyle, const FRAME &aFrame, const LAYER_MAPPER &aLayers)
 A pad with its style's per-layer exceptions; a mask or paste exception becomes a separate opening on aParent.
 
bool EASYPC_PCB::ApplyTextPosition (PCB_TEXT &aText, const EASYPC::SOURCE_TEXT_POSITION &aPosition, const FRAME &aFrame, const LAYER_MAPPER &aLayers)
 Place and size a text from its stored position and style; false when its layer has no KiCad layer.
 
PCB_TEXT * EASYPC_PCB::AddText (BOARD_ITEM_CONTAINER &aContainer, const SOURCE_TEXT_POSITION &aPosition, const wxString &aText, const FRAME &aFrame, const LAYER_MAPPER &aLayers)
 
std::unique_ptr< FOOTPRINT > EASYPC_PCB::ConvertFootprint (const EASYPC::SOURCE_SYMBOL &aSymbol, const LAYER_MAPPER &aLayers, const LIB_ID &aId, const EASYPC::SOURCE_PCB_COMPONENT *aComponent=nullptr, std::map< const EASYPC::SOURCE_FREE_PAD *, PAD * > *aPadMap=nullptr)
 A footprint in symbol coordinates.
 

Typedef Documentation

◆ KI_PAD_SHAPE

Definition at line 50 of file easypc_pcb_items.cpp.