kicad/include/preview_items
John Beard 7acc0b89f9 Pcbnew: fix 45-degree snapping of ruler and dimension tools
This introduces a new util function in geometry_utils which snaps a vector
to axes or 45 degree lines. This can be used whenever you want to
snap a vector to these angles, but still want it to stay on a grid.

This snapping is used for the dimension tool and the ruler tool.

This is substantially simpler for two-point tools that the method
used by the line tool, which uses DIRECTION_45.

Fixes: lp:1780826
https://bugs.launchpad.net/kicad/+bug/1780826
2018-07-24 15:01:02 +01:00
..
arc_assistant.h More g_UserUnit erradication. 2018-07-17 15:12:31 +01:00
arc_geom_manager.h Some coverity fixes 2018-01-05 22:51:03 -07:00
bright_box.h Refactor layer enumerations to all live in the same place 2017-03-30 16:01:48 -04:00
centreline_rect_item.h Multiple improvements concerning colors, configuration handling and legacy features in pcbnew: 2017-08-04 16:06:57 +02:00
multistep_geom_manager.h Fixed code formatting & comments typos 2017-04-24 00:02:07 +02:00
polygon_geom_manager.h Allow drawing self-intersecting polygons, just display a warning 2018-03-02 10:58:43 +01:00
polygon_item.h Converted zone drawing tools to store points in a SHAPE_LINE_CHAIN 2018-02-22 15:18:52 +01:00
preview_utils.h Multiple improvements concerning colors, configuration handling and legacy features in pcbnew: 2017-08-04 16:06:57 +02:00
ruler_item.h Fix botched attempt to have ruler adjust to unit changes. 2018-07-23 12:37:01 +01:00
selection_area.h Multiple improvements concerning colors, configuration handling and legacy features in pcbnew: 2017-08-04 16:06:57 +02:00
simple_overlay_item.h Multiple improvements concerning colors, configuration handling and legacy features in pcbnew: 2017-08-04 16:06:57 +02:00
two_point_geom_manager.h Pcbnew: fix 45-degree snapping of ruler and dimension tools 2018-07-24 15:01:02 +01:00