|
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 |
| Items that are associated with this anchor (can be more than one, e.g. | |
Definition at line 161 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 171 of file grid_helper.h.
References flags, items, move, pointTypes, and pos.
|
inline |
Definition at line 185 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(), EE_GRID_HELPER::BestSnapAnchor(), and PCB_GRID_HELPER::BestSnapAnchor().
|
inline |
Definition at line 190 of file grid_helper.h.
References items.
| int GRID_HELPER::ANCHOR::flags |
Definition at line 178 of file grid_helper.h.
Referenced by ANCHOR(), and PCB_GRID_HELPER::BestSnapAnchor().
| std::vector<EDA_ITEM*> GRID_HELPER::ANCHOR::items |
Items that are associated with this anchor (can be more than one, e.g.
for an intersection).
Definition at line 183 of file grid_helper.h.
Referenced by ANCHOR(), PCB_GRID_HELPER::BestSnapAnchor(), and InvolvesItem().
| int GRID_HELPER::ANCHOR::pointTypes |
Definition at line 179 of file grid_helper.h.
Referenced by ANCHOR().
| VECTOR2I GRID_HELPER::ANCHOR::pos |
Definition at line 177 of file grid_helper.h.
Referenced by ANCHOR(), EE_GRID_HELPER::BestDragOrigin(), PCB_GRID_HELPER::BestDragOrigin(), EE_GRID_HELPER::BestSnapAnchor(), PCB_GRID_HELPER::BestSnapAnchor(), Distance(), and PCB_GRID_HELPER::SnapToPad().