KiCad PCB EDA Suite
Loading...
Searching...
No Matches
pcb_tuning_pattern.cpp File Reference

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_ITEMpickSegment (PNS::ROUTER *aRouter, const VECTOR2I &aWhere, int aLayer, VECTOR2I &aPointOut, const SHAPE_LINE_CHAIN &aBaseline=SHAPE_LINE_CHAIN())
 
static std::optional< PNS::LINEgetPNSLine (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_PATTERNregisterMe
 
static REGISTER_LEGACY_TUNING_PATTERN< PCB_TUNING_PATTERNregisterMeToo
 

Macro Definition Documentation

◆ HITTEST_THRESHOLD_PIXELS

#define HITTEST_THRESHOLD_PIXELS   5

Definition at line 2230 of file pcb_tuning_pattern.cpp.

Typedef Documentation

◆ SCOPED_DRAW_MODE

Enumeration Type Documentation

◆ LENGTH_TUNING_MODE

Enumerator
SINGLE 
DIFF_PAIR 
DIFF_PAIR_SKEW 

Definition at line 71 of file pcb_tuning_pattern.cpp.

Function Documentation

◆ fromPNSMode()

◆ getPNSLine()

static std::optional< PNS::LINE > getPNSLine ( const VECTOR2I aStart,
const VECTOR2I aEnd,
PNS::ROUTER router,
int  layer,
VECTOR2I aStartOut,
VECTOR2I aEndOut 
)
static

◆ pickSegment()

◆ sideFromString()

static PNS::MEANDER_SIDE sideFromString ( const std::string &  aStr)
static

◆ sideToString()

static std::string sideToString ( const PNS::MEANDER_SIDE  aValue)
static

◆ snapToNearestTrack()

◆ statusFromString()

◆ statusToString()

◆ tuningFromString()

static LENGTH_TUNING_MODE tuningFromString ( const std::string &  aStr)
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().

◆ tuningToString()

static std::string tuningToString ( const LENGTH_TUNING_MODE  aTuning)
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().

Variable Documentation

◆ _PCB_TUNING_PATTERN_DESC

struct PCB_TUNING_PATTERN_DESC _PCB_TUNING_PATTERN_DESC
static

◆ registerMe

Definition at line 2716 of file pcb_tuning_pattern.cpp.

◆ registerMeToo

Definition at line 2732 of file pcb_tuning_pattern.cpp.