KiCad PCB EDA Suite
Loading...
Searching...
No Matches
GRID_HELPER::ANCHOR Struct Reference

#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.
 

Detailed Description

Definition at line 152 of file grid_helper.h.

Constructor & Destructor Documentation

◆ ANCHOR()

GRID_HELPER::ANCHOR::ANCHOR ( const VECTOR2I & aPos,
int aFlags,
int aPointTypes,
std::vector< EDA_ITEM * > aItems )
inline
Parameters
aPosThe position of the anchor.
aFlagsThe 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).
aPointTypesThe point types that this anchor represents in geometric terms.
aItemThe item to which the anchor belongs.

Definition at line 162 of file grid_helper.h.

References flags, items, move, pointTypes, and pos.

Member Function Documentation

◆ Distance()

double GRID_HELPER::ANCHOR::Distance ( const VECTOR2I & aP) const
inline

◆ InvolvesItem()

bool GRID_HELPER::ANCHOR::InvolvesItem ( const EDA_ITEM & aItem) const
inline

Definition at line 181 of file grid_helper.h.

References items.

Member Data Documentation

◆ flags

int GRID_HELPER::ANCHOR::flags

Definition at line 169 of file grid_helper.h.

Referenced by ANCHOR(), and PCB_GRID_HELPER::BestSnapAnchor().

◆ items

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 174 of file grid_helper.h.

Referenced by ANCHOR(), PCB_GRID_HELPER::BestSnapAnchor(), and InvolvesItem().

◆ pointTypes

int GRID_HELPER::ANCHOR::pointTypes

Definition at line 170 of file grid_helper.h.

Referenced by ANCHOR().

◆ pos


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