KiCad PCB EDA Suite
SCH_EAGLE_PLUGIN::SEG_DESC Struct Reference

Wires and labels of a single connection (segment in Eagle nomenclature)

More...

Public Member Functions

const SEGLabelAttached (const SCH_TEXT *aLabel) const
 

Tests 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

Wires and labels of a single connection (segment in Eagle nomenclature)

Definition at line 201 of file sch_eagle_plugin.h.

Member Function Documentation

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

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

Definition at line 2522 of file sch_eagle_plugin.cpp.

References SCH_TEXT::GetPosition().

2523 {
2524  VECTOR2I labelPos( aLabel->GetPosition() );
2525 
2526  for( const auto& seg : segs )
2527  {
2528  if( seg.Contains( labelPos ) )
2529  return &seg;
2530  }
2531 
2532  return nullptr;
2533 }
virtual wxPoint GetPosition() const override
Function GetPosition.
Definition: sch_text.h:194

Member Data Documentation

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

Definition at line 205 of file sch_eagle_plugin.h.

Referenced by SCH_EAGLE_PLUGIN::loadSegments().

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

Definition at line 206 of file sch_eagle_plugin.h.

Referenced by SCH_EAGLE_PLUGIN::loadSegments().


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