Commit Graph

13 Commits

Author SHA1 Message Date
Davide Faconti a8264e391d Remove NodeDataModel::clone() (#164)
* removed NodeDataModel::clone(), using a more classic Factory/Builder pattern.

* trying to make visual studio happy

* Allow the DataModelRegistry to use static method Name() if defined

* use modern type_traits
2018-05-11 11:00:30 +02:00
paceholder a9b6405a4d Implement Json serialization (#53) 2017-01-31 21:30:56 +01:00
David Bachrati 64dd7d491a Implement automatic insertion of typecast nodes (#52)
* Automatic type cast node insertation working in a basic manner

* Port paint fix to handle convertible types

* Code cleanup, documentation,, and minor fixes

* Fixing master merge

* Master merge fix 2

* Master merge fix 3

* Code style fixes

* Fixing logic error, where typecast node with the same input-output types were permitted

* Fixes based on @russelltg 's suggestions

* Got rid of unique_ptr static_casts

* Partial fixes from the code review

* Merging master into branch vol. 3
2017-01-30 18:03:49 +01:00
Dmitry Pinaev 0eaa18eb30 Introducet QtNodes namespace (#40) 2017-01-30 15:00:42 +01:00
David Bachrati 770a1aa9ec Implement runtime validation and error reporting (#46)
* Node validation and error display implemented

* Added option to iterate through nodes in the scene. (Useful to read out data from all the nodes, makes code generation based on the graphs easier.)

* Visual error fix for nodes that change size depending on input, plus minor styling and logic fixes in the example, based on the comments of @russelltg

* Validation extended to handle warnings, based on the idea of @russeltg ; Error display colors now come from the style system;  Additional bugfixes

* DefaultStyle.json identation fix

* FlowScene.cpp identation fix

* Travis build test fix
2017-01-25 11:34:03 +01:00
Dmitry Pinaev 0835f9af92 Use std::make_unique 2016-11-23 00:42:25 +01:00
Dmitry Pinaev f64f915cb3 Revert c++14 until CI is fixed 2016-11-22 22:46:41 +01:00
Dmitry Pinaev dd4077113e Move to C++14, use std::make_unique 2016-11-22 22:01:28 +01:00
Russell Greene 81f2e5420a Add runtime typeing 2016-11-22 08:21:59 -07:00
Dmitry Pinaev 925dc6b72a Forbid automatic scene resizing and scrolling 2016-09-26 16:48:04 +02:00
Dmitry Pinaev bc56b9af91 Implement save/restore mechanism 2016-09-25 19:34:16 +02:00
Dmitry Pinaev 18760caac2 Fix #16. Show node names 2016-08-22 22:20:34 +02:00
Dmitry Pinaev 4ebe5b4a22 Fix #7. Create example calculator 2016-08-21 23:21:00 +02:00