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< GraphNode > &a1, std::shared_ptr< GraphNode > &a2, CreepageGraph &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< GraphNode > &a1, std::shared_ptr< GraphNode > &a2, CreepageGraph &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 | |
int | m_radius |
EDA_ANGLE | m_startAngle |
EDA_ANGLE | m_endAngle |
VECTOR2I | m_startPoint |
VECTOR2I | m_endPoint |
bool | m_conductive = false |
BOARD_ITEM * | m_parent = nullptr |
VECTOR2I | m_pos = VECTOR2I( 0, 0 ) |
CREEP_SHAPE::TYPE | m_type = CREEP_SHAPE::TYPE::UNDEFINED |
Creepage: a board edge arc.
Definition at line 575 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 578 of file drc_creepage_utils.h.
References m_endAngle, m_endPoint, m_radius, m_startAngle, m_startPoint, and CREEP_SHAPE::m_type.
Definition at line 630 of file drc_creepage_utils.h.
References ANGLE_360, m_endAngle, CREEP_SHAPE::m_pos, and m_startAngle.
Referenced by ConnectChildren(), GraphConnection::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 800 of file drc_creepage_utils.cpp.
References PATH_CONNECTION::a1, PATH_CONNECTION::a2, CreepageGraph::AddConnection(), AngleBetweenStartAndEnd(), CreepageGraph::GetTarget(), CreepageGraph::m_minGrooveWidth, m_radius, BE_SHAPE_CIRCLE::ShortenChildDueToGV(), and PATH_CONNECTION::weight.
|
inlineoverridevirtual |
Reimplemented from CREEP_SHAPE.
Definition at line 624 of file drc_creepage_utils.h.
References m_endAngle.
Referenced by GraphConnection::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 629 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 183 of file drc_creepage_utils.h.
References CREEP_SHAPE::m_parent.
|
inlineinherited |
Definition at line 181 of file drc_creepage_utils.h.
References CREEP_SHAPE::m_pos.
Referenced by CreepageGraph::Addshape(), areEquivalent(), compareShapes(), GraphConnection::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 625 of file drc_creepage_utils.h.
References 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 623 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 628 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 182 of file drc_creepage_utils.h.
References CREEP_SHAPE::m_type.
Referenced by areEquivalent(), and compareShapes().
|
inlineinherited |
Definition at line 247 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 190 of file drc_creepage_utils.cpp.
References AngleBetweenStartAndEnd(), EDA_ANGLE::AsRadians(), CREEP_SHAPE::GetPos(), m_endAngle, CREEP_SHAPE::m_pos, 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 351 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 598 of file drc_creepage_utils.h.
References BE_SHAPE_CIRCLE::Paths(), and CREEP_SHAPE::ReversePaths().
|
inlineoverridevirtual |
Reimplemented from BE_SHAPE_CIRCLE.
Definition at line 593 of file drc_creepage_utils.h.
References BE_SHAPE_POINT::Paths(), and CREEP_SHAPE::ReversePaths().
Referenced by GetPaths(), and Paths().
|
inlineinherited |
Definition at line 203 of file drc_creepage_utils.h.
|
inlineoverridevirtual |
Reimplemented from CREEP_SHAPE.
Definition at line 616 of file drc_creepage_utils.h.
References CU_SHAPE_ARC::Paths(), and CREEP_SHAPE::ReversePaths().
|
inlineoverridevirtual |
Reimplemented from BE_SHAPE_CIRCLE.
Definition at line 611 of file drc_creepage_utils.h.
References CU_SHAPE_CIRCLE::Paths(), and CREEP_SHAPE::ReversePaths().
|
inlineoverridevirtual |
Reimplemented from BE_SHAPE_CIRCLE.
Definition at line 606 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(), Paths(), CU_SHAPE_CIRCLE::Paths(), CU_SHAPE_ARC::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().
|
inherited |
Definition at line 715 of file drc_creepage_utils.cpp.
References PATH_CONNECTION::a1, PATH_CONNECTION::a2, CreepageGraph::AddConnection(), CreepageGraph::AddNode(), ANGLE_360, EDA_ANGLE::AsRadians(), CreepageGraph::m_minGrooveWidth, CREEP_SHAPE::m_pos, BE_SHAPE_CIRCLE::m_radius, GraphNode::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 251 of file drc_creepage_utils.h.
Referenced by BE_SHAPE::BE_SHAPE(), CU_SHAPE::CU_SHAPE(), and CREEP_SHAPE::IsConductive().
|
protected |
Definition at line 647 of file drc_creepage_utils.h.
Referenced by AngleBetweenStartAndEnd(), BE_SHAPE_ARC(), GetEndAngle(), and IsThereATangentPassingThroughPoint().
|
protected |
Definition at line 649 of file drc_creepage_utils.h.
Referenced by BE_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 253 of file drc_creepage_utils.h.
Referenced by AngleBetweenStartAndEnd(), BE_SHAPE_CIRCLE::BE_SHAPE_CIRCLE(), BE_SHAPE_POINT::BE_SHAPE_POINT(), CREEP_SHAPE::GetPos(), IsThereATangentPassingThroughPoint(), and BE_SHAPE_CIRCLE::ShortenChildDueToGV().
|
protected |
Definition at line 645 of file drc_creepage_utils.h.
Referenced by BE_SHAPE_ARC(), ConnectChildren(), GetRadius(), and IsThereATangentPassingThroughPoint().
|
protected |
Definition at line 646 of file drc_creepage_utils.h.
Referenced by AngleBetweenStartAndEnd(), BE_SHAPE_ARC(), GetStartAngle(), and IsThereATangentPassingThroughPoint().
|
protected |
Definition at line 648 of file drc_creepage_utils.h.
Referenced by BE_SHAPE_ARC(), and GetStartPoint().
|
protectedinherited |
Definition at line 254 of file drc_creepage_utils.h.
Referenced by BE_SHAPE_ARC(), BE_SHAPE_CIRCLE::BE_SHAPE_CIRCLE(), BE_SHAPE_POINT::BE_SHAPE_POINT(), CU_SHAPE_ARC::CU_SHAPE_ARC(), and CREEP_SHAPE::GetType().