OSUrobotics / Privacy-GUI

A part of the Privacy Interfaces project, this contains only the packages needed for the gui
4 stars 5 forks source link

Any number of points #9

Open xiuda opened 10 years ago

xiuda commented 10 years ago

The privazy_zones app should be able to handle any number of points (3 or more) to define a zone. The current is hard-coded to 4, but as long as the user keeps clicking it should allow new points to be created. This involves a number of enhancements:

lbowenbiggs commented 10 years ago

A point may be edited by dragging it (issue #6). Similar to the map_registration, a point could be deleted by right-clicking. This would keep consistency between the applications.

If we draw a line from the most recently clicked point to the cursor, and a line from the cursor to the first point, I think it should be clear enough to force going in order. Selection tools in GIMP and Photoshop work similarly. To finish the shape you could have a button for "Save Shape" and include a keyboard shortcut (eg, ESC).