![]() |
KiCad PCB EDA Suite
|
#include <wx/clipbrd.h>
#include <pcb_painter.h>
#include <pcb_test_frame.h>
#include <qa_utils/utility_registry.h>
#include <pgm_base.h>
#include <profile.h>
#include <view/view_overlay.h>
#include "pns_log.h"
#include "router/pns_diff_pair.h"
#include "pns_log_viewer_frame_base.h"
#include "qa/drc_proto/drc_proto.h"
Go to the source code of this file.
Classes | |
class | PNS_LOG_VIEWER_FRAME |
class | WX_SHAPE_TREE_ITEM_DATA |
Macros | |
#define | ID_LIST_COPY 10001 |
#define | ID_LIST_SHOW_ALL 10002 |
#define | ID_LIST_SHOW_NONE 10003 |
Functions | |
static const COLOR4D | assignColor (int aStyle) |
static BOARD * | loadBoard (const std::string &filename) |
static void | expandAllChildren (wxTreeListCtrl *tree, const wxTreeListItem &item) |
static bool | commonParallelProjection (SEG p, SEG n, SEG &pClip, SEG &nClip) |
int | replay_main_func (int argc, char *argv[]) |
template<typename T1 , typename T2 > | |
std::map< T1, T2 >::iterator | findClosestKey (std::map< T1, T2 > &data, T1 key) |
void | extractDiffPair (BOARD *aBoard, int net_p, int net_n) |
static int | matchDpSuffix (const wxString &aNetName, wxString &aComplementNet, wxString &aBaseDpName) |
static int | dpCoupledNet (BOARD *aBoard, int aNet) |
void | extractAllDiffPairs (BOARD *aBoard) |
bool | segmentCrossesHullBoundary (const SHAPE_LINE_CHAIN &hull, const SEG &seg) |
bool | walkaround2 (SHAPE_LINE_CHAIN &aLine, SHAPE_LINE_CHAIN aObstacle, SHAPE_LINE_CHAIN &aPre, SHAPE_LINE_CHAIN &aWalk, SHAPE_LINE_CHAIN &aPost, bool aCw) |
int | test2_main_func (int argc, char *argv[]) |
Variables | |
static bool | registered2 |
static std::shared_ptr< KIGFX::VIEW_OVERLAY > | overlay |
static bool | registered4 |
#define ID_LIST_COPY 10001 |
Definition at line 45 of file pns_log_viewer.cpp.
#define ID_LIST_SHOW_ALL 10002 |
Definition at line 46 of file pns_log_viewer.cpp.
#define ID_LIST_SHOW_NONE 10003 |
Definition at line 47 of file pns_log_viewer.cpp.
|
static |
Definition at line 137 of file pns_log_viewer.cpp.
References color.
Referenced by PNS_LOG_VIEWER_FRAME::drawLoggedItems().
Definition at line 618 of file pns_log_viewer.cpp.
References SEG::A, SEG::B, SEG::LineProject(), rescale(), SEG::SquaredLength(), SEG::TCoef(), VECTOR2< T >::x, and VECTOR2< T >::y.
|
static |
Definition at line 1040 of file pns_log_viewer.cpp.
References dummy(), BOARD::FindNet(), NETINFO_ITEM::GetNetCode(), NETINFO_ITEM::GetNetname(), and matchDpSuffix().
Referenced by extractAllDiffPairs().
|
static |
Definition at line 564 of file pns_log_viewer.cpp.
void extractAllDiffPairs | ( | BOARD * | aBoard | ) |
Definition at line 1059 of file pns_log_viewer.cpp.
References dpCoupledNet(), extractDiffPair(), BOARD::FindNet(), NETINFO_LIST::GetNetCount(), BOARD::GetNetInfo(), and NETINFO_ITEM::GetNetname().
void extractDiffPair | ( | BOARD * | aBoard, |
int | net_p, | ||
int | net_n | ||
) |
Definition at line 931 of file pns_log_viewer.cpp.
References PNS::commonParallelProjection(), PCB_ARC_T, PCB_TRACE_T, and BOARD::Tracks().
Referenced by extractAllDiffPairs().
std::map<T1, T2>::iterator findClosestKey | ( | std::map< T1, T2 > & | data, |
T1 | key | ||
) |
Definition at line 907 of file pns_log_viewer.cpp.
|
static |
Definition at line 289 of file pns_log_viewer.cpp.
References _, Format(), NULL, and IO_ERROR::Problem().
|
static |
int replay_main_func | ( | int | argc, |
char * | argv[] | ||
) |
Definition at line 864 of file pns_log_viewer.cpp.
References PNS_LOG_FILE::Load().
bool segmentCrossesHullBoundary | ( | const SHAPE_LINE_CHAIN & | hull, |
const SEG & | seg | ||
) |
Definition at line 1121 of file pns_log_viewer.cpp.
References SHAPE_LINE_CHAIN::CSegment(), and SHAPE_LINE_CHAIN::SegmentCount().
int test2_main_func | ( | int | argc, |
char * | argv[] | ||
) |
Definition at line 1361 of file pns_log_viewer.cpp.
References BLUE, overlay, path, Pgm(), RED, PNS::LINE::SetShape(), PNS::LINE::Walkaround(), and WHITE.
bool walkaround2 | ( | SHAPE_LINE_CHAIN & | aLine, |
SHAPE_LINE_CHAIN | aObstacle, | ||
SHAPE_LINE_CHAIN & | aPre, | ||
SHAPE_LINE_CHAIN & | aWalk, | ||
SHAPE_LINE_CHAIN & | aPost, | ||
bool | aCw | ||
) |
Definition at line 1131 of file pns_log_viewer.cpp.
References SHAPE_LINE_CHAIN::Append(), SHAPE_LINE_CHAIN::CPoint(), SHAPE_LINE_CHAIN::Find(), findVertex(), Format(), SHAPE_LINE_CHAIN::Intersect(), OUTSIDE, overlay, SHAPE_LINE_CHAIN::PointCount(), SHAPE_LINE_CHAIN_BASE::PointInside(), SHAPE_LINE_CHAIN_BASE::PointOnEdge(), RED, SHAPE_LINE_CHAIN::Reverse(), SHAPE_LINE_CHAIN::SegmentCount(), SHAPE_LINE_CHAIN::Split(), and WHITE.
|
static |
Definition at line 1119 of file pns_log_viewer.cpp.
Referenced by AUTOPLACE_TOOL::autoplace(), KIGFX::VIEW::MakeOverlay(), test::DRC_TEST_PROVIDER_DIFF_PAIR_COUPLING::Run(), test2_main_func(), and walkaround2().
|
static |
Definition at line 894 of file pns_log_viewer.cpp.
|
static |
Definition at line 1432 of file pns_log_viewer.cpp.