]> Pileus Git - grits/commit
Add grits_viewer_unproject function
authorAndy Spencer <andy753421@gmail.com>
Mon, 6 Feb 2012 06:32:35 +0000 (06:32 +0000)
committerAndy Spencer <andy753421@gmail.com>
Mon, 6 Feb 2012 06:32:35 +0000 (06:32 +0000)
commit64cd64653195ced67f25f6b8560953f420c0746c
tree00f3d4f8eb30c49645ca81b1e1260ae977d43525
parent4a5d5cca8b16c4c1daecfdfb55e8bbe7a0250b6f
Add grits_viewer_unproject function

This does the opposite of the grits_viewer_project function and can be
used to get the lat-lon-elev point corresponding to a point on the
screen, such as the pointer location. This currently has an undefined
output if the screen coordinates do not map to the location of an object
in the viewer.

This should not be used to determine if an objects has been selected or
clicked on. OpenGL picking should be used for that by connecting to one
of the GritsObject mouse event signals.
src/grits-opengl.c
src/grits-viewer.c
src/grits-viewer.h