KiCad PCB EDA Suite
board.cpp File Reference
#include <iterator>
#include <drc/drc_rtree.h>
#include <pcb_base_frame.h>
#include <board_design_settings.h>
#include <reporter.h>
#include <board_commit.h>
#include <board.h>
#include <footprint.h>
#include <pcb_track.h>
#include <zone.h>
#include <pcb_marker.h>
#include <pcb_group.h>
#include <pcb_target.h>
#include <pcb_shape.h>
#include <pcb_text.h>
#include <core/arraydim.h>
#include <core/kicad_algo.h>
#include <connectivity/connectivity_data.h>
#include <string_utils.h>
#include <pgm_base.h>
#include <pcbnew_settings.h>
#include <project.h>
#include <project/net_settings.h>
#include <project/project_file.h>
#include <project/project_local_settings.h>
#include <ratsnest/ratsnest_data.h>
#include <tool/selection_conditions.h>
#include <convert_shape_list_to_polygon.h>
#include <wx/log.h>

Go to the source code of this file.

Functions

bool sortPadsByXthenYCoord (PAD *const &aLH, PAD *const &aRH)
 Used by #GetSortedPadListByXCoord to sort a pad list by X coordinate value. More...
 

Function Documentation

◆ sortPadsByXthenYCoord()

bool sortPadsByXthenYCoord ( PAD *const &  aLH,
PAD *const &  aRH 
)

Used by #GetSortedPadListByXCoord to sort a pad list by X coordinate value.

This function is used to build ordered pads lists

Definition at line 1606 of file board.cpp.

1607 {
1608  if( aLH->GetPosition().x == aRH->GetPosition().x )
1609  return aLH->GetPosition().y < aRH->GetPosition().y;
1610 
1611  return aLH->GetPosition().x < aRH->GetPosition().x;
1612 }
wxPoint GetPosition() const override
Definition: pad.h:178

References PAD::GetPosition().

Referenced by BOARD::GetSortedPadListByXthenYCoord().