Commit Graph

116 Commits

Author SHA1 Message Date
Tats
8b205526fe Completed integration of one source -> many quads (everything working) 2013-11-30 21:48:01 -05:00
Tats
73d934b4d0 Some cleanup in switching of image source 2013-11-30 19:23:35 -05:00
Tats
5a999f1983 - Put all mappings and paints in a single MappingManager class
- Basic compiling / running program (no quads for now)
2013-11-30 19:19:29 -05:00
Tats
7fce243072 Merge remote-tracking branch 'vliaskov/click-drag' 2013-11-29 12:09:58 -05:00
Tats
fd958cecf2 Merge branch 'master' of github.com:libremapping/libremapping
Conflicts:
	Common.cpp
	Common.h
	DestinationGLCanvas.cpp
	SourceGLCanvas.cpp
	main.cpp
2013-11-29 12:09:49 -05:00
Vasilis Liaskovitis
74894e59d1 MapperGLCanvas: Add click and drag functionality
Pressing the left-mouse button close enough to a vertex makes that vertex the
current / active one to operate on. If the button is not released, the vertex
can be dragged on the canvas. If on the source canvas, updates on the
destination canvas can be seen dynamically.

The user needs to click within a specific distance around a vertex otherwise
the click will have no effect in vertex selection. Distances of all vertices
from the point clicked are calculated (manhattan distance, but other can be
used) and the vertex with the smallest distance is declared as the new active
one.

An active vertex variable is also added in the Shape class. Both mouse and key
events update the active vertex of a shape (tested only with quad so far). So
the active vertex is no longer a static variable in the key event handler, but
is common state shared by both mouse and key event handlers.
2013-11-29 15:35:34 +02:00
Alexandre Quessy
ed1056527d Always draw OpenGL shapes' vertices in a counterclockwise order 2013-11-26 22:08:02 -05:00
Tats
11616282b0 Allows selection of the source: changes the source in the canvases 2013-11-26 13:38:36 -05:00
Tats
3889b68ad3 Merge branch 'qt-port'
Conflicts:
	MapperGLCanvas.cpp
2013-11-24 10:34:36 -05:00
Tats
54c199f8fd Correct management of source<->destionation interaction using signals/slots 2013-11-24 09:27:28 -05:00
Tats
4310f297d1 Done: reproduced the wxwidgets prototype in Qt 2013-11-23 23:16:04 -05:00
Tats
fbeddb0def Fix: move lines (focus by clicking) 2013-11-23 17:43:12 -05:00
Tats
5c1ec14662 Basic switch from wxWidget to Qt (not working yet) 2013-11-23 17:37:59 -05:00
sylvain
42e839b179 Fix filcker 2013-11-23 15:23:11 -05:00
Tats
06ecc20f83 Multi-source harcoded: switch between mappings 2013-11-16 11:41:39 +01:00
Tats
32924471e0 Copy wx-02-input-output to root 2013-11-15 16:12:22 +01:00