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

Creepage: a conductive segment. More...

#include <drc_creepage_utils.h>

Inheritance diagram for CU_SHAPE_SEGMENT:
CU_SHAPE CREEP_SHAPE

Public Types

enum class  TYPE { UNDEFINED = 0 , POINT , CIRCLE , ARC }
 

Public Member Functions

 CU_SHAPE_SEGMENT (VECTOR2I aStart, VECTOR2I aEnd, double aWidth=0)
 
VECTOR2I GetStart () const
 
VECTOR2I GetEnd () const
 
double GetWidth () const
 
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
 
virtual int GetRadius () const
 
virtual EDA_ANGLE GetStartAngle () const
 
virtual EDA_ANGLE GetEndAngle () const
 
virtual VECTOR2I GetStartPoint () const
 
virtual VECTOR2I GetEndPoint () const
 
VECTOR2I GetPos () const
 
CREEP_SHAPE::TYPE GetType () const
 
const BOARD_ITEMGetParent () 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_CONNECTIONReversePaths (const std::vector< PATH_CONNECTION > &aV) const
 
std::vector< PATH_CONNECTIONPaths (const CREEP_SHAPE &aS2, double aMaxWeight, double aMaxSquaredWeight) const
 
bool IsConductive ()
 

Protected Attributes

bool m_conductive = false
 
BOARD_ITEMm_parent = nullptr
 
VECTOR2I m_pos = VECTOR2I( 0, 0 )
 
CREEP_SHAPE::TYPE m_type = CREEP_SHAPE::TYPE::UNDEFINED
 

Private Attributes

VECTOR2I m_start = VECTOR2I( 0, 0 )
 
VECTOR2I m_end = VECTOR2I( 0, 0 )
 
double m_width = 0
 

Detailed Description

Creepage: a conductive segment.

Definition at line 282 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

◆ CU_SHAPE_SEGMENT()

CU_SHAPE_SEGMENT::CU_SHAPE_SEGMENT ( VECTOR2I  aStart,
VECTOR2I  aEnd,
double  aWidth = 0 
)
inline

Definition at line 285 of file drc_creepage_utils.h.

References m_end, m_start, and m_width.

Member Function Documentation

◆ ConnectChildren()

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

Reimplemented in BE_SHAPE_POINT, BE_SHAPE_CIRCLE, and BE_SHAPE_ARC.

Definition at line 704 of file drc_creepage_utils.cpp.

◆ GetEnd()

VECTOR2I CU_SHAPE_SEGMENT::GetEnd ( ) const
inline

Definition at line 293 of file drc_creepage_utils.h.

References m_end.

Referenced by Paths().

◆ GetEndAngle()

virtual EDA_ANGLE CREEP_SHAPE::GetEndAngle ( ) const
inlinevirtualinherited

Reimplemented in CU_SHAPE_ARC, and BE_SHAPE_ARC.

Definition at line 178 of file drc_creepage_utils.h.

◆ GetEndPoint()

virtual VECTOR2I CREEP_SHAPE::GetEndPoint ( ) const
inlinevirtualinherited

Reimplemented in CU_SHAPE_ARC, and BE_SHAPE_ARC.

Definition at line 180 of file drc_creepage_utils.h.

◆ 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()

virtual int CREEP_SHAPE::GetRadius ( ) const
inlinevirtualinherited

Reimplemented in CU_SHAPE_CIRCLE, CU_SHAPE_ARC, BE_SHAPE_CIRCLE, and BE_SHAPE_ARC.

Definition at line 176 of file drc_creepage_utils.h.

Referenced by areEquivalent(), and compareShapes().

◆ GetStart()

VECTOR2I CU_SHAPE_SEGMENT::GetStart ( ) const
inline

Definition at line 292 of file drc_creepage_utils.h.

References m_start.

Referenced by Paths().

◆ GetStartAngle()

virtual EDA_ANGLE CREEP_SHAPE::GetStartAngle ( ) const
inlinevirtualinherited

Reimplemented in CU_SHAPE_ARC, and BE_SHAPE_ARC.

Definition at line 177 of file drc_creepage_utils.h.

◆ GetStartPoint()

virtual VECTOR2I CREEP_SHAPE::GetStartPoint ( ) const
inlinevirtualinherited

Reimplemented in CU_SHAPE_ARC, and BE_SHAPE_ARC.

Definition at line 179 of file drc_creepage_utils.h.

◆ 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().

◆ GetWidth()

double CU_SHAPE_SEGMENT::GetWidth ( ) const
inline

Definition at line 294 of file drc_creepage_utils.h.

References m_width.

Referenced by Paths().

◆ IsConductive()

bool CREEP_SHAPE::IsConductive ( )
inlineinherited

Definition at line 247 of file drc_creepage_utils.h.

References CREEP_SHAPE::m_conductive.

◆ Paths() [1/7]

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

◆ Paths() [2/7]

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

◆ Paths() [3/7]

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

◆ 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]

◆ Paths() [6/7]

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

◆ Paths() [7/7]

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

◆ 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

Member Data Documentation

◆ m_conductive

bool CREEP_SHAPE::m_conductive = false
protectedinherited

◆ m_end

VECTOR2I CU_SHAPE_SEGMENT::m_end = VECTOR2I( 0, 0 )
private

Definition at line 312 of file drc_creepage_utils.h.

Referenced by CU_SHAPE_SEGMENT(), and GetEnd().

◆ m_parent

BOARD_ITEM* CREEP_SHAPE::m_parent = nullptr
protectedinherited

◆ m_pos

◆ m_start

VECTOR2I CU_SHAPE_SEGMENT::m_start = VECTOR2I( 0, 0 )
private

Definition at line 311 of file drc_creepage_utils.h.

Referenced by CU_SHAPE_SEGMENT(), and GetStart().

◆ m_type

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

◆ m_width

double CU_SHAPE_SEGMENT::m_width = 0
private

Definition at line 313 of file drc_creepage_utils.h.

Referenced by CU_SHAPE_SEGMENT(), and GetWidth().


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