KiCad PCB EDA Suite
SCH_EAGLE_PLUGIN::SEG_DESC_STRUCT Struct Reference

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

Definition at line 243 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 2765 of file sch_eagle_plugin.cpp.

2766 {
2767  VECTOR2I labelPos( aLabel->GetPosition() );
2768 
2769  for( const auto& seg : segs )
2770  {
2771  if( seg.Contains( labelPos ) )
2772  return &seg;
2773  }
2774 
2775  return nullptr;
2776 }
wxPoint GetPosition() const override
Definition: sch_text.h:293

References SCH_TEXT::GetPosition().

Member Data Documentation

◆ labels

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

Definition at line 248 of file sch_eagle_plugin.h.

Referenced by SCH_EAGLE_PLUGIN::loadSegments().

◆ segs

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

Definition at line 249 of file sch_eagle_plugin.h.

Referenced by SCH_EAGLE_PLUGIN::loadSegments().


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