KiCad PCB EDA Suite
|
Creepage: a board edge arc. More...
#include <drc_creepage_utils.h>
Public Types | |
enum class | TYPE { UNDEFINED = 0 , POINT , CIRCLE , ARC } |
Public Member Functions | |
BE_SHAPE_ARC (VECTOR2I aPos, int aRadius, EDA_ANGLE aStartAngle, EDA_ANGLE aEndAngle, VECTOR2D aStartPoint, VECTOR2D aEndPoint) | |
void | ConnectChildren (std::shared_ptr< GRAPH_NODE > &a1, std::shared_ptr< GRAPH_NODE > &a2, CREEPAGE_GRAPH &aG) const override |
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 |
std::pair< bool, bool > | IsThereATangentPassingThroughPoint (const BE_SHAPE_POINT aPoint) const |
std::vector< PATH_CONNECTION > | Paths (const CREEP_SHAPE &aS2, double aMaxWeight, double aMaxSquaredWeight) const |
void | ShortenChildDueToGV (std::shared_ptr< GRAPH_NODE > &a1, std::shared_ptr< GRAPH_NODE > &a2, CREEPAGE_GRAPH &aG, double aNormalWeight) const |
VECTOR2I | GetPos () const |
CREEP_SHAPE::TYPE | GetType () const |
const BOARD_ITEM * | GetParent () const |
void | SetParent (BOARD_ITEM *aParent) |
std::vector< PATH_CONNECTION > | ReversePaths (const std::vector< PATH_CONNECTION > &aV) const |
bool | IsConductive () |
Protected Attributes | |
EDA_ANGLE | m_startAngle |
EDA_ANGLE | m_endAngle |
VECTOR2I | m_startPoint |
VECTOR2I | m_endPoint |
int | m_radius |
bool | m_conductive |
BOARD_ITEM * | m_parent |
VECTOR2I | m_pos |
CREEP_SHAPE::TYPE | m_type |
Creepage: a board edge arc.
Definition at line 607 of file drc_creepage_utils.h.
|
stronginherited |
Enumerator | |
---|---|
UNDEFINED | |
POINT | |
CIRCLE | |
ARC |
Definition at line 165 of file drc_creepage_utils.h.
|
inline |
Definition at line 610 of file drc_creepage_utils.h.
References CREEP_SHAPE::m_type.
Definition at line 660 of file drc_creepage_utils.h.
References ANGLE_360, m_endAngle, CREEP_SHAPE::m_pos, and m_startAngle.
Referenced by ConnectChildren(), GRAPH_CONNECTION::GetShapes(), IsThereATangentPassingThroughPoint(), CU_SHAPE_SEGMENT::Paths(), CU_SHAPE_CIRCLE::Paths(), CU_SHAPE_ARC::Paths(), BE_SHAPE_CIRCLE::Paths(), and Paths().
|
overridevirtual |
Reimplemented from BE_SHAPE_CIRCLE.
Definition at line 801 of file drc_creepage_utils.cpp.
References PATH_CONNECTION::a1, PATH_CONNECTION::a2, CREEPAGE_GRAPH::AddConnection(), AngleBetweenStartAndEnd(), CREEPAGE_GRAPH::GetTarget(), CREEPAGE_GRAPH::m_minGrooveWidth, BE_SHAPE_CIRCLE::m_radius, BE_SHAPE_CIRCLE::ShortenChildDueToGV(), and PATH_CONNECTION::weight.
|
inlineoverridevirtual |
Reimplemented from CREEP_SHAPE.
Definition at line 654 of file drc_creepage_utils.h.
References m_endAngle.
Referenced by GRAPH_CONNECTION::GetShapes(), CU_SHAPE_SEGMENT::Paths(), CU_SHAPE_CIRCLE::Paths(), CU_SHAPE_ARC::Paths(), BE_SHAPE_CIRCLE::Paths(), and Paths().
|
inlineoverridevirtual |
Reimplemented from CREEP_SHAPE.
Definition at line 659 of file drc_creepage_utils.h.
References m_endPoint.
Referenced by CU_SHAPE_SEGMENT::Paths(), CU_SHAPE_CIRCLE::Paths(), CU_SHAPE_ARC::Paths(), BE_SHAPE_POINT::Paths(), BE_SHAPE_CIRCLE::Paths(), and Paths().
|
inlineinherited |
Definition at line 191 of file drc_creepage_utils.h.
References CREEP_SHAPE::m_parent.
|
inlineinherited |
Definition at line 189 of file drc_creepage_utils.h.
References CREEP_SHAPE::m_pos.
Referenced by CREEPAGE_GRAPH::Addshape(), areEquivalent(), compareShapes(), GRAPH_CONNECTION::GetShapes(), IsThereATangentPassingThroughPoint(), CU_SHAPE_CIRCLE::Paths(), CU_SHAPE_ARC::Paths(), BE_SHAPE_CIRCLE::Paths(), Paths(), CU_SHAPE_SEGMENT::Paths(), and BE_SHAPE_POINT::Paths().
|
inlineoverridevirtual |
Reimplemented from BE_SHAPE_CIRCLE.
Definition at line 655 of file drc_creepage_utils.h.
References BE_SHAPE_CIRCLE::m_radius.
Referenced by CU_SHAPE_SEGMENT::Paths(), CU_SHAPE_CIRCLE::Paths(), CU_SHAPE_ARC::Paths(), BE_SHAPE_POINT::Paths(), BE_SHAPE_CIRCLE::Paths(), and Paths().
|
inlineoverridevirtual |
Reimplemented from CREEP_SHAPE.
Definition at line 653 of file drc_creepage_utils.h.
References m_startAngle.
Referenced by CU_SHAPE_SEGMENT::Paths(), CU_SHAPE_CIRCLE::Paths(), CU_SHAPE_ARC::Paths(), and BE_SHAPE_CIRCLE::Paths().
|
inlineoverridevirtual |
Reimplemented from CREEP_SHAPE.
Definition at line 658 of file drc_creepage_utils.h.
References m_startPoint.
Referenced by CU_SHAPE_SEGMENT::Paths(), CU_SHAPE_CIRCLE::Paths(), CU_SHAPE_ARC::Paths(), BE_SHAPE_POINT::Paths(), BE_SHAPE_CIRCLE::Paths(), and Paths().
|
inlineinherited |
Definition at line 190 of file drc_creepage_utils.h.
References CREEP_SHAPE::m_type.
Referenced by areEquivalent(), and compareShapes().
|
inlineinherited |
Definition at line 261 of file drc_creepage_utils.h.
References CREEP_SHAPE::m_conductive.
std::pair< bool, bool > BE_SHAPE_ARC::IsThereATangentPassingThroughPoint | ( | const BE_SHAPE_POINT | aPoint | ) | const |
Definition at line 191 of file drc_creepage_utils.cpp.
References AngleBetweenStartAndEnd(), EDA_ANGLE::AsRadians(), CREEP_SHAPE::GetPos(), m_endAngle, CREEP_SHAPE::m_pos, BE_SHAPE_CIRCLE::m_radius, m_startAngle, VECTOR2< T >::SquaredEuclideanNorm(), VECTOR2< T >::x, and VECTOR2< T >::y.
Referenced by BE_SHAPE_POINT::Paths().
|
overridevirtual |
Reimplemented from BE_SHAPE_CIRCLE.
Definition at line 352 of file drc_creepage_utils.cpp.
References AngleBetweenStartAndEnd(), GetEndAngle(), GetEndPoint(), CREEP_SHAPE::GetPos(), GetRadius(), GetStartPoint(), and Paths().
|
inlineoverridevirtual |
Reimplemented from BE_SHAPE_CIRCLE.
Definition at line 628 of file drc_creepage_utils.h.
References BE_SHAPE_CIRCLE::Paths(), and CREEP_SHAPE::ReversePaths().
|
inlineoverridevirtual |
Reimplemented from BE_SHAPE_CIRCLE.
Definition at line 623 of file drc_creepage_utils.h.
References BE_SHAPE_POINT::Paths(), and CREEP_SHAPE::ReversePaths().
Referenced by GetPaths(), and Paths().
|
inlineinherited |
Definition at line 211 of file drc_creepage_utils.h.
|
inlineoverridevirtual |
Reimplemented from CREEP_SHAPE.
Definition at line 646 of file drc_creepage_utils.h.
References CU_SHAPE_ARC::Paths(), and CREEP_SHAPE::ReversePaths().
|
inlineoverridevirtual |
Reimplemented from BE_SHAPE_CIRCLE.
Definition at line 641 of file drc_creepage_utils.h.
References CU_SHAPE_CIRCLE::Paths(), and CREEP_SHAPE::ReversePaths().
|
inlineoverridevirtual |
Reimplemented from BE_SHAPE_CIRCLE.
Definition at line 636 of file drc_creepage_utils.h.
References CU_SHAPE_SEGMENT::Paths(), and CREEP_SHAPE::ReversePaths().
|
inlineinherited |
Definition at line 197 of file drc_creepage_utils.h.
Referenced by BE_SHAPE_CIRCLE::Paths(), Paths(), CU_SHAPE_CIRCLE::Paths(), CU_SHAPE_ARC::Paths(), and BE_SHAPE_POINT::Paths().
|
inlineinherited |
Definition at line 192 of file drc_creepage_utils.h.
References CREEP_SHAPE::m_parent.
Referenced by CREEPAGE_GRAPH::Addshape(), and CREEPAGE_GRAPH::TransformEdgeToCreepShapes().
|
inherited |
Definition at line 716 of file drc_creepage_utils.cpp.
References PATH_CONNECTION::a1, PATH_CONNECTION::a2, CREEPAGE_GRAPH::AddConnection(), CREEPAGE_GRAPH::AddNode(), ANGLE_360, EDA_ANGLE::AsRadians(), CREEPAGE_GRAPH::m_minGrooveWidth, CREEP_SHAPE::m_pos, BE_SHAPE_CIRCLE::m_radius, GRAPH_NODE::POINT, RADIANS_T, PATH_CONNECTION::weight, VECTOR2< T >::x, and VECTOR2< T >::y.
Referenced by BE_SHAPE_CIRCLE::ConnectChildren(), and ConnectChildren().
|
protectedinherited |
Definition at line 265 of file drc_creepage_utils.h.
Referenced by BE_SHAPE::BE_SHAPE(), CREEP_SHAPE::CREEP_SHAPE(), CU_SHAPE::CU_SHAPE(), and CREEP_SHAPE::IsConductive().
|
protected |
Definition at line 676 of file drc_creepage_utils.h.
Referenced by AngleBetweenStartAndEnd(), GetEndAngle(), and IsThereATangentPassingThroughPoint().
|
protected |
Definition at line 678 of file drc_creepage_utils.h.
Referenced by GetEndPoint().
|
protectedinherited |
Definition at line 266 of file drc_creepage_utils.h.
Referenced by CREEP_SHAPE::CREEP_SHAPE(), CREEP_SHAPE::GetParent(), and CREEP_SHAPE::SetParent().
|
protectedinherited |
Definition at line 267 of file drc_creepage_utils.h.
Referenced by AngleBetweenStartAndEnd(), BE_SHAPE_CIRCLE::BE_SHAPE_CIRCLE(), BE_SHAPE_POINT::BE_SHAPE_POINT(), CREEP_SHAPE::CREEP_SHAPE(), CREEP_SHAPE::GetPos(), IsThereATangentPassingThroughPoint(), and BE_SHAPE_CIRCLE::ShortenChildDueToGV().
|
protectedinherited |
Definition at line 600 of file drc_creepage_utils.h.
Referenced by BE_SHAPE_CIRCLE::BE_SHAPE_CIRCLE(), BE_SHAPE_CIRCLE::ConnectChildren(), ConnectChildren(), BE_SHAPE_CIRCLE::GetRadius(), GetRadius(), IsThereATangentPassingThroughPoint(), and BE_SHAPE_CIRCLE::ShortenChildDueToGV().
|
protected |
Definition at line 675 of file drc_creepage_utils.h.
Referenced by AngleBetweenStartAndEnd(), GetStartAngle(), and IsThereATangentPassingThroughPoint().
|
protected |
Definition at line 677 of file drc_creepage_utils.h.
Referenced by GetStartPoint().
|
protectedinherited |
Definition at line 268 of file drc_creepage_utils.h.
Referenced by BE_SHAPE_ARC(), BE_SHAPE_CIRCLE::BE_SHAPE_CIRCLE(), BE_SHAPE_POINT::BE_SHAPE_POINT(), CREEP_SHAPE::CREEP_SHAPE(), CU_SHAPE_ARC::CU_SHAPE_ARC(), and CREEP_SHAPE::GetType().