KiCad PCB EDA Suite
SCH_EAGLE_PLUGIN::SEG_DESC Struct Reference

Segments representing wires for intersection checking. More...

Public Member Functions

const SEGLabelAttached (const SCH_TEXT *aLabel) const
 < Test if a particular label is attached to any of the stored segments More...
 

Public Attributes

std::vector< SCH_TEXT * > labels
 
std::vector< SEGsegs
 

Detailed Description

Segments representing wires for intersection checking.

Definition at line 245 of file sch_eagle_plugin.h.

Member Function Documentation

◆ LabelAttached()

const SEG * SCH_EAGLE_PLUGIN::SEG_DESC::LabelAttached ( const SCH_TEXT aLabel) const

< Test if a particular label is attached to any of the stored segments

Definition at line 2918 of file sch_eagle_plugin.cpp.

2919{
2920 VECTOR2I labelPos( aLabel->GetPosition() );
2921
2922 for( const SEG& seg : segs )
2923 {
2924 if( seg.Contains( labelPos ) )
2925 return &seg;
2926 }
2927
2928 return nullptr;
2929}
VECTOR2I GetPosition() const override
Definition: sch_text.h:201
Definition: seg.h:42

References SCH_TEXT::GetPosition().

Member Data Documentation

◆ labels

std::vector<SCH_TEXT*> SCH_EAGLE_PLUGIN::SEG_DESC::labels

Definition at line 250 of file sch_eagle_plugin.h.

Referenced by SCH_EAGLE_PLUGIN::loadSegments().

◆ segs

std::vector<SEG> SCH_EAGLE_PLUGIN::SEG_DESC::segs

Definition at line 251 of file sch_eagle_plugin.h.

Referenced by SCH_EAGLE_PLUGIN::loadSegments().


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