Commit Graph

57 Commits

Author SHA1 Message Date
Tats b28c1475b0 Removed mouse-management events completely from ShapeGraphicsItem 2015-07-15 12:52:17 -06:00
Tats 775cf739c6 - Moved the control of shapes outside of the scene items
- Introduced a specialized range of classes to deal with the drawing of controls
2015-07-14 13:24:36 -06:00
Tats acca6059f6 Implemented invariant control points and lines wrt zoom level. 2015-07-13 13:25:18 -06:00
Tats 344f375c53 Fixed perspective-correct textures (not optimized). 2015-07-11 20:24:06 -06:00
Tats c15f1025b9 Collapse input and output shape in property browser. 2015-07-11 18:14:31 -06:00
Tats 64bbd94f9a Re-enable toggle of display controls. 2015-07-11 16:29:06 -06:00
Tats 0dd88cb68c Added mapping-level opacity setting. 2015-07-11 11:54:15 -06:00
Tats cf95cab6eb Reorganized painting process in Mapper to provide common pre-painting to ellipse and polygon color mappers. 2015-07-11 11:53:23 -06:00
Tats 2ab3b137d9 Integrate sticky vertices in new QGraphicsItem framework. 2015-07-06 21:58:48 -06:00
Tats b6b3863eb2 Minor documentation added. 2015-07-06 17:57:08 -06:00
Tats d1b1d00e10 Integrated ellipse texture mapping. 2015-07-06 17:53:37 -06:00
Tats f23ce800fc Support for mesh textures. 2015-07-06 16:58:29 -06:00
Tats a98577de44 Generalization of the texture input drawing. 2015-07-06 16:58:01 -06:00
Tats 52ebee732f Added a method to reset (clear + recreate) all vertices. 2015-07-06 16:56:42 -06:00
Tats b9177b9418 Fixed a number of problems related to shape selection and display in input and output. 2015-07-04 11:35:48 -06:00
Tats b206a432a7 Prevent default actions on graphics items when mappings not visible. 2015-07-03 22:18:07 -06:00
Tats 67628915a3 Handle mapping selection change on pressing mouse on a shape. 2015-07-03 21:51:38 -06:00
Tats f0c4bb1fa9 Allow display of controls only in currently selected mapping. 2015-07-03 17:21:11 -06:00
Tats 067a84cf12 Changing the ordering of mappings now changes the order in which they are actually displayed (layers). 2014-12-28 22:29:47 -05:00
Tats 7c642e8570 Commented out remaining Mapper code from old approach. 2014-12-28 22:28:08 -05:00
Tats 2b7a6e82a5 Fixed translation and display of controls of triangle texture. 2014-12-28 19:53:36 -05:00
Tats 78294f2ef0 Fixed correct translation of color shapes. 2014-12-28 19:44:46 -05:00
Tats b35ce293bf Sync of vertices control points retroactive (to make ellipse works) (not fully working yet). 2014-12-28 18:01:39 -05:00
Tats 31e315363e Major refactoring: moved too long methods from Mapper.h to Mapper.cpp and removed unused drawing code from Mapper classes. 2014-12-28 18:01:02 -05:00
Tats 965a26edd6 Extremely rough patch for manipulating mapping texture shapes (works only for triangles). 2014-12-28 15:58:06 -05:00
Tats 6843ecd882 Integrated view items for selecing and dragging shapes in the QGraphicsView; not completely tied to model yet. 2014-10-31 17:05:32 -04:00
Tats 07e1b26436 Allows individual selection of a vertex to be shown on screen. 2014-10-23 13:40:01 +00:00
Tats abb62dc1f2 Integrated file choosing pop-up for images and media in property browser. 2014-10-16 20:56:02 +00:00
Tats aa39752b98 Some cleanup / reorganization of code 2014-06-10 22:27:12 -04:00
Tats 66dc735861 Added _preDraw() and _postDraw() methods to avoid repetition of code in TextureMapper 2014-06-10 22:26:41 -04:00
Tats 011790372b Comments added 2014-06-10 22:24:54 -04:00
Vasilis Liaskovitis 1aace8a578 Change the uri of existing media or color paint with double-click
When double-clicking a paint QListWidgetItem, the uri of that paint can be
altered.

A new signal is sent to ColorMapper and TextureMapper objects so that they can
update heir color and texture paints respectively. Mappings of the old paint are
transferred to the new paint.

TODO: the active mapping may be lost in some cases, needs some more testing.
2014-05-22 11:30:25 +02:00
Tats f5d375442a Improved the style of the control rendering. 2014-05-03 00:26:02 -04:00
Tats 05c1bf3a5c Major cleanup / redesign in the source canvas to make the Mapper class draw the inputs (more generic) 2014-04-30 13:21:57 -04:00
Tats 441664e6f0 Added a Polygon shape and corresponding mappers (just used as a superclass of Quad and Triangle for now). 2014-03-19 22:34:34 -04:00
Tats bdfa20ecda Implemented method drawControls() for EllipseColorMapper. 2014-03-02 21:13:39 -05:00
Tats 0b027f29f3 Implemented basic support for texture ellipse (works, default center point, no drawing of control points). 2014-03-02 17:02:52 -05:00
Tats ac555b7b10 Added basic support for color ellipses 2014-02-08 23:44:56 -05:00
Tats 18f6160507 Mapper frees memory of its property browser 2014-01-23 23:23:57 -05:00
Tats 0ff52de66a Major reconfiguration of the GL canvases and the Mapper interface to allow for the use of a QPainter and for integrating ColorPaint mappings 2014-01-22 15:01:00 -05:00
Tats 9962c56ba7 Removed remaining dynamic cast type checking in *GLCanvas (for drawing shape contours) 2013-12-16 01:37:54 -05:00
Tats 3f99dbdebf Removed dynamic cast type checking in Mapper and used subclasses of TextureMapper instead 2013-12-16 00:50:31 -05:00
Tats 88bc2dd745 Mesh properties allows one to add columns and rows 2013-12-11 00:10:04 -05:00
Tats 0e1658c9c3 Replace property browser by tree browser in TextureMapper 2013-12-08 14:55:58 -05:00
Tats e206ce6108 Code refactoring to add output shape to property editor 2013-12-08 14:45:41 -05:00
Tats b82ecfd0c5 Merge branch 'develop' of github.com:libremapping/libremapping into develop 2013-12-08 12:02:57 -05:00
Tats 8502ef3b37 Added basic properties widget for current selected mapper (bidirectional update of input shape vertices, though wrongly initialized) 2013-12-08 11:58:05 -05:00
Tats ef05550a53 Fixed to make it work under OSX 2013-12-06 23:42:45 -05:00
Tats 0015e237c9 Added support for triangles 2013-11-30 23:55:25 -05:00
Tats 8b205526fe Completed integration of one source -> many quads (everything working) 2013-11-30 21:48:01 -05:00