Commit Graph

265 Commits

Author SHA1 Message Date
Alexander Bock c1252902c7 More Code Cleanup (#2192)
* Harmonizing ( and ) in function calls
* static const -> constexpr
* Fix compile issue
* Unify shader tab size
* Add _fs and _vs to shaders
* Harmonize spacing
2022-07-26 11:22:41 +02:00
Alexander Bock 9cc4c595a8 Code Cleanup (#2191)
* constexpr const -> constexpr
* const char* -> std::string_view
2022-07-25 15:57:45 +02:00
Alexander Bock 10ec6d3013 Revert pragma warnings 2022-07-11 14:26:13 +02:00
Alexander Bock 0b62d5cc4b Disable unknown pragma warnings and adapt to it 2022-07-05 14:27:40 +02:00
Emma Broman b0968392c5 Update ghoul to keep full precision when converting Lua value to string
And update tests that use the conversion

Fixes lost precision when printing navigation state from openspace.navigation.getNavigationState()
2022-07-04 16:28:14 +02:00
Malin E 71355637db Address PR comments 2022-06-30 14:13:03 +02:00
Malin E 186e0b9ced Adjust double comparison tests 2022-06-01 13:45:53 +02:00
Malin E 0c7cbea125 Adjust double comparisons in tests 2022-05-24 10:13:38 +02:00
Malin E 6eb732b9d0 Add tests for horizons feature 2022-05-24 09:34:25 +02:00
Alexander Bock 5751fe26d3 Cleanup handling of warnings (#2030) 2022-04-16 20:57:29 +02:00
Alexander Bock 3844df20c9 Feature/codegen lua (#1906)
Adapting Lua functions to new codegen functionality
Improve the documentation itself
Add some styling to generated documentation
Have parameter names for Lua-defined Lua function documentation

Co-authored-by: Emma Broman <emma.broman@liu.se>
2022-03-21 09:05:37 +01:00
Alexander Bock cbe2e6cdcf Set the default window size to 66% of the primary window size (closes #1883) 2022-02-17 17:55:43 +01:00
Alexander Bock e8072495ec Feature/warnings (#1885)
Remove many warnings from MSVC, Clang, and GCC
2022-02-16 18:33:12 +01:00
Alexander Bock 30212b6768 Adapt to new auto coding style 2022-02-10 15:20:21 +01:00
Alexander Bock a7841ce405 Working unit tests (#1882)
* Enable all unit tests in Jenkins (closes #1666)
* Fix issue with Profile where the version number is not updated if the profile does not contain keybindings
* Fix issue with script schedule that would cause a crash when only one script is scheduled
* Fix test for colorimage, use correct path to unit test executable for non-windows platforms
* Provide stable class names for vector and matrix verifiers
2022-02-10 01:06:41 +01:00
Alexander Bock 0290bec7d0 Remove empty unit test 2022-01-01 22:41:21 +01:00
Alexander Bock 550faec8fb Fix example, don't store DefaultTileProvider as unique_ptrs 2022-01-01 13:07:15 +01:00
Alexander Bock d7d279ea16 Happy new year 2022-01-01 12:32:55 +01:00
Alexander Bock debcb43ade Feature/assets (#1784)
General overhaul of the Asset loading system
2021-12-19 18:04:01 +01:00
Emma Broman 57e662e8e2 Update a couple of broken tests 2021-12-06 13:47:29 +01:00
Emma Broman 59dc296cf1 Update ghoul to use new luaTableToString function
And update some tests based on the change
2021-12-06 13:21:39 +01:00
Malin E d86923ebb7 Fix ScriptScheduler tests 2021-10-25 10:49:24 +02:00
Alexander Bock db472030de GCC warnings (#1725) 2021-08-21 11:42:44 +02:00
Alexander Bock 34985f64a6 Feature/keybindings (#1708)
* Add action manager to handle actions in replacement of keyboard shortcuts
* Implement new Action concept
* Remove the shortcutscomponent as it is no longer needed
* Update profile version from 1.0 to 1.1
* Add action dialog
* Restructure of key specification in keys.h
* Remove solid field-of-view keybind from the newhorizons profile as the setting no longer exists
2021-08-18 10:58:20 +02:00
Emma Broman bfe25c311b Merge branch 'master' into thesis/2019/camera-paths
# Conflicts:
#	src/rendering/abufferrenderer.cpp
2021-08-09 15:21:08 +02:00
Alexander Bock dfca605d63 Add the optional ability to print a stacktrace with an OpenGL error (closes #1700) 2021-07-30 15:37:03 +02:00
Alexander Bock 90157ce463 Warnings and compile fixes for MSVC 2021-07-30 15:01:21 +02:00
Emma Broman 77bdfaefd6 Move camera path code into core and refactor navigation code a bit 2021-06-23 09:12:36 +02:00
Alexander Bock 92432caed2 Adapt to changes in Ghoul that made absPath return a std::filesystem::path instead of a std::string 2021-05-17 00:23:15 +02:00
Alexander Bock ccdc5a5dc3 Feature/filesystem cleanup (#1587)
* Adapting to the changes in Ghoul
* First step of moving filesystem functions to std
* Remove persistence flag from cachemanager
2021-05-16 20:26:49 +02:00
Emma Broman e6a7225028 Fix missed perSceneCache rename in test file 2021-05-06 15:24:35 +02:00
Emma Broman 804444e267 Simplify Property code (#1575)
* Remove the PropertyDelegate

* Remove some unused and redundant property types

* Use helper functions for Lua/Json conversion

* Solve a bug in SelectionProperty that occurred when re-setting options

* General simplification and refactoring of the code
2021-05-04 09:32:29 +02:00
GPayne d47ac2f248 Added month of day limit for yearly increment 2021-05-03 15:18:16 -06:00
GPayne 6fc1d608e9 Fix that allows all days of month except monthly increment still at 1-28 2021-05-03 15:18:16 -06:00
GPayne fc33a99b23 Added all image-comparison test files 2021-04-21 15:19:16 -06:00
Malin Ejdbo 16bd1d3265 Merge branch 'master' into feature/model-animation
* Resolve conflicts

* Master has error with changing focus
2021-04-21 10:23:10 +02:00
Emma Broman 91387d8401 ListProperties and SelectionProperty (#1558)
* Reimplement stringlistproperty with a listproperty parent class

* Add string list property tests and structure test files

* Reimplement SelectionProperty and add tests

* Some TemplateProperty documentation updates

* Read full constellation name and not just first word for ConstallationSelection

* Remove support for setting property value from string (unused)

* Add IntListProperty, DoubleListProperty

* Bug fix: SetProperty topic now support empty json objects

* Imgui renderings for list properties and pass SelectionProperty  info to WebGui
2021-04-19 16:10:36 +02:00
Malin Ejdbo 4a97a21297 Address PR comments 2021-04-14 17:12:46 +02:00
Malin Ejdbo 1f89cc370c Add cross conversion tests for distance conversions 2021-03-26 10:42:58 +01:00
Malin Ejdbo bc9fc63719 Merge branch 'master' into feature/model-animation
* Resolve conflicts
2021-03-25 13:54:51 +01:00
Malin Ejdbo a7ef1d5f16 Switch to numerical numbers in distances test 2021-03-25 13:18:21 +01:00
Malin Ejdbo 9bfc87958b Add tests for distance conversion 2021-03-25 11:19:54 +01:00
Alexander Bock 0d82e1848f Feature/configuration codegen (#1544)
Convert configuration document over to codegen
2021-03-23 15:22:29 +01:00
Alexander Bock dfc42e9467 Rename createSingeColorImage -> createSingleColorImage 2021-03-22 23:17:42 +01:00
Emma Broman 29e77534c7 Make use of new verifiers (Color and File) (#1510)
* Use codegen for renderable discs

* Utilize color and file verifier

* Add missing property assignment in exoplanets module
2021-03-02 08:11:49 +01:00
Emma Broman d630f85cf4 Fix crash in OpenSpaceTest due to missing initialization of the LogManager 2021-02-23 11:07:42 +01:00
Emma Broman b10e598cd3 Cleanup and improve test 2021-02-04 13:25:17 +01:00
Emma Broman 3f63f92128 Add test cases for the create single color image lua function 2021-02-04 13:25:17 +01:00
Gene Payne cdbc1c2695 Fixes for getting all unit tests passing on linux (#1454) 2021-01-12 10:29:43 +01:00
Alexander Bock 3d74d6051e Remove Dictionary use in script scheduling with struct 2021-01-02 23:24:15 +01:00