Just another C++ hack
Following programs are required to build:
- gcc >= 4.7 with C++11 support
- OpenSceneGraph >= 3.3.3 (binaries included)
- osgEarth >= 2.6.0 (binaries included)
- Simple selection functionalities for geographic maps
- Quick & dirty geo-coordinate processing/visualization
- Enter the Selection Mode with
F2
(load/erase/save graph selections) - Enter the Turn Processing Mode with
F3
(process road turns)
- Draw a bounding box: in the
Selection Mode
, click at two map points with the left mouse button. One point is the bottom-left and the other is the top-right. - Draw an arbitrary polygon: in the
Selection Mode
, holdShift
and click at multiple screeen points with theleft mouse button
to form the polygon corners. To close the polygon and finish the polygon marking, perform a last click with theright mouse button
. - Erase a selection polygon: in the
Selection Mode
, holdCtrl
and click over a geometric form. The polygon containing the center point which is the nearest to the clicked point will be deleted.
- Stick a pin: in the
Selection Mode
click at the wished map point with the right mouse button. - Change the pin color: out of any mode, press
Shift
and click over a pin.
- Stepwise drawing nodes:
F5
(number of nodes per round is hardcoded) - Stepwise drawing edges:
F6
(number of nodes per round is hardcoded) - Save selected graph nodes in a .CO file:
F7
(directory is hardcoded) - Save selected graph edges in a .GR file:
F8
(directory is hardcoded)
- Check whether a cliked point belongs to a geometric form: in the
Turn Processing Mode
, holdShift
and click at any map point with the mouse right button.
$ make
(1) ./run.sh (should work in most Linux systems, if the code is cloned in the home directory with all dependencies)
(1) Include some Qt stuff, like boxes for providing the output file name or a combo box for selecting the graphs to be processed, so that not all the graphs must be loaded at once
(2) Actualize the dependencies
Copyright (C) 2014 Fellipe Bernardes-Lima [email protected]
Copy if you get happier, but don't complain if it doesn't work. And the copyright notices written in the source files are valid.