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
 

Detailed Description

Definition at line 142 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 153 of file grid_helper.h.

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

References items.

Member Data Documentation

◆ flags

int GRID_HELPER::ANCHOR::flags

Definition at line 160 of file grid_helper.h.

Referenced by PCB_GRID_HELPER::BestSnapAnchor().

◆ items

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().

◆ pointTypes

int GRID_HELPER::ANCHOR::pointTypes

Definition at line 161 of file grid_helper.h.

◆ pos


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