102 return ( aP -
pos ).EuclideanNorm();
OPT< VECTOR2I > m_auxAxis
ANCHOR(const VECTOR2I &aPos, int aFlags=CORNER|SNAPPABLE, EDA_ITEM *aItem=nullptr)
void addAnchor(const VECTOR2I &aPos, int aFlags, EDA_ITEM *aItem)
KIGFX::ORIGIN_VIEWITEM m_viewAxis
VECTOR2I GetOrigin() const
void SetMaskFlag(int aFlag)
GAL * GetGAL() const
Return the #GAL this view is using to draw graphical primitives.
GRID_HELPER(TOOL_MANAGER *aToolMgr)
void ClearMaskFlag(int aFlag)
KIGFX::ORIGIN_VIEWITEM m_viewSnapPoint
bool GetGridSnapping() const
void SetAuxAxes(bool aEnable, const VECTOR2I &aOrigin=VECTOR2I(0, 0))
double Distance(const VECTOR2I &aP) const
bool canUseGrid() const
Check whether it is possible to use the grid – this depends both on local grid helper settings and gl...
virtual VECTOR2I Align(const VECTOR2I &aPoint) const
void SetUseGrid(bool aSnapToGrid)
A base class for most all the KiCad significant classes used in schematics and boards.
void SetSnapLine(bool aSnap)
void ClearSkipPoint()
We clear the skip point by setting it to an unreachable position, thereby preventing matching.
KIGFX::ORIGIN_VIEWITEM m_viewSnapLine
std::vector< ANCHOR > m_anchors
void SetSkipPoint(const VECTOR2I &aPoint)
VECTOR2I AlignGrid(const VECTOR2I &aPoint) const