KiCad PCB EDA Suite
Loading...
Searching...
No Matches
playground.cpp File Reference
#include <pgm_base.h>
#include <qa_utils/utility_registry.h>
#include "pns_log_viewer_frame.h"
#include "label_manager.h"
#include <geometry/shape_arc.h>
#include <pad.h>

Go to the source code of this file.

Functions

static bool collide (const SHAPE_LINE_CHAIN &aLhs, const SHAPE_LINE_CHAIN &aRhs, int aClearance, int *aDistance=nullptr, VECTOR2I *aPt1=nullptr)
 
static bool collide (const SHAPE_POLY_SET &aLhs, const SHAPE_LINE_CHAIN &aRhs, int aClearance, int *aDistance=nullptr, VECTOR2I *aPt1=nullptr)
 
bool collideArc2Arc (const SHAPE_ARC &a1, const SHAPE_ARC &a2, int clearance, SEG &minDistSeg)
 
int playground_main_func (int argc, char *argv[])
 
int drawShapes (int argc, char *argv[])
 

Variables

static const wxChar tracePnsPlayground [] = wxT( "KICAD_PNS_PLAYGROUND" )
 Flag to enable PNS playground debugging output.
 
std::shared_ptr< PNS_LOG_VIEWER_OVERLAYoverlay
 
static bool registered
 
static bool registered1
 

Function Documentation

◆ collide() [1/2]

static bool collide ( const SHAPE_LINE_CHAIN aLhs,
const SHAPE_LINE_CHAIN aRhs,
int  aClearance,
int *  aDistance = nullptr,
VECTOR2I aPt1 = nullptr 
)
inlinestatic

◆ collide() [2/2]

static bool collide ( const SHAPE_POLY_SET aLhs,
const SHAPE_LINE_CHAIN aRhs,
int  aClearance,
int *  aDistance = nullptr,
VECTOR2I aPt1 = nullptr 
)
static

◆ collideArc2Arc()

bool collideArc2Arc ( const SHAPE_ARC a1,
const SHAPE_ARC a2,
int  clearance,
SEG minDistSeg 
)

◆ drawShapes()

◆ playground_main_func()

Variable Documentation

◆ overlay

◆ registered

bool registered
static
Initial value:
"playground",
"Geometry/drawing playground",
} )
static bool Register(const KI_TEST::UTILITY_PROGRAM &aProgInfo)
Register a utility program factory function against an ID string.
int playground_main_func(int argc, char *argv[])
Definition: playground.cpp:206

Definition at line 456 of file playground.cpp.

◆ registered1

bool registered1
static
Initial value:
"drawShapes",
"drawing shapes",
} )
int drawShapes(int argc, char *argv[])
Definition: playground.cpp:400

Definition at line 463 of file playground.cpp.