|
KiCad PCB EDA Suite
|
#include <drc_creepage_utils.h>
Public Member Functions | |
| bool | isValid (const BOARD &aBoard, PCB_LAYER_ID aLayer, const std::vector< BOARD_ITEM * > &aBoardEdges, const std::vector< const BOARD_ITEM * > &aIgnoreForTest, SHAPE_POLY_SET *aOutline, const std::pair< bool, bool > &aTestLocalConcavity, int aMinGrooveWidth, TRACK_RTREE *aTrackIndex=nullptr) const |
| Test if a path is valid. | |
Public Attributes | |
| VECTOR2D | a1 |
| VECTOR2D | a2 |
| double | weight = -1 |
| bool | m_show = true |
| bool | m_forceA1concavityCheck = false |
| bool | m_forceA2concavityCheck = false |
Definition at line 64 of file drc_creepage_utils.h.
|
inline |
Test if a path is valid.
Check if a paths intersects the board edge or a track
| aBoard | The board (used as fallback if no track index provided) |
| aLayer | The layer to check |
| aBoardEdges | Board edge items |
| aIgnoreForTest | Items to ignore in intersection tests |
| aOutline | Board outline polygon |
| aTestLocalConcavity | Concavity test flags |
| aMinGrooveWidth | Minimum groove width |
| aTrackIndex | Optional spatial index for tracks (if nullptr, falls back to linear search) |
Definition at line 88 of file drc_creepage_utils.h.
References a1, a2, SHAPE_POLY_SET::Contains(), Edge_Cuts, SHAPE_POLY_SET::Inflate(), SEG::Intersects(), CREEPAGE_TRACK_ENTRY::layer, PCB_TRACE_T, SHAPE_POLY_SET::PointOnEdge(), ROUND_ALL_CORNERS, CREEPAGE_TRACK_ENTRY::segment, SegmentIntersectsBoard(), SH_SEGMENT, VECTOR2< T >::SquaredEuclideanNorm(), and BOARD::Tracks().
| VECTOR2D PATH_CONNECTION::a1 |
Definition at line 66 of file drc_creepage_utils.h.
Referenced by CREEPAGE_GRAPH::AddConnection(), BE_SHAPE_ARC::ConnectChildren(), BE_SHAPE_CIRCLE::ConnectChildren(), isValid(), BE_SHAPE_CIRCLE::Paths(), BE_SHAPE_POINT::Paths(), BE_SHAPE_POINT::Paths(), CU_SHAPE_ARC::Paths(), CU_SHAPE_CIRCLE::Paths(), CU_SHAPE_CIRCLE::Paths(), CU_SHAPE_CIRCLE::Paths(), CU_SHAPE_CIRCLE::Paths(), CU_SHAPE_SEGMENT::Paths(), CU_SHAPE_SEGMENT::Paths(), CU_SHAPE_SEGMENT::Paths(), CU_SHAPE_SEGMENT::Paths(), and BE_SHAPE_CIRCLE::ShortenChildDueToGV().
| VECTOR2D PATH_CONNECTION::a2 |
Definition at line 67 of file drc_creepage_utils.h.
Referenced by CREEPAGE_GRAPH::AddConnection(), BE_SHAPE_ARC::ConnectChildren(), BE_SHAPE_CIRCLE::ConnectChildren(), isValid(), BE_SHAPE_CIRCLE::Paths(), BE_SHAPE_POINT::Paths(), BE_SHAPE_POINT::Paths(), CU_SHAPE_ARC::Paths(), CU_SHAPE_CIRCLE::Paths(), CU_SHAPE_CIRCLE::Paths(), CU_SHAPE_CIRCLE::Paths(), CU_SHAPE_CIRCLE::Paths(), CU_SHAPE_SEGMENT::Paths(), CU_SHAPE_SEGMENT::Paths(), CU_SHAPE_SEGMENT::Paths(), CU_SHAPE_SEGMENT::Paths(), and BE_SHAPE_CIRCLE::ShortenChildDueToGV().
| bool PATH_CONNECTION::m_forceA1concavityCheck = false |
Definition at line 71 of file drc_creepage_utils.h.
| bool PATH_CONNECTION::m_forceA2concavityCheck = false |
Definition at line 72 of file drc_creepage_utils.h.
| bool PATH_CONNECTION::m_show = true |
Definition at line 69 of file drc_creepage_utils.h.
| double PATH_CONNECTION::weight = -1 |
Definition at line 68 of file drc_creepage_utils.h.
Referenced by CREEPAGE_GRAPH::AddConnection(), BE_SHAPE_ARC::ConnectChildren(), BE_SHAPE_CIRCLE::ConnectChildren(), BE_SHAPE_CIRCLE::Paths(), BE_SHAPE_POINT::Paths(), BE_SHAPE_POINT::Paths(), CU_SHAPE_ARC::Paths(), CU_SHAPE_ARC::Paths(), CU_SHAPE_CIRCLE::Paths(), CU_SHAPE_CIRCLE::Paths(), CU_SHAPE_CIRCLE::Paths(), CU_SHAPE_CIRCLE::Paths(), CU_SHAPE_SEGMENT::Paths(), CU_SHAPE_SEGMENT::Paths(), CU_SHAPE_SEGMENT::Paths(), CU_SHAPE_SEGMENT::Paths(), CU_SHAPE_SEGMENT::Paths(), and BE_SHAPE_CIRCLE::ShortenChildDueToGV().