KiCad PCB EDA Suite
|
#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_OVERLAY > | overlay |
static bool | registered |
static bool | registered1 |
|
inlinestatic |
Definition at line 49 of file playground.cpp.
References SHAPE_LINE_CHAIN::Append(), SHAPE_LINE_CHAIN::Collide(), SHAPE_LINE_CHAIN::CPoint(), SHAPE_LINE_CHAIN::CSegment(), SHAPE_LINE_CHAIN::PointCount(), SHAPE_LINE_CHAIN::SegmentCount(), and SHAPE_LINE_CHAIN::SetClosed().
Referenced by collide(), and playground_main_func().
|
static |
Definition at line 88 of file playground.cpp.
References SHAPE_POLY_SET::CHole(), collide(), SHAPE_POLY_SET::HoleCount(), SHAPE_POLY_SET::Outline(), and SHAPE_POLY_SET::OutlineCount().
Definition at line 138 of file playground.cpp.
References SEG::A, SEG::B, SHAPE_ARC::GetCenter(), SHAPE_ARC::GetP0(), SHAPE_ARC::GetP1(), SHAPE_ARC::GetWidth(), SHAPE_ARC::Intersect(), and SHAPE_ARC::IntersectLine().
Referenced by playground_main_func().
int drawShapes | ( | int | argc, |
char * | argv[] | ||
) |
Definition at line 400 of file playground.cpp.
References ANGLE_HORIZONTAL, PGM_BASE::App(), SHAPE_ARC::BBox(), SHAPE_ARC::Collide(), CYAN, BOX2< Vec >::GetOrigin(), BOX2< Vec >::GetSize(), SHAPE_ARC::GetWidth(), GREEN, BOX2< Vec >::Inflate(), BOX2< Vec >::Merge(), overlay, Pgm(), and RED.
Referenced by PNS_LOG_VIEWER_FRAME::drawLoggedItems().
int playground_main_func | ( | int | argc, |
char * | argv[] | ||
) |
Definition at line 206 of file playground.cpp.
References SEG::A, SHAPE_POLY_SET::AddHole(), ANGLE_HORIZONTAL, PGM_BASE::App(), SEG::B, SHAPE_ARC::BBox(), SHAPE_POLY_SET::BooleanIntersection(), SHAPE_POLY_SET::BooleanXor(), collide(), collideArc2Arc(), CYAN, DEGREES_T, ERROR_INSIDE, ERROR_OUTSIDE, PAD::GetBoundingBox(), PAD::GetEffectiveHoleShape(), BOX2< Vec >::GetOrigin(), BOX2< Vec >::GetSize(), GREEN, EDA_IU_SCALE::IUTomm(), SEG::Length(), MAGENTA, BOX2< Vec >::Merge(), EDA_IU_SCALE::mmToIU(), SHAPE_POLY_SET::Move(), SHAPE_POLY_SET::Outline(), SHAPE_POLY_SET::OutlineCount(), overlay, pcbIUScale, Pgm(), SHAPE_POLY_SET::PM_STRICTLY_SIMPLE, RED, PAD::SetDrillSizeX(), PAD::SetDrillSizeY(), PAD::SetSizeX(), PAD::SetSizeY(), PAD::SetX(), PAD::SetY(), tracePnsPlayground, PAD::TransformHoleToPolygon(), PAD::TransformShapeToPolygon(), UNDEFINED_LAYER, VECTOR2< T >::x, VECTOR2< T >::y, and YELLOW.
std::shared_ptr<PNS_LOG_VIEWER_OVERLAY> overlay |
Definition at line 46 of file playground.cpp.
Referenced by AUTOPLACE_TOOL::autoplace(), drawShapes(), KIGFX::VIEW::MakeOverlay(), playground_main_func(), test::DRC_TEST_PROVIDER_DIFF_PAIR_COUPLING::Run(), and KIPLATFORM::UI::SetOverlayScrolling().
|
static |
Definition at line 456 of file playground.cpp.
|
static |
Definition at line 463 of file playground.cpp.