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

World-space snap thresholds derived from the screen-space snap radius. More...

#include <grid_helper.h>

Public Attributes

double scale
 SNAP_SCREEN_RADIUS in world units.
 
int range
 Snap radius, optionally clamped to the visible grid.
 
int in
 Distance at which a candidate is picked up.
 
int out
 Distance at which a held candidate is released.
 
double rankingHysteresis
 Resolver ranking stickiness, as a fraction of the radius.
 

Detailed Description

World-space snap thresholds derived from the screen-space snap radius.

Definition at line 276 of file grid_helper.h.

Member Data Documentation

◆ in

int GRID_HELPER::SNAP_RANGES::in

Distance at which a candidate is picked up.

Definition at line 280 of file grid_helper.h.

Referenced by GRID_HELPER::computeSnapRanges(), EE_GRID_HELPER::ResolveSnap(), and PCB_GRID_HELPER::ResolveSnap().

◆ out

int GRID_HELPER::SNAP_RANGES::out

Distance at which a held candidate is released.

Definition at line 281 of file grid_helper.h.

Referenced by GRID_HELPER::computeSnapRanges(), EE_GRID_HELPER::ResolveSnap(), and PCB_GRID_HELPER::ResolveSnap().

◆ range

int GRID_HELPER::SNAP_RANGES::range

Snap radius, optionally clamped to the visible grid.

Definition at line 279 of file grid_helper.h.

Referenced by GRID_HELPER::computeSnapRanges(), EE_GRID_HELPER::ResolveSnap(), and PCB_GRID_HELPER::ResolveSnap().

◆ rankingHysteresis

double GRID_HELPER::SNAP_RANGES::rankingHysteresis

Resolver ranking stickiness, as a fraction of the radius.

Definition at line 282 of file grid_helper.h.

Referenced by GRID_HELPER::computeSnapRanges(), EE_GRID_HELPER::ResolveSnap(), and PCB_GRID_HELPER::ResolveSnap().

◆ scale

double GRID_HELPER::SNAP_RANGES::scale

SNAP_SCREEN_RADIUS in world units.

Definition at line 278 of file grid_helper.h.

Referenced by GRID_HELPER::computeSnapRanges(), EE_GRID_HELPER::ResolveSnap(), and PCB_GRID_HELPER::ResolveSnap().


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