KiCad PCB EDA Suite
Loading...
Searching...
No Matches
autoplace_fields.cpp File Reference
#include <boost/range/adaptor/reversed.hpp>
#include <sch_edit_frame.h>
#include <sch_symbol.h>
#include <sch_line.h>
#include <sch_pin.h>
#include <kiface_base.h>
#include <algorithm>
#include <tool/tool_manager.h>
#include <tools/ee_selection_tool.h>
#include <eeschema_settings.h>
#include <core/arraydim.h>

Go to the source code of this file.

Classes

class  AUTOPLACER
 
struct  AUTOPLACER::SIDE_AND_NPINS
 
struct  AUTOPLACER::SIDE_AND_COLL
 

Macros

#define FIELD_PADDING   schIUScale.MilsToIU( 15 )
 
#define WIRE_V_SPACING   schIUScale.MilsToIU( 100 )
 
#define HPADDING   schIUScale.MilsToIU( 25 )
 
#define VPADDING   schIUScale.MilsToIU( 15 )
 

Functions

template<typename T >
round_n (const T &value, const T &n, bool aRoundUp)
 Round up/down to the nearest multiple of n.
 

Macro Definition Documentation

◆ FIELD_PADDING

#define FIELD_PADDING   schIUScale.MilsToIU( 15 )

Definition at line 66 of file autoplace_fields.cpp.

◆ HPADDING

#define HPADDING   schIUScale.MilsToIU( 25 )

Definition at line 68 of file autoplace_fields.cpp.

◆ VPADDING

#define VPADDING   schIUScale.MilsToIU( 15 )

Definition at line 69 of file autoplace_fields.cpp.

◆ WIRE_V_SPACING

#define WIRE_V_SPACING   schIUScale.MilsToIU( 100 )

Definition at line 67 of file autoplace_fields.cpp.

Function Documentation

◆ round_n()

template<typename T >
T round_n ( const T &  value,
const T &  n,
bool  aRoundUp 
)

Round up/down to the nearest multiple of n.

Definition at line 74 of file autoplace_fields.cpp.

Referenced by AUTOPLACER::computeFBoxSize(), AUTOPLACER::DoAutoplace(), AUTOPLACER::fieldVPlacement(), and AUTOPLACER::fitFieldsBetweenWires().