KiCad PCB EDA Suite
Loading...
Searching...
No Matches
BE_SHAPE_ARC Class Reference

Creepage: a board edge arc. More...

#include <drc_creepage_utils.h>

Inheritance diagram for BE_SHAPE_ARC:
BE_SHAPE_CIRCLE BE_SHAPE CREEP_SHAPE

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_CONNECTIONPaths (const BE_SHAPE_POINT &aS2, double aMaxWeight, double aMaxSquaredWeight) const override
 
std::vector< PATH_CONNECTIONPaths (const BE_SHAPE_CIRCLE &aS2, double aMaxWeight, double aMaxSquaredWeight) const override
 
std::vector< PATH_CONNECTIONPaths (const BE_SHAPE_ARC &aS2, double aMaxWeight, double aMaxSquaredWeight) const override
 
std::vector< PATH_CONNECTIONPaths (const CU_SHAPE_SEGMENT &aS2, double aMaxWeight, double aMaxSquaredWeight) const override
 
std::vector< PATH_CONNECTIONPaths (const CU_SHAPE_CIRCLE &aS2, double aMaxWeight, double aMaxSquaredWeight) const override
 
std::vector< PATH_CONNECTIONPaths (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_CONNECTIONPaths (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_ITEMGetParent () const
 
void SetParent (BOARD_ITEM *aParent)
 
std::vector< PATH_CONNECTIONReversePaths (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_ITEMm_parent = nullptr
 
VECTOR2I m_pos = VECTOR2I( 0, 0 )
 
CREEP_SHAPE::TYPE m_type = CREEP_SHAPE::TYPE::UNDEFINED
 

Detailed Description

Creepage: a board edge arc.

Definition at line 575 of file drc_creepage_utils.h.

Member Enumeration Documentation

◆ TYPE

enum class CREEP_SHAPE::TYPE
stronginherited
Enumerator
UNDEFINED 
POINT 
CIRCLE 
ARC 

Definition at line 164 of file drc_creepage_utils.h.

Constructor & Destructor Documentation

◆ BE_SHAPE_ARC()

BE_SHAPE_ARC::BE_SHAPE_ARC ( VECTOR2I  aPos,
int  aRadius,
EDA_ANGLE  aStartAngle,
EDA_ANGLE  aEndAngle,
VECTOR2D  aStartPoint,
VECTOR2D  aEndPoint 
)
inline

Member Function Documentation

◆ AngleBetweenStartAndEnd()

◆ ConnectChildren()

void BE_SHAPE_ARC::ConnectChildren ( std::shared_ptr< GraphNode > &  a1,
std::shared_ptr< GraphNode > &  a2,
CreepageGraph aG 
) const
overridevirtual

◆ GetEndAngle()

EDA_ANGLE BE_SHAPE_ARC::GetEndAngle ( ) const
inlineoverridevirtual

◆ GetEndPoint()

VECTOR2I BE_SHAPE_ARC::GetEndPoint ( ) const
inlineoverridevirtual

◆ GetParent()

const BOARD_ITEM * CREEP_SHAPE::GetParent ( ) const
inlineinherited

Definition at line 183 of file drc_creepage_utils.h.

References CREEP_SHAPE::m_parent.

◆ GetPos()

◆ GetRadius()

int BE_SHAPE_ARC::GetRadius ( ) const
inlineoverridevirtual

◆ GetStartAngle()

EDA_ANGLE BE_SHAPE_ARC::GetStartAngle ( ) const
inlineoverridevirtual

◆ GetStartPoint()

VECTOR2I BE_SHAPE_ARC::GetStartPoint ( ) const
inlineoverridevirtual

◆ GetType()

CREEP_SHAPE::TYPE CREEP_SHAPE::GetType ( ) const
inlineinherited

Definition at line 182 of file drc_creepage_utils.h.

References CREEP_SHAPE::m_type.

Referenced by areEquivalent(), and compareShapes().

◆ IsConductive()

bool CREEP_SHAPE::IsConductive ( )
inlineinherited

Definition at line 247 of file drc_creepage_utils.h.

References CREEP_SHAPE::m_conductive.

◆ IsThereATangentPassingThroughPoint()

std::pair< bool, bool > BE_SHAPE_ARC::IsThereATangentPassingThroughPoint ( const BE_SHAPE_POINT  aPoint) const

◆ Paths() [1/7]

std::vector< PATH_CONNECTION > BE_SHAPE_ARC::Paths ( const BE_SHAPE_ARC aS2,
double  aMaxWeight,
double  aMaxSquaredWeight 
) const
overridevirtual

◆ Paths() [2/7]

std::vector< PATH_CONNECTION > BE_SHAPE_ARC::Paths ( const BE_SHAPE_CIRCLE aS2,
double  aMaxWeight,
double  aMaxSquaredWeight 
) const
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().

◆ Paths() [3/7]

std::vector< PATH_CONNECTION > BE_SHAPE_ARC::Paths ( const BE_SHAPE_POINT aS2,
double  aMaxWeight,
double  aMaxSquaredWeight 
) const
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().

◆ Paths() [4/7]

std::vector< PATH_CONNECTION > CREEP_SHAPE::Paths ( const CREEP_SHAPE aS2,
double  aMaxWeight,
double  aMaxSquaredWeight 
) const
inlineinherited

Definition at line 203 of file drc_creepage_utils.h.

◆ Paths() [5/7]

std::vector< PATH_CONNECTION > BE_SHAPE_ARC::Paths ( const CU_SHAPE_ARC aS2,
double  aMaxWeight,
double  aMaxSquaredWeight 
) const
inlineoverridevirtual

Reimplemented from CREEP_SHAPE.

Definition at line 616 of file drc_creepage_utils.h.

References CU_SHAPE_ARC::Paths(), and CREEP_SHAPE::ReversePaths().

◆ Paths() [6/7]

std::vector< PATH_CONNECTION > BE_SHAPE_ARC::Paths ( const CU_SHAPE_CIRCLE aS2,
double  aMaxWeight,
double  aMaxSquaredWeight 
) const
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().

◆ Paths() [7/7]

std::vector< PATH_CONNECTION > BE_SHAPE_ARC::Paths ( const CU_SHAPE_SEGMENT aS2,
double  aMaxWeight,
double  aMaxSquaredWeight 
) const
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().

◆ ReversePaths()

std::vector< PATH_CONNECTION > CREEP_SHAPE::ReversePaths ( const std::vector< PATH_CONNECTION > &  aV) const
inlineinherited

◆ SetParent()

void CREEP_SHAPE::SetParent ( BOARD_ITEM aParent)
inlineinherited

◆ ShortenChildDueToGV()

Member Data Documentation

◆ m_conductive

bool CREEP_SHAPE::m_conductive = false
protectedinherited

◆ m_endAngle

EDA_ANGLE BE_SHAPE_ARC::m_endAngle
protected

◆ m_endPoint

VECTOR2I BE_SHAPE_ARC::m_endPoint
protected

Definition at line 649 of file drc_creepage_utils.h.

Referenced by BE_SHAPE_ARC(), and GetEndPoint().

◆ m_parent

BOARD_ITEM* CREEP_SHAPE::m_parent = nullptr
protectedinherited

◆ m_pos

◆ m_radius

int BE_SHAPE_ARC::m_radius
protected

◆ m_startAngle

EDA_ANGLE BE_SHAPE_ARC::m_startAngle
protected

◆ m_startPoint

VECTOR2I BE_SHAPE_ARC::m_startPoint
protected

Definition at line 648 of file drc_creepage_utils.h.

Referenced by BE_SHAPE_ARC(), and GetStartPoint().

◆ m_type

CREEP_SHAPE::TYPE CREEP_SHAPE::m_type = CREEP_SHAPE::TYPE::UNDEFINED
protectedinherited

The documentation for this class was generated from the following files: