KiCad PCB EDA Suite
|
#include <ee_grid_helper.h>
Public Types | |
enum | ANCHOR_FLAGS { CORNER = 1 , OUTLINE = 2 , SNAPPABLE = 4 , ORIGIN = 8 , VERTICAL = 16 , HORIZONTAL = 32 , CONSTRUCTED = 64 , ALL = CORNER | OUTLINE | SNAPPABLE | ORIGIN | VERTICAL | HORIZONTAL | CONSTRUCTED } |
Public Member Functions | |
EE_GRID_HELPER () | |
EE_GRID_HELPER (TOOL_MANAGER *aToolMgr) | |
~EE_GRID_HELPER () override | |
SCH_ITEM * | GetSnapped () const |
Function GetSnapped If the EE_GRID_HELPER has highlighted a snap point (target shown), this function will return a pointer to the item to which it snapped. | |
VECTOR2D | GetGridSize (GRID_HELPER_GRIDS aGrid) const override |
Return the size of the specified grid. | |
GRID_HELPER_GRIDS | GetSelectionGrid (const SELECTION &aItem) const override |
Gets the coarsest grid that applies to a selecion of items. | |
GRID_HELPER_GRIDS | GetItemGrid (const EDA_ITEM *aItem) const override |
Get the coarsest grid that applies to an item. | |
VECTOR2I | BestDragOrigin (const VECTOR2I &aMousePos, GRID_HELPER_GRIDS aGrid, const SCH_SELECTION &aItems) |
VECTOR2I | BestSnapAnchor (const VECTOR2I &aOrigin, GRID_HELPER_GRIDS aGrid, SCH_ITEM *aSkip) |
VECTOR2I | BestSnapAnchor (const VECTOR2I &aOrigin, GRID_HELPER_GRIDS aGrid, const SCH_SELECTION &aSkip={}) |
VECTOR2I | GetGrid () const |
VECTOR2D | GetVisibleGrid () const |
VECTOR2I | GetOrigin () const |
void | SetGridSize (const VECTOR2D &aGrid) |
void | SetVisibleGridSize (const VECTOR2D &aGrid) |
void | SetOrigin (const VECTOR2I &aOrigin) |
void | SetGridSnapping (bool aEnable) |
void | SetAuxAxes (bool aEnable, const VECTOR2I &aOrigin=VECTOR2I(0, 0)) |
virtual VECTOR2I | Align (const VECTOR2I &aPoint, GRID_HELPER_GRIDS aGrid) const |
virtual VECTOR2I | Align (const VECTOR2I &aPoint) const |
virtual VECTOR2I | Align (const VECTOR2I &aPoint, const VECTOR2D &aGrid, const VECTOR2D &aOffset) const |
virtual VECTOR2I | AlignGrid (const VECTOR2I &aPoint, GRID_HELPER_GRIDS aGrid) const |
VECTOR2I | AlignGrid (const VECTOR2I &aPoint) const |
VECTOR2I | AlignGrid (const VECTOR2I &aPoint, const VECTOR2D &aGrid, const VECTOR2D &aOffset) const |
void | SetSkipPoint (const VECTOR2I &aPoint) |
void | ClearSkipPoint () |
Clear the skip point by setting it to an unreachable position, thereby preventing matching. | |
void | SetSnap (bool aSnap) |
bool | GetSnap () const |
void | SetUseGrid (bool aSnapToGrid) |
bool | GetUseGrid () const |
void | SetSnapLine (bool aSnap) |
void | SetMask (int aMask) |
void | SetMaskFlag (int aFlag) |
void | ClearMaskFlag (int aFlag) |
std::optional< VECTOR2I > | GetSnappedPoint () const |
Protected Member Functions | |
void | addAnchor (const VECTOR2I &aPos, int aFlags, EDA_ITEM *aItem, int aPointTypes=POINT_TYPE::PT_NONE) |
void | addAnchor (const VECTOR2I &aPos, int aFlags, std::vector< EDA_ITEM * > aItems, int aPointTypes) |
void | clearAnchors () |
bool | canUseGrid () const |
Check whether it is possible to use the grid – this depends both on local grid helper settings and global (tool manager) KiCad settings. | |
VECTOR2I | computeNearest (const VECTOR2I &aPoint, const VECTOR2I &aGrid, const VECTOR2I &aOffset) const |
void | showConstructionGeometry (bool aShow) |
SNAP_MANAGER & | getSnapManager () |
void | updateSnapPoint (const TYPED_POINT2I &aPoint) |
KIGFX::ANCHOR_DEBUG * | enableAndGetAnchorDebug () |
Enable the anchor debug if permitted and return it. | |
Protected Attributes | |
std::vector< ANCHOR > | m_anchors |
TOOL_MANAGER * | m_toolMgr |
std::optional< VECTOR2I > | m_auxAxis |
int | m_maskTypes |
bool | m_enableSnap |
bool | m_enableGrid |
bool | m_enableSnapLine |
std::optional< ANCHOR > | m_snapItem |
VECTOR2I | m_skipPoint |
KIGFX::SNAP_INDICATOR | m_viewSnapPoint |
KIGFX::ORIGIN_VIEWITEM | m_viewAxis |
VECTOR2D | m_manualGrid |
VECTOR2D | m_manualVisibleGrid |
VECTOR2I | m_manualOrigin |
bool | m_manualGridSnapping |
Private Member Functions | |
std::set< SCH_ITEM * > | queryVisible (const BOX2I &aArea, const SCH_SELECTION &aSkipList) const |
ANCHOR * | nearestAnchor (const VECTOR2I &aPos, int aFlags, GRID_HELPER_GRIDS aGrid) |
void | computeAnchors (SCH_ITEM *aItem, const VECTOR2I &aRefPos, bool aFrom=false, bool aIncludeText=false) |
Insert the local anchor points in to the grid helper for the specified schematic item, given the reference point and the direction of use for the point. | |
Private Attributes | |
KIGFX::CONSTRUCTION_GEOM | m_constructionGeomPreview |
Show construction geometry (if any) on the canvas. | |
SNAP_MANAGER | m_snapManager |
Manage the construction geometry, snap lines, reference points, etc. | |
std::unique_ptr< KIGFX::ANCHOR_DEBUG > | m_anchorDebug |
#VIEW_ITEM for visualising anchor points, if enabled. | |
Definition at line 37 of file ee_grid_helper.h.
|
inherited |
Enumerator | |
---|---|
CORNER | |
OUTLINE | |
SNAPPABLE | |
ORIGIN | |
VERTICAL | |
HORIZONTAL | |
CONSTRUCTED | |
ALL |
Definition at line 134 of file grid_helper.h.
EE_GRID_HELPER::EE_GRID_HELPER | ( | ) |
Definition at line 42 of file ee_grid_helper.cpp.
References GRID_HELPER::GRID_HELPER().
EE_GRID_HELPER::EE_GRID_HELPER | ( | TOOL_MANAGER * | aToolMgr | ) |
Definition at line 48 of file ee_grid_helper.cpp.
References KIGFX::VIEW::Add(), KIGFX::ORIGIN_VIEWITEM::CIRCLE_CROSS, KIGFX::ORIGIN_VIEWITEM::CROSS, GRID_HELPER::GRID_HELPER(), LAYER_SCHEMATIC_ANCHOR, GRID_HELPER::m_toolMgr, GRID_HELPER::m_viewAxis, GRID_HELPER::m_viewSnapPoint, and KIGFX::VIEW::SetVisible().
|
override |
Definition at line 71 of file ee_grid_helper.cpp.
References GRID_HELPER::m_toolMgr, GRID_HELPER::m_viewAxis, GRID_HELPER::m_viewSnapPoint, and KIGFX::VIEW::Remove().
|
inlineprotectedinherited |
Definition at line 187 of file grid_helper.h.
References addAnchor(), and PT_NONE.
Referenced by addAnchor(), EE_GRID_HELPER::computeAnchors(), PCB_GRID_HELPER::computeAnchors(), and PCB_GRID_HELPER::computeAnchors().
|
inlineprotectedinherited |
Definition at line 193 of file grid_helper.h.
References m_anchors, and m_maskTypes.
Reimplemented in PCB_GRID_HELPER.
Definition at line 240 of file grid_helper.cpp.
References Align(), GetGrid(), and GetOrigin().
|
virtualinherited |
Reimplemented in PCB_GRID_HELPER.
Definition at line 246 of file grid_helper.cpp.
References std::abs(), AlignGrid(), canUseGrid(), m_auxAxis, VECTOR2< T >::x, and VECTOR2< T >::y.
|
inlinevirtualinherited |
Reimplemented in PCB_GRID_HELPER.
Definition at line 74 of file grid_helper.h.
References Align(), GetGridSize(), and GetOrigin().
Referenced by Align(), Align(), EE_GRID_HELPER::BestSnapAnchor(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), EE_GRID_HELPER::computeAnchors(), and PCB_GRID_HELPER::PCBGridHelperTestFixture.
Definition at line 219 of file grid_helper.cpp.
References computeNearest(), GetGrid(), and GetOrigin().
|
inherited |
Definition at line 225 of file grid_helper.cpp.
References computeNearest().
|
inlinevirtualinherited |
Reimplemented in PCB_GRID_HELPER.
Definition at line 79 of file grid_helper.h.
References AlignGrid(), GetGridSize(), and GetOrigin().
Referenced by Align(), AlignGrid(), EC_45DEGREE::Apply(), EC_90DEGREE::Apply(), EC_HORIZONTAL::Apply(), EC_LINE::Apply(), EC_VERTICAL::Apply(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), and PCB_GRID_HELPER::PCBGridHelperTestFixture.
VECTOR2I EE_GRID_HELPER::BestDragOrigin | ( | const VECTOR2I & | aMousePos, |
GRID_HELPER_GRIDS | aGrid, | ||
const SCH_SELECTION & | aItems ) |
Definition at line 83 of file ee_grid_helper.cpp.
References GRID_HELPER::clearAnchors(), computeAnchors(), GRID_HELPER::CORNER, GRID_HELPER::ANCHOR::Distance(), GetItemGrid(), grid, GRID_CONNECTABLE, GRID_WIRES, GRID_HELPER::m_toolMgr, nearestAnchor(), GRID_HELPER::ORIGIN, GRID_HELPER::OUTLINE, and GRID_HELPER::ANCHOR::pos.
VECTOR2I EE_GRID_HELPER::BestSnapAnchor | ( | const VECTOR2I & | aOrigin, |
GRID_HELPER_GRIDS | aGrid, | ||
const SCH_SELECTION & | aSkip = {} ) |
Definition at line 153 of file ee_grid_helper.cpp.
References std::abs(), GRID_HELPER::Align(), GRID_HELPER::canUseGrid(), GRID_HELPER::clearAnchors(), SNAP_LINE_MANAGER::ClearSnapLine(), computeAnchors(), GRID_HELPER::ANCHOR::Distance(), GRID_HELPER::enableAndGetAnchorDebug(), VECTOR2< T >::EuclideanNorm(), KIGFX::GEOMETRY, SNAP_MANAGER::GetSnapLineManager(), SNAP_LINE_MANAGER::GetSnapLineOrigin(), GRID_HELPER::getSnapManager(), GRID_HELPER::m_anchors, GRID_HELPER::m_enableSnap, GRID_HELPER::m_enableSnapLine, GRID_HELPER::m_skipPoint, GRID_HELPER::m_snapItem, GRID_HELPER::m_toolMgr, GRID_HELPER::m_viewSnapPoint, nearestAnchor(), GRID_HELPER::ANCHOR::pos, queryVisible(), schIUScale, SNAP_LINE_MANAGER::SetSnapLineEnd(), SNAP_LINE_MANAGER::SetSnapLineOrigin(), GRID_HELPER::showConstructionGeometry(), SNAP_RANGE, GRID_HELPER::SNAPPABLE, VECTOR2< T >::x, and VECTOR2< T >::y.
VECTOR2I EE_GRID_HELPER::BestSnapAnchor | ( | const VECTOR2I & | aOrigin, |
GRID_HELPER_GRIDS | aGrid, | ||
SCH_ITEM * | aSkip ) |
Definition at line 143 of file ee_grid_helper.cpp.
References SELECTION::Add(), and BestSnapAnchor().
Referenced by SCH_SELECTION_TOOL::autostartEvent(), and BestSnapAnchor().
|
protectedinherited |
Check whether it is possible to use the grid – this depends both on local grid helper settings and global (tool manager) KiCad settings.
Definition at line 267 of file grid_helper.cpp.
References m_enableGrid, m_manualGridSnapping, and m_toolMgr.
Referenced by Align(), and EE_GRID_HELPER::BestSnapAnchor().
|
inlineprotectedinherited |
Definition at line 200 of file grid_helper.h.
References m_anchors.
Referenced by EE_GRID_HELPER::BestDragOrigin(), PCB_GRID_HELPER::BestDragOrigin(), EE_GRID_HELPER::BestSnapAnchor(), PCB_GRID_HELPER::BestSnapAnchor(), PCB_GRID_HELPER::SnapToPad(), and TEST_CLEAR_ANCHORS.
|
inlineinherited |
Definition at line 130 of file grid_helper.h.
References m_maskTypes.
Referenced by BOOST_AUTO_TEST_CASE().
|
inlineinherited |
Clear the skip point by setting it to an unreachable position, thereby preventing matching.
Definition at line 115 of file grid_helper.h.
References m_skipPoint.
Referenced by BOOST_AUTO_TEST_CASE().
|
private |
Insert the local anchor points in to the grid helper for the specified schematic item, given the reference point and the direction of use for the point.
aItem | The schematic item for which to compute the anchors |
aRefPos | The point for which to compute the anchors (if used by the symbol) |
aFrom | Is this for an anchor that is designating a source point (aFrom=true) or not |
aIncludeText | if true will compute anchors for text items |
Definition at line 468 of file ee_grid_helper.cpp.
References GRID_HELPER::addAnchor(), GRID_HELPER::Align(), computeAnchors(), GRID_HELPER::CORNER, SCH_ITEM::GetConnectionPoints(), SCH_LINE::GetEndPoint(), EDA_ITEM::GetPosition(), SCH_LINE::GetStartPoint(), GRID_HELPER::HORIZONTAL, KI_FALLTHROUGH, GRID_HELPER::ORIGIN, pin, SCH_BUS_WIRE_ENTRY_T, SCH_DIRECTIVE_LABEL_T, SCH_FIELD_T, SCH_GLOBAL_LABEL_T, SCH_GROUP_T, SCH_HIER_LABEL_T, SCH_JUNCTION_T, SCH_LABEL_T, SCH_LINE_T, SCH_NO_CONNECT_T, SCH_PIN_T, SCH_SHEET_PIN_T, SCH_SHEET_T, SCH_SYMBOL_T, SCH_TABLE_T, SCH_TABLECELL_T, SCH_TEXT_T, SCH_TEXTBOX_T, GRID_HELPER::SNAPPABLE, TestSegmentHit(), EDA_ITEM::Type(), GRID_HELPER::VERTICAL, VECTOR2< T >::x, and VECTOR2< T >::y.
Referenced by BestDragOrigin(), BestSnapAnchor(), and computeAnchors().
|
protectedinherited |
Definition at line 232 of file grid_helper.cpp.
References KiROUND(), VECTOR2< T >::x, and VECTOR2< T >::y.
Referenced by AlignGrid(), and AlignGrid().
|
protectedinherited |
Enable the anchor debug if permitted and return it.
Returns nullptr if not permitted by the advancd config
Definition at line 112 of file grid_helper.cpp.
References KIGFX::VIEW::Add(), ADVANCED_CFG::GetCfg(), m_anchorDebug, ADVANCED_CFG::m_EnableSnapAnchorsDebug, m_toolMgr, and KIGFX::VIEW::SetVisible().
Referenced by EE_GRID_HELPER::BestSnapAnchor(), and PCB_GRID_HELPER::BestSnapAnchor().
VECTOR2I GRID_HELPER::GetGrid | ( | ) | const |
Definition at line 62 of file grid_helper.cpp.
References GRID_HELPER::m_constructionGeomPreview, GRID_HELPER::m_snapManager, and GRID_HELPER::m_toolMgr.
|
overridevirtual |
Return the size of the specified grid.
Reimplemented from GRID_HELPER.
Definition at line 278 of file ee_grid_helper.cpp.
References grid, GRID_CONNECTABLE, GRID_GRAPHICS, GRID_TEXT, GRID_WIRES, GRID_HELPER::m_toolMgr, and schIUScale.
Referenced by GetItemGrid(), and GetSelectionGrid().
|
overridevirtual |
Get the coarsest grid that applies to an item.
Reimplemented from GRID_HELPER.
Definition at line 397 of file ee_grid_helper.cpp.
References GetGridSize(), GetItemGrid(), grid, GRID_CONNECTABLE, GRID_CURRENT, GRID_GRAPHICS, GRID_TEXT, GRID_WIRES, group, LIB_SYMBOL_T, SCH_BITMAP_T, SCH_BUS_BUS_ENTRY_T, SCH_BUS_WIRE_ENTRY_T, SCH_DIRECTIVE_LABEL_T, SCH_FIELD_T, SCH_GLOBAL_LABEL_T, SCH_GROUP_T, SCH_HIER_LABEL_T, SCH_JUNCTION_T, SCH_LABEL_T, SCH_LINE_T, SCH_NO_CONNECT_T, SCH_PIN_T, SCH_RULE_AREA_T, SCH_SHAPE_T, SCH_SHEET_PIN_T, SCH_SHEET_T, SCH_SYMBOL_T, SCH_TEXT_T, SCH_TEXTBOX_T, and EDA_ITEM::Type().
Referenced by SCH_SELECTION_TOOL::autostartEvent(), BestDragOrigin(), BOOST_AUTO_TEST_CASE(), GetItemGrid(), and GetSelectionGrid().
|
inherited |
Definition at line 166 of file grid_helper.cpp.
References m_manualOrigin, and m_toolMgr.
Referenced by Align(), Align(), AlignGrid(), AlignGrid(), and BOOST_AUTO_TEST_CASE().
|
overridevirtual |
Gets the coarsest grid that applies to a selecion of items.
Reimplemented from GRID_HELPER.
Definition at line 380 of file ee_grid_helper.cpp.
References SELECTION::Front(), GetGridSize(), GetItemGrid(), and grid.
|
inlineinherited |
Definition at line 121 of file grid_helper.h.
References m_enableSnap.
Referenced by BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), and DRAWING_TOOL::DrawVia().
|
inlineprotectedinherited |
Definition at line 217 of file grid_helper.h.
References m_snapManager.
Referenced by PCB_GRID_HELPER::AddConstructionItems(), EE_GRID_HELPER::BestSnapAnchor(), PCB_GRID_HELPER::BestSnapAnchor(), PCB_GRID_HELPER::computeAnchors(), and PCB_GRID_HELPER::nearestAnchor().
SCH_ITEM * EE_GRID_HELPER::GetSnapped | ( | ) | const |
Function GetSnapped If the EE_GRID_HELPER has highlighted a snap point (target shown), this function will return a pointer to the item to which it snapped.
Definition at line 325 of file ee_grid_helper.cpp.
References GRID_HELPER::m_snapItem.
|
inherited |
Definition at line 274 of file grid_helper.cpp.
References m_snapItem.
Referenced by BOOST_AUTO_TEST_CASE(), and PCB_PICKER_TOOL::SelectPointInteractively().
|
inlineinherited |
Definition at line 124 of file grid_helper.h.
References m_enableGrid.
Referenced by BOOST_AUTO_TEST_CASE(), and BOOST_AUTO_TEST_CASE().
|
inherited |
Definition at line 160 of file grid_helper.cpp.
References m_manualVisibleGrid, and m_toolMgr.
Referenced by PCB_GRID_HELPER::BestSnapAnchor(), and BOOST_AUTO_TEST_CASE().
|
private |
Definition at line 580 of file ee_grid_helper.cpp.
References GRID_CONNECTABLE, GRID_GRAPHICS, SCH_ITEM::IsConnectable(), and GRID_HELPER::m_anchors.
Referenced by BestDragOrigin(), and BestSnapAnchor().
|
private |
Definition at line 337 of file ee_grid_helper.cpp.
References FRAME_SCH_SYMBOL_EDITOR, KIGFX::VIEW::GetScale(), SCH_ITEM::IsPrivate(), EDA_BASE_FRAME::IsType(), KIGFX::VIEW::IsVisible(), LIB_SYMBOL_T, GRID_HELPER::m_toolMgr, KIGFX::VIEW::Query(), EDA_ITEM::Type(), and KIGFX::VIEW_ITEM::ViewGetLOD().
Referenced by BestSnapAnchor().
|
inherited |
Definition at line 201 of file grid_helper.cpp.
References m_auxAxis, m_toolMgr, and m_viewAxis.
Referenced by BOOST_AUTO_TEST_CASE().
|
inlineinherited |
Definition at line 67 of file grid_helper.h.
References m_manualGrid.
Referenced by BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), and BOOST_AUTO_TEST_CASE().
|
inlineinherited |
Definition at line 70 of file grid_helper.h.
References m_manualGridSnapping.
Referenced by BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), and BOOST_AUTO_TEST_CASE().
|
inlineinherited |
Definition at line 128 of file grid_helper.h.
References m_maskTypes.
Referenced by BOOST_AUTO_TEST_CASE().
|
inlineinherited |
Definition at line 129 of file grid_helper.h.
References m_maskTypes.
Referenced by BOOST_AUTO_TEST_CASE().
|
inlineinherited |
Definition at line 69 of file grid_helper.h.
References m_manualOrigin.
Referenced by BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), and BOOST_AUTO_TEST_CASE().
|
inlineinherited |
Definition at line 107 of file grid_helper.h.
References m_skipPoint.
Referenced by BOOST_AUTO_TEST_CASE().
|
inlineinherited |
Definition at line 120 of file grid_helper.h.
References m_enableSnap.
Referenced by BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), DRAWING_TOOL::DrawVia(), and PCB_PICKER_TOOL::SelectPointInteractively().
|
inlineinherited |
Definition at line 126 of file grid_helper.h.
References m_enableSnapLine.
|
inlineinherited |
Definition at line 123 of file grid_helper.h.
References m_enableGrid.
Referenced by BOOST_AUTO_TEST_CASE(), and BOOST_AUTO_TEST_CASE().
|
inlineinherited |
Definition at line 68 of file grid_helper.h.
References m_manualVisibleGrid.
Referenced by BOOST_AUTO_TEST_CASE().
|
protectedinherited |
Definition at line 131 of file grid_helper.cpp.
References m_constructionGeomPreview, and m_toolMgr.
Referenced by EE_GRID_HELPER::BestSnapAnchor(), and PCB_GRID_HELPER::BestSnapAnchor().
|
protectedinherited |
Definition at line 138 of file grid_helper.cpp.
References KIGFX::GEOMETRY, TYPED_POINT2I::m_point, m_toolMgr, TYPED_POINT2I::m_types, and m_viewSnapPoint.
Referenced by PCB_GRID_HELPER::BestSnapAnchor().
|
privateinherited |
#VIEW_ITEM for visualising anchor points, if enabled.
Definition at line 259 of file grid_helper.h.
Referenced by enableAndGetAnchorDebug(), and ~GRID_HELPER().
|
protectedinherited |
Definition at line 228 of file grid_helper.h.
Referenced by addAnchor(), EE_GRID_HELPER::BestSnapAnchor(), PCB_GRID_HELPER::BestSnapAnchor(), clearAnchors(), EE_GRID_HELPER::nearestAnchor(), PCB_GRID_HELPER::nearestAnchor(), and PCB_GRID_HELPER::SnapToPad().
|
protectedinherited |
Definition at line 231 of file grid_helper.h.
Referenced by Align(), and SetAuxAxes().
|
privateinherited |
Show construction geometry (if any) on the canvas.
Definition at line 253 of file grid_helper.h.
Referenced by EE_GRID_HELPER::GetGrid(), GRID_HELPER(), showConstructionGeometry(), and ~GRID_HELPER().
|
protectedinherited |
Definition at line 236 of file grid_helper.h.
Referenced by PCB_GRID_HELPER::BestSnapAnchor(), canUseGrid(), GetUseGrid(), GRID_HELPER(), and SetUseGrid().
|
protectedinherited |
Definition at line 235 of file grid_helper.h.
Referenced by PCB_GRID_HELPER::AlignToArc(), PCB_GRID_HELPER::AlignToSegment(), EE_GRID_HELPER::BestSnapAnchor(), PCB_GRID_HELPER::BestSnapAnchor(), GetSnap(), GRID_HELPER(), and SetSnap().
|
protectedinherited |
Definition at line 237 of file grid_helper.h.
Referenced by EE_GRID_HELPER::BestSnapAnchor(), PCB_GRID_HELPER::BestSnapAnchor(), GRID_HELPER(), and SetSnapLine().
|
protectedinherited |
Definition at line 246 of file grid_helper.h.
Referenced by GetGrid(), GetGridSize(), GRID_HELPER(), and SetGridSize().
|
protectedinherited |
Definition at line 249 of file grid_helper.h.
Referenced by canUseGrid(), GRID_HELPER(), and SetGridSnapping().
|
protectedinherited |
Definition at line 248 of file grid_helper.h.
Referenced by GetOrigin(), GRID_HELPER(), and SetOrigin().
|
protectedinherited |
Definition at line 247 of file grid_helper.h.
Referenced by GetVisibleGrid(), GRID_HELPER(), and SetVisibleGridSize().
|
protectedinherited |
Definition at line 233 of file grid_helper.h.
Referenced by addAnchor(), ClearMaskFlag(), GRID_HELPER(), SetMask(), and SetMaskFlag().
|
protectedinherited |
Definition at line 240 of file grid_helper.h.
Referenced by EE_GRID_HELPER::BestSnapAnchor(), PCB_GRID_HELPER::BestSnapAnchor(), ClearSkipPoint(), and SetSkipPoint().
|
protectedinherited |
Definition at line 238 of file grid_helper.h.
Referenced by EE_GRID_HELPER::BestSnapAnchor(), PCB_GRID_HELPER::BestSnapAnchor(), EE_GRID_HELPER::GetSnapped(), PCB_GRID_HELPER::GetSnapped(), GetSnappedPoint(), GRID_HELPER(), and PCB_GRID_HELPER::OnBoardItemRemoved().
|
privateinherited |
Manage the construction geometry, snap lines, reference points, etc.
Definition at line 256 of file grid_helper.h.
Referenced by EE_GRID_HELPER::GetGrid(), getSnapManager(), and GRID_HELPER().
|
protectedinherited |
Definition at line 230 of file grid_helper.h.
Referenced by PCB_GRID_HELPER::AlignGrid(), EE_GRID_HELPER::BestDragOrigin(), PCB_GRID_HELPER::BestDragOrigin(), EE_GRID_HELPER::BestSnapAnchor(), PCB_GRID_HELPER::BestSnapAnchor(), canUseGrid(), PCB_GRID_HELPER::computeAnchors(), EE_GRID_HELPER::EE_GRID_HELPER(), enableAndGetAnchorDebug(), EE_GRID_HELPER::GetGrid(), GetGrid(), EE_GRID_HELPER::GetGridSize(), GetGridSize(), PCB_GRID_HELPER::GetGridSize(), GetOrigin(), GetVisibleGrid(), GRID_HELPER(), GRID_HELPER(), PCB_GRID_HELPER::PCB_GRID_HELPER(), EE_GRID_HELPER::queryVisible(), PCB_GRID_HELPER::queryVisible(), SetAuxAxes(), showConstructionGeometry(), updateSnapPoint(), EE_GRID_HELPER::~EE_GRID_HELPER(), ~GRID_HELPER(), and PCB_GRID_HELPER::~PCB_GRID_HELPER().
|
protectedinherited |
Definition at line 243 of file grid_helper.h.
Referenced by EE_GRID_HELPER::EE_GRID_HELPER(), PCB_GRID_HELPER::PCB_GRID_HELPER(), SetAuxAxes(), EE_GRID_HELPER::~EE_GRID_HELPER(), and PCB_GRID_HELPER::~PCB_GRID_HELPER().
|
protectedinherited |
Definition at line 242 of file grid_helper.h.
Referenced by EE_GRID_HELPER::BestSnapAnchor(), PCB_GRID_HELPER::BestSnapAnchor(), EE_GRID_HELPER::EE_GRID_HELPER(), PCB_GRID_HELPER::PCB_GRID_HELPER(), updateSnapPoint(), EE_GRID_HELPER::~EE_GRID_HELPER(), and PCB_GRID_HELPER::~PCB_GRID_HELPER().