Commit Graph

68 Commits

Author SHA1 Message Date
Alexander Bock
534f92c485 Second linting pass and adding .clang_tidy file (#3128) 2024-03-18 22:46:17 +01:00
Alexander Bock
7a2efc66d6 Simplify profile loading and handling of the loading screen 2024-02-28 00:19:06 +01:00
Alexander Bock
6e29d898cf Update copyright header 2024-02-06 15:53:24 +01:00
Alexander Bock
7db7c40841 Doxygen style overhaul (#2954)
Reformatting the existing Doxygen comments to be unified
2023-11-20 23:39:17 +01:00
Alexander Bock
aad8beb60c Remove warnings 2023-09-07 19:00:26 +02:00
Emma Broman
c949a9892c Issue/2227 - Option to just specify a scene graph node in profile editor camera dialog (#2699)
* Add profile edit to start camera at a given scene graph node

* Restructure some navigation code to allow computing camera pose from node

* Delay computation of camera pose for node spec as well... And give NodeInfo a more extensive name (The objects may move during the frame, making the computed pose invalid)

* Update to make scene graph node first option in editor

* Add some description to each tab in the camera dialog

* Add operator== for CameraGoToNode struct to make the unit tests compile

* Add version handling for new profile version

* Add option to specify an optional height

* Update current version constant, for old test cases to go through successfully

* Add some test files

Note that apparently, the profile loading does not check the values of the individual fields, just existence, and type. So added two test cases that are not currently checked.

---------

Co-authored-by: Alexander Bock <mail@alexanderbock.eu>
2023-05-24 11:22:41 +02:00
Alexander Bock
35a92b6e4d Add the ability to start a profile paused (closes #2228). Bump profile version to 1.2 2023-02-27 18:03:35 +01:00
Alexander Bock
4f4764209f Happy new year 2023-01-02 11:19:33 +01: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
4697290298 Fixing the Jenkins build 2022-04-12 21:11:01 +02:00
Alexander Bock
d360f2ae59 Address Visual Studio analyzer warnings 2022-04-12 00:58:11 +02:00
Alexander Bock
c206da4a98 Coding style adaptations 2022-04-10 23:25:37 +02: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
d7d279ea16 Happy new year 2022-01-01 12:32:55 +01:00
GPayne
a4d84d8703 Code review changes on new profile initialization 2021-09-16 23:11:02 -06:00
GPayne
51f6c9d45b Rearranged profile initializations and verified that all init correctly 2021-09-12 21:05:00 -06:00
GPayne
cd50c3e4cf Working non-assetized initializations for profile sections besides modules and interesting nodes 2021-09-07 21:55:44 -06:00
GPayne
4016180b8c Replaced engine init single asset call with separate profile conversions 2021-08-22 22:48:44 -06:00
GPayne
52e4f75b32 Separate profile conversion to assets into sections 2021-08-20 15:56:41 -06: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
77bdfaefd6 Move camera path code into core and refactor navigation code a bit 2021-06-23 09:12:36 +02:00
Alexander Bock
7004c02b86 Happy new year 2021-01-02 15:26:51 +01:00
Alexander Bock
60e3ed2170 General pass for coding style 2020-11-28 22:31:06 +01:00
Micah
d524ecf803 Merge branch 'master' into feature/profile-gui 2020-10-09 19:40:46 -04:00
Alexander Bock
50a456b87f Issue/1299 (#1312)
Change profile file format from a custom one to JSON
2020-10-09 17:32:30 +02:00
Gene Payne
180cddfaa3 Fixed parse exceptions and improved assets with path and variable name 2020-09-16 21:06:46 -06:00
GPayne
831bf87d0c Improved exceptions and added error message dialog UI 2020-09-16 07:11:50 -06:00
GPayne
0dcf4a5e82 Finished syncing profile editor with openspace lib profile structs 2020-09-13 23:51:16 -06:00
GPayne
7d41cd5a49 Merged master in 2020-09-11 10:29:59 -06:00
GPayne
1b07268324 Working instantiation of Profile obj from launcher 2020-08-30 19:01:25 -06:00
Alexander Bock
95db615dab Merge branch 'master' into feature/general-performance 2020-08-24 15:09:45 +02:00
Emma Broman
7692180bad Verify values on input and save delta times to profile when saving settings 2020-08-24 11:32:32 +02:00
Emma Broman
457dabe9b7 Add list of delta time steps, stepping functions and keybindings 2020-08-24 11:32:31 +02:00
Alexander Bock
6ac5d536fa Update Ghoul repository
Adapt to Ghoul changes in MemoryPool
2020-08-19 16:19:25 +02:00
Alexander Bock
3e1cf6b2e3 Intermediate commit for meta information 2020-06-23 10:32:51 +02:00
Alexander Bock
b51b0898fc Remove 'require'/'request' parameters from asset inclusion in profiles 2020-06-22 10:05:19 +02:00
Alexander Bock
42e4e0a75b Convert keybinding keys to typed keys 2020-06-21 23:54:36 +02:00
Alexander Bock
338c8a9bd5 Adding the ability to add additional scripts to a profile when necessary 2020-06-21 14:26:15 +02:00
Alexander Bock
12611b1a9a Use the correct type for the navigation state
Add unit tests to verify parsing of these parameters
2020-06-21 12:31:18 +02:00
Alexander Bock
3ed2e25188 Removing global state from the Profile itself to make unit testing a bit easier 2020-06-20 23:35:46 +02:00
Alexander Bock
6321a72bb4 Cleaning up includes 2020-06-20 22:39:07 +02:00
Alexander Bock
a530c081fa Replace explicit lack of camera information through the monostate with an optional instead 2020-06-20 22:24:31 +02:00
Alexander Bock
18a53e6605 Replace explicit Time::Type::None by using an optional 2020-06-20 22:21:09 +02:00
Alexander Bock
a367148b1d Remove patch component from profile version 2020-06-20 22:14:10 +02:00
Alexander Bock
15db67bb59 Port basic profile unit testing 2020-06-20 15:28:51 +02:00
Alexander Bock
604935b640 Move profile information from ProfileData into Profile class
Temporarily comment out unit tests
2020-06-19 00:09:43 +02:00
Alexander Bock
4c9555425b Cleanup of asset handling and move more functionality to the Profile 2020-06-18 23:09:26 +02:00
Alexander Bock
12daf94cb5 Make time specification in profiles optional
Provide a nicer error message when forgetting version and camera parameters
2020-06-18 22:17:12 +02:00
Alexander Bock
b59b6cc2d2 Yet more cleanup 2020-06-18 19:40:16 +02:00
Alexander Bock
a8c5d3bb91 More cleanup 2020-06-18 18:07:04 +02:00