KiCad PCB EDA Suite
|
#include <grid_helper.h>
Public Member Functions | |
ANCHOR (const VECTOR2I &aPos, int aFlags, int aPointTypes, std::vector< EDA_ITEM * > aItems) | |
double | Distance (const VECTOR2I &aP) const |
bool | InvolvesItem (const EDA_ITEM &aItem) const |
Public Attributes | |
VECTOR2I | pos |
int | flags |
int | pointTypes |
std::vector< EDA_ITEM * > | items |
Definition at line 142 of file grid_helper.h.
|
inline |
aPos | The position of the anchor |
aFlags | The flags for the anchor - this is a bitfield of ANCHOR_FLAGS, specifying the type of anchor (which may be used to filter out unwanted anchors per the settings) |
aPointTypes | The point types that this anchor represents in geometric terms |
aItem | The item to which the anchor belongs |
Definition at line 153 of file grid_helper.h.
|
inline |
Definition at line 165 of file grid_helper.h.
References VECTOR2< T >::EuclideanNorm(), pos, VECTOR2< T >::x, and VECTOR2< T >::y.
Referenced by EE_GRID_HELPER::BestDragOrigin(), PCB_GRID_HELPER::BestDragOrigin(), PCB_GRID_HELPER::BestSnapAnchor(), and EE_GRID_HELPER::BestSnapAnchor().
|
inline |
Definition at line 170 of file grid_helper.h.
References items.
int GRID_HELPER::ANCHOR::flags |
Definition at line 160 of file grid_helper.h.
Referenced by PCB_GRID_HELPER::BestSnapAnchor().
std::vector<EDA_ITEM*> GRID_HELPER::ANCHOR::items |
Definition at line 163 of file grid_helper.h.
Referenced by PCB_GRID_HELPER::BestSnapAnchor(), and InvolvesItem().
int GRID_HELPER::ANCHOR::pointTypes |
Definition at line 161 of file grid_helper.h.
VECTOR2I GRID_HELPER::ANCHOR::pos |
Definition at line 159 of file grid_helper.h.
Referenced by PCB_GRID_HELPER::AlignToNearestPad(), EE_GRID_HELPER::BestDragOrigin(), PCB_GRID_HELPER::BestDragOrigin(), PCB_GRID_HELPER::BestSnapAnchor(), EE_GRID_HELPER::BestSnapAnchor(), and Distance().