KiCad PCB EDA Suite
|
Creepage: a conductive arc. More...
#include <drc_creepage_utils.h>
Public Types | |
enum class | TYPE { UNDEFINED = 0 , POINT , CIRCLE , ARC } |
Public Member Functions | |
CU_SHAPE_ARC (VECTOR2I aPos, double aRadius, EDA_ANGLE aStartAngle, EDA_ANGLE aEndAngle, VECTOR2D aStartPoint, VECTOR2D aEndPoint) | |
std::vector< PATH_CONNECTION > | Paths (const BE_SHAPE_POINT &aS2, double aMaxWeight, double aMaxSquaredWeight) const override |
std::vector< PATH_CONNECTION > | Paths (const BE_SHAPE_CIRCLE &aS2, double aMaxWeight, double aMaxSquaredWeight) const override |
std::vector< PATH_CONNECTION > | Paths (const BE_SHAPE_ARC &aS2, double aMaxWeight, double aMaxSquaredWeight) const override |
std::vector< PATH_CONNECTION > | Paths (const CU_SHAPE_SEGMENT &aS2, double aMaxWeight, double aMaxSquaredWeight) const override |
std::vector< PATH_CONNECTION > | Paths (const CU_SHAPE_CIRCLE &aS2, double aMaxWeight, double aMaxSquaredWeight) const override |
std::vector< PATH_CONNECTION > | Paths (const CU_SHAPE_ARC &aS2, double aMaxWeight, double aMaxSquaredWeight) const override |
EDA_ANGLE | GetStartAngle () const override |
EDA_ANGLE | GetEndAngle () const override |
int | GetRadius () const override |
VECTOR2I | GetStartPoint () const override |
VECTOR2I | GetEndPoint () const override |
EDA_ANGLE | AngleBetweenStartAndEnd (const VECTOR2I aPoint) const |
double | GetWidth () const |
void | SetWidth (double aW) |
VECTOR2I | GetPos () const |
std::vector< PATH_CONNECTION > | Paths (const CREEP_SHAPE &aS2, double aMaxWeight, double aMaxSquaredWeight) const |
CREEP_SHAPE::TYPE | GetType () const |
const BOARD_ITEM * | GetParent () const |
void | SetParent (BOARD_ITEM *aParent) |
virtual void | ConnectChildren (std::shared_ptr< GraphNode > &a1, std::shared_ptr< GraphNode > &a2, CreepageGraph &aG) const |
std::vector< PATH_CONNECTION > | ReversePaths (const std::vector< PATH_CONNECTION > &aV) const |
bool | IsConductive () |
Protected Attributes | |
bool | m_conductive = false |
BOARD_ITEM * | m_parent = nullptr |
CREEP_SHAPE::TYPE | m_type = CREEP_SHAPE::TYPE::UNDEFINED |
Private Attributes | |
int | m_width = 0 |
VECTOR2I | m_pos = VECTOR2I( 0, 0 ) |
double | m_radius = 1 |
EDA_ANGLE | m_startAngle = EDA_ANGLE( 0 ) |
EDA_ANGLE | m_endAngle = EDA_ANGLE( 180 ) |
VECTOR2I | m_startPoint = VECTOR2I( 1, 0 ) |
VECTOR2I | m_endPoint = VECTOR2I( -1, 0 ) |
Creepage: a conductive arc.
Definition at line 358 of file drc_creepage_utils.h.
|
stronginherited |
Enumerator | |
---|---|
UNDEFINED | |
POINT | |
CIRCLE | |
ARC |
Definition at line 164 of file drc_creepage_utils.h.
|
inline |
Definition at line 361 of file drc_creepage_utils.h.
References m_endAngle, m_endPoint, m_pos, m_radius, m_startAngle, m_startPoint, and CREEP_SHAPE::m_type.
Definition at line 400 of file drc_creepage_utils.h.
References ANGLE_360, GetEndAngle(), GetStartAngle(), and m_pos.
Referenced by Paths(), CU_SHAPE_SEGMENT::Paths(), and CU_SHAPE_CIRCLE::Paths().
|
virtualinherited |
Reimplemented in BE_SHAPE_POINT, BE_SHAPE_CIRCLE, and BE_SHAPE_ARC.
Definition at line 704 of file drc_creepage_utils.cpp.
|
inlineoverridevirtual |
Reimplemented from CREEP_SHAPE.
Definition at line 394 of file drc_creepage_utils.h.
References m_endAngle.
Referenced by AngleBetweenStartAndEnd(), Paths(), CU_SHAPE_SEGMENT::Paths(), and CU_SHAPE_CIRCLE::Paths().
|
inlineoverridevirtual |
Reimplemented from CREEP_SHAPE.
Definition at line 399 of file drc_creepage_utils.h.
References m_endPoint.
Referenced by Paths(), CU_SHAPE_SEGMENT::Paths(), and CU_SHAPE_CIRCLE::Paths().
|
inlineinherited |
Definition at line 183 of file drc_creepage_utils.h.
References CREEP_SHAPE::m_parent.
|
inlineinherited |
Definition at line 329 of file drc_creepage_utils.h.
References CU_SHAPE_CIRCLE::m_pos.
Referenced by Paths(), CU_SHAPE_CIRCLE::Paths(), and CU_SHAPE_SEGMENT::Paths().
|
inlineoverridevirtual |
Reimplemented from CU_SHAPE_CIRCLE.
Definition at line 395 of file drc_creepage_utils.h.
References m_radius.
Referenced by Paths(), CU_SHAPE_SEGMENT::Paths(), and CU_SHAPE_CIRCLE::Paths().
|
inlineoverridevirtual |
Reimplemented from CREEP_SHAPE.
Definition at line 393 of file drc_creepage_utils.h.
References m_startAngle.
Referenced by AngleBetweenStartAndEnd(), and Paths().
|
inlineoverridevirtual |
Reimplemented from CREEP_SHAPE.
Definition at line 398 of file drc_creepage_utils.h.
References m_startPoint.
Referenced by Paths(), CU_SHAPE_SEGMENT::Paths(), and CU_SHAPE_CIRCLE::Paths().
|
inlineinherited |
Definition at line 182 of file drc_creepage_utils.h.
References CREEP_SHAPE::m_type.
Referenced by areEquivalent(), and compareShapes().
|
inline |
Definition at line 410 of file drc_creepage_utils.h.
References m_width.
Referenced by Paths(), CU_SHAPE_SEGMENT::Paths(), and CU_SHAPE_CIRCLE::Paths().
|
inlineinherited |
Definition at line 247 of file drc_creepage_utils.h.
References CREEP_SHAPE::m_conductive.
|
overridevirtual |
Reimplemented from CU_SHAPE_CIRCLE.
Definition at line 1160 of file drc_creepage_utils.cpp.
References BE_SHAPE_ARC::AngleBetweenStartAndEnd(), BE_SHAPE_ARC::GetEndAngle(), BE_SHAPE_ARC::GetEndPoint(), CREEP_SHAPE::GetPos(), BE_SHAPE_ARC::GetRadius(), BE_SHAPE_ARC::GetStartAngle(), BE_SHAPE_ARC::GetStartPoint(), Paths(), and segmentIntersectsArc().
|
overridevirtual |
Reimplemented from CU_SHAPE_CIRCLE.
Definition at line 1127 of file drc_creepage_utils.cpp.
References AngleBetweenStartAndEnd(), GetEndAngle(), GetEndPoint(), CU_SHAPE_CIRCLE::GetPos(), GetRadius(), GetStartPoint(), GetWidth(), and Paths().
|
overridevirtual |
Reimplemented from CU_SHAPE_CIRCLE.
Definition at line 1618 of file drc_creepage_utils.cpp.
References PATH_CONNECTION::a1, PATH_CONNECTION::a2, ANGLE_360, GetEndAngle(), GetEndPoint(), CREEP_SHAPE::GetPos(), CU_SHAPE_CIRCLE::GetPos(), GetRadius(), GetStartAngle(), GetStartPoint(), GetWidth(), CU_SHAPE_CIRCLE::Paths(), and PATH_CONNECTION::weight.
Referenced by GetPaths(), Paths(), BE_SHAPE_POINT::Paths(), and BE_SHAPE_ARC::Paths().
|
inlineinherited |
Definition at line 203 of file drc_creepage_utils.h.
|
overridevirtual |
Reimplemented from CU_SHAPE_CIRCLE.
Definition at line 1672 of file drc_creepage_utils.cpp.
References AngleBetweenStartAndEnd(), GetEndAngle(), GetEndPoint(), CU_SHAPE_CIRCLE::GetPos(), GetRadius(), GetStartPoint(), GetWidth(), CU_SHAPE_CIRCLE::Paths(), Paths(), and PATH_CONNECTION::weight.
|
inlineoverridevirtual |
Reimplemented from CU_SHAPE_CIRCLE.
Definition at line 384 of file drc_creepage_utils.h.
References CU_SHAPE_CIRCLE::Paths(), and CREEP_SHAPE::ReversePaths().
|
inlineoverridevirtual |
Reimplemented from CU_SHAPE_CIRCLE.
Definition at line 379 of file drc_creepage_utils.h.
References CU_SHAPE_SEGMENT::Paths(), and CREEP_SHAPE::ReversePaths().
|
inlineinherited |
Definition at line 189 of file drc_creepage_utils.h.
Referenced by BE_SHAPE_CIRCLE::Paths(), BE_SHAPE_ARC::Paths(), CU_SHAPE_CIRCLE::Paths(), Paths(), and BE_SHAPE_POINT::Paths().
|
inlineinherited |
Definition at line 184 of file drc_creepage_utils.h.
References CREEP_SHAPE::m_parent.
Referenced by CreepageGraph::Addshape(), and CreepageGraph::TransformEdgeToCreepShapes().
|
inline |
Definition at line 411 of file drc_creepage_utils.h.
References m_width.
Referenced by CreepageGraph::Addshape().
|
protectedinherited |
Definition at line 251 of file drc_creepage_utils.h.
Referenced by BE_SHAPE::BE_SHAPE(), CU_SHAPE::CU_SHAPE(), and CREEP_SHAPE::IsConductive().
Definition at line 418 of file drc_creepage_utils.h.
Referenced by CU_SHAPE_ARC(), and GetEndAngle().
Definition at line 420 of file drc_creepage_utils.h.
Referenced by CU_SHAPE_ARC(), and GetEndPoint().
|
protectedinherited |
Definition at line 252 of file drc_creepage_utils.h.
Referenced by CreepageGraph::FindNode(), CREEP_SHAPE::GetParent(), and CREEP_SHAPE::SetParent().
Definition at line 415 of file drc_creepage_utils.h.
Referenced by AngleBetweenStartAndEnd(), and CU_SHAPE_ARC().
|
private |
Definition at line 416 of file drc_creepage_utils.h.
Referenced by CU_SHAPE_ARC(), and GetRadius().
Definition at line 417 of file drc_creepage_utils.h.
Referenced by CU_SHAPE_ARC(), and GetStartAngle().
Definition at line 419 of file drc_creepage_utils.h.
Referenced by CU_SHAPE_ARC(), and GetStartPoint().
|
protectedinherited |
Definition at line 254 of file drc_creepage_utils.h.
Referenced by BE_SHAPE_ARC::BE_SHAPE_ARC(), BE_SHAPE_CIRCLE::BE_SHAPE_CIRCLE(), BE_SHAPE_POINT::BE_SHAPE_POINT(), CU_SHAPE_ARC(), and CREEP_SHAPE::GetType().
|
private |
Definition at line 414 of file drc_creepage_utils.h.
Referenced by GetWidth(), and SetWidth().