KiCad PCB EDA Suite
|
#include <pcb_generator.h>
#include <generators_mgr.h>
#include <optional>
#include <magic_enum.hpp>
#include <wx/debug.h>
#include <gal/graphics_abstraction_layer.h>
#include <geometry/shape_circle.h>
#include <kiplatform/ui.h>
#include <dialogs/dialog_unit_entry.h>
#include <collectors.h>
#include <scoped_set_reset.h>
#include <core/mirror.h>
#include <board_design_settings.h>
#include <drc/drc_engine.h>
#include <pcb_track.h>
#include <pcb_shape.h>
#include <pcb_group.h>
#include <tool/edit_points.h>
#include <tools/drawing_tool.h>
#include <tools/generator_tool.h>
#include <tools/pcb_picker_tool.h>
#include <tools/pcb_selection_tool.h>
#include <tools/zone_filler_tool.h>
#include <preview_items/draw_context.h>
#include <preview_items/preview_utils.h>
#include <view/view.h>
#include <view/view_controls.h>
#include <router/pns_dp_meander_placer.h>
#include <router/pns_meander_placer_base.h>
#include <router/pns_meander.h>
#include <router/pns_kicad_iface.h>
#include <router/pns_segment.h>
#include <router/pns_arc.h>
#include <router/pns_solid.h>
#include <router/pns_topology.h>
#include <router/router_preview_item.h>
#include <dialogs/dialog_tuning_pattern_properties.h>
Go to the source code of this file.
Classes | |
class | TUNING_STATUS_VIEW_ITEM |
class | PCB_TUNING_PATTERN |
struct | PCB_TUNING_PATTERN_DESC |
struct | REGISTER_LEGACY_TUNING_PATTERN< T > |
Macros | |
#define | HITTEST_THRESHOLD_PIXELS 5 |
Typedefs | |
using | SCOPED_DRAW_MODE = SCOPED_SET_RESET< DRAWING_TOOL::MODE > |
Enumerations | |
enum | LENGTH_TUNING_MODE { SINGLE , DIFF_PAIR , DIFF_PAIR_SKEW } |
Functions | |
static LENGTH_TUNING_MODE | tuningFromString (const std::string &aStr) |
static std::string | tuningToString (const LENGTH_TUNING_MODE aTuning) |
static LENGTH_TUNING_MODE | fromPNSMode (PNS::ROUTER_MODE aRouterMode) |
static PNS::MEANDER_SIDE | sideFromString (const std::string &aStr) |
static std::string | statusToString (const PNS::MEANDER_PLACER_BASE::TUNING_STATUS aStatus) |
static PNS::MEANDER_PLACER_BASE::TUNING_STATUS | statusFromString (const std::string &aStr) |
static std::string | sideToString (const PNS::MEANDER_SIDE aValue) |
static VECTOR2I | snapToNearestTrack (const VECTOR2I &aP, BOARD *aBoard, NETINFO_ITEM *aNet, PCB_TRACK **aNearestTrack) |
static PNS::LINKED_ITEM * | pickSegment (PNS::ROUTER *aRouter, const VECTOR2I &aWhere, int aLayer, VECTOR2I &aPointOut, const SHAPE_LINE_CHAIN &aBaseline=SHAPE_LINE_CHAIN()) |
static std::optional< PNS::LINE > | getPNSLine (const VECTOR2I &aStart, const VECTOR2I &aEnd, PNS::ROUTER *router, int layer, VECTOR2I &aStartOut, VECTOR2I &aEndOut) |
Variables | |
static struct PCB_TUNING_PATTERN_DESC | _PCB_TUNING_PATTERN_DESC |
static GENERATORS_MGR::REGISTER< PCB_TUNING_PATTERN > | registerMe |
static REGISTER_LEGACY_TUNING_PATTERN< PCB_TUNING_PATTERN > | registerMeToo |
#define HITTEST_THRESHOLD_PIXELS 5 |
Definition at line 2230 of file pcb_tuning_pattern.cpp.
Definition at line 2227 of file pcb_tuning_pattern.cpp.
enum LENGTH_TUNING_MODE |
Enumerator | |
---|---|
SINGLE | |
DIFF_PAIR | |
DIFF_PAIR_SKEW |
Definition at line 71 of file pcb_tuning_pattern.cpp.
|
static |
Definition at line 586 of file pcb_tuning_pattern.cpp.
References DIFF_PAIR, DIFF_PAIR_SKEW, PNS::PNS_MODE_TUNE_DIFF_PAIR, PNS::PNS_MODE_TUNE_DIFF_PAIR_SKEW, PNS::PNS_MODE_TUNE_SINGLE, and SINGLE.
Referenced by DRAWING_TOOL::PlaceTuningPattern().
|
static |
Definition at line 989 of file pcb_tuning_pattern.cpp.
References PNS::NODE::AssembleLine(), PNS::LINE::CLine(), PNS::ROUTER::GetWorld(), pickSegment(), and SHAPE_LINE_CHAIN_BASE::PointOnEdge().
Referenced by PCB_TUNING_PATTERN::removeToBaseline(), and PCB_TUNING_PATTERN::resetToBaseline().
|
static |
Definition at line 872 of file pcb_tuning_pattern.cpp.
References PNS::ARC::Arc(), PNS::ITEM::ARC_T, SHAPE::Centre(), PNS::SIZES_SETTINGS::Clearance(), PNS::SEGMENT::CLine(), VECTOR2< int32_t >::ECOORD_MAX, SHAPE_ARC::GetArcMid(), PNS::ITEM_SET::Items(), SHAPE_ARC::NearestPoint(), SHAPE_LINE_CHAIN::NearestPoint(), PNS::ROUTER::QueryHoverItems(), PNS::ITEM::SEGMENT_T, PNS::SEGMENT::Shape(), PNS::ROUTER::Sizes(), VECTOR2< T >::SquaredDistance(), and PNS::SIZES_SETTINGS::TrackWidth().
Referenced by getPNSLine(), PCB_TUNING_PATTERN::initBaseLine(), and PCB_TUNING_PATTERN::Update().
|
static |
Definition at line 598 of file pcb_tuning_pattern.cpp.
References PNS::MEANDER_SIDE_DEFAULT, PNS::MEANDER_SIDE_LEFT, and PNS::MEANDER_SIDE_RIGHT.
Referenced by PCB_TUNING_PATTERN::SetProperties().
|
static |
Definition at line 642 of file pcb_tuning_pattern.cpp.
References PNS::MEANDER_SIDE_DEFAULT, PNS::MEANDER_SIDE_LEFT, and PNS::MEANDER_SIDE_RIGHT.
Referenced by PCB_TUNING_PATTERN::GetProperties().
|
static |
Definition at line 670 of file pcb_tuning_pattern.cpp.
References VECTOR2< int32_t >::ECOORD_MAX, PCB_TRACK::GetEnd(), PCB_ARC::GetMid(), PCB_TRACK::GetStart(), PCB_TRACK::GetWidth(), SEG::NearestPoint(), SHAPE_ARC::NearestPoint(), PCB_ARC_T, and BOARD::Tracks().
Referenced by PCB_TUNING_PATTERN::EditStart(), PCB_TUNING_PATTERN::initBaseLine(), and PCB_TUNING_PATTERN::initBaseLines().
|
static |
Definition at line 626 of file pcb_tuning_pattern.cpp.
References PNS::MEANDER_PLACER_BASE::TOO_LONG, PNS::MEANDER_PLACER_BASE::TOO_SHORT, and PNS::MEANDER_PLACER_BASE::TUNED.
Referenced by PCB_TUNING_PATTERN::SetProperties().
|
static |
Definition at line 614 of file pcb_tuning_pattern.cpp.
References PNS::MEANDER_PLACER_BASE::TOO_LONG, PNS::MEANDER_PLACER_BASE::TOO_SHORT, and PNS::MEANDER_PLACER_BASE::TUNED.
Referenced by PCB_TUNING_PATTERN::GetProperties().
|
static |
Definition at line 558 of file pcb_tuning_pattern.cpp.
References DIFF_PAIR, DIFF_PAIR_SKEW, and SINGLE.
Referenced by PCB_TUNING_PATTERN::SetProperties().
|
static |
Definition at line 574 of file pcb_tuning_pattern.cpp.
References DIFF_PAIR, DIFF_PAIR_SKEW, and SINGLE.
Referenced by PCB_TUNING_PATTERN::GetProperties().
|
static |
|
static |
Definition at line 2716 of file pcb_tuning_pattern.cpp.
|
static |
Definition at line 2732 of file pcb_tuning_pattern.cpp.