Commit Graph

115 Commits

Author SHA1 Message Date
sylvass b64fc94599 Add class Pair for skybrowser + skytarget pair 2021-11-03 10:37:40 -04:00
sylvass d5422f429d Restructure and clean up 2021-11-03 10:37:20 -04:00
sylvass c895f24989 Cleanup 2021-10-25 09:38:09 -04:00
Ylva Selling 01c393ab8b Fix so backend can handle layer ordering 2021-06-09 10:58:42 +02:00
Ylva Selling 86fbde2af8 Bugfix and better destruction of WWTDataHandler in module 2021-06-09 09:28:34 +02:00
Ylva Selling 111c719ed7 Cleanup: Rename function to better name and remove duplicates of code 2021-06-02 15:47:07 +02:00
Ylva Selling 8e8ac4e90e Initialize browsers with lua api and load image collections upon startup. Add 3D browser functionality 2021-06-02 15:35:07 +02:00
Ylva Selling 6cf7dd8d45 Load, connect and set up connection to WWT app properly with the help of OpenSpace Lua api 2021-05-26 16:23:49 +02:00
Ylva Selling ee33d1df24 Add lua functions for communication with GUI: add and remove target browser pairs and 3D browsers, change opacity of layer, use ID:s for the browser 2021-05-21 10:00:04 +02:00
Ylva Selling 27ac366782 Send if camera is within solar system to gui and clean up lua functions 2021-05-20 11:25:13 +02:00
Ylva Selling 1380c7a2c4 Fade in and out browser and target when going outside of the solar system 2021-05-20 08:58:37 +02:00
Ylva Selling 19d24e90d7 Add functionality for 3D browser: wwt messages and function to create an instance in lua api 2021-05-19 12:01:20 +02:00
Ylva Selling d2871392d7 Add functionality to render a browser in renderable sky browser and add it in module 2021-05-18 11:20:07 +02:00
Ylva Selling b95fa7a701 Load images from url automatically if the folder WWTimagedata doesn't exist in module 2021-05-12 15:10:43 +02:00
Ylva Selling d8d8cbf2fd Add new API functions and load images in a cleaner way from module instead of lua 2021-05-12 12:14:18 +02:00
Ylva Selling 3ef357f56e Get the vector of browsers by reference instead of as a pointer 2021-05-10 09:20:11 +02:00
Ylva Selling a456b68b20 Make it more efficient to get the vector of browsers 2021-05-07 14:37:52 +02:00
Ylva Selling c882cdd3a3 Add selection functionality to send index from and to GUI and move capping of scroll too browser 2021-05-07 11:50:13 +02:00
Ylva Selling ed027c9224 Add camera animation rotation to look at coordinate 2021-05-07 10:08:06 +02:00
Ylva Selling 16e83fdcdd Bugfix of crashing when scrolling too fast - add cap of update of scroll callback 2021-05-06 15:29:06 +02:00
Ylva Selling 2eecb08bcf Add random colored borders to browsers and targets that are sufficiently bright, and add function to pass them to GUI 2021-05-04 09:14:35 +02:00
Ylva Selling dcbd74ab7a Fix offset bug by changing how the target direction is calculated. Move calculations to utility file 2021-04-30 09:24:34 +02:00
Ylva Selling b7c4d94df0 Use doubles for coordinates and some bugfixes 2021-04-26 14:26:39 +02:00
Ester Lindgren 8ffee81e64 Merge resolve 2021-04-06 08:48:37 +02:00
Ester Lindgren c234b69436 Add function to drag and change view within browser 2021-04-06 08:44:42 +02:00
Ylva Selling f99f3e88a9 Move the WWT data handling to class WWTDataHandler and add pointer in module 2021-03-31 17:03:30 +02:00
Ylva Selling b95d6e5b94 Change rapidxmlparser to tinyxml2 and add more extensive xml parsing and image loading 2021-03-31 16:41:38 +02:00
Ylva Selling ec138b6897 Add function to save URL to file, parse to XML tree and insert into vector as images 2021-03-30 08:28:32 +02:00
Ylva Selling fbc05244e1 Make it possible to add many browsers and targets by moving functionality to ScreenSpaceRenderable 2021-03-23 09:44:14 +01:00
Ylva Selling ac275140c5 Load browser and target as assets 2021-03-22 13:54:01 +01:00
Ylva Selling 51f40172f7 Move browser specific functionality to screenspacebrowser 2021-03-22 09:57:49 +01:00
Ylva Selling 39b1887e14 Merge resolve 2021-03-19 15:14:12 +01:00
Ester Lindgren b17bb82359 Change target to crosshair in relation to field of view 2021-03-19 14:43:55 +01:00
Ylva Selling d2d6899e7a Add draft for creating the browser and target from GUI. Still problem with finding browser after creation 2021-03-19 13:52:21 +01:00
Ester Lindgren 543e3641ab Set target dimensions from browser dimensions 2021-03-19 09:57:14 +01:00
Ylva Selling ac4fc926a2 Add function to create browser 2021-03-19 09:37:19 +01:00
Ylva Selling 3573859ffe Add resizing functionality to all corners and side of browser 2021-03-18 16:13:46 +01:00
Ylva Selling 707027664f Merge resolve 2021-03-18 09:35:00 +01:00
Ylva Selling c05f8a4e87 Add working resize and dragging functionality 2021-03-18 09:33:34 +01:00
Ester Lindgren d43be4a624 Merge resolve 2021-03-12 15:21:56 +01:00
Ester Lindgren 6ac4e594c5 Move createtarget function call 2021-03-12 14:53:08 +01:00
Ylva Selling c9fc1765ad Change drag function of target and browser to callback function 2021-03-11 16:12:23 +01:00
Ylva Selling ebcbce56f5 Add functionality to drag target 2021-03-11 14:00:27 +01:00
Ylva Selling c16ee0698f Implement simple version of scroll 2021-03-11 11:44:13 +01:00
Ester Lindgren fc3fa859af Merge resolve 2021-03-11 10:10:26 +01:00
Ester Lindgren 8a0e9e6ed0 Add ScreenSpaceSkyTarget class to handle target 2021-03-11 10:04:53 +01:00
Ylva Selling c32c1fff6a Add functionality to drag skybrowser 2021-03-11 09:23:10 +01:00
Ylva Selling 1bde0560c7 Merge resolve 2021-03-08 16:07:18 +01:00
Ylva Selling 8ac85466e7 Make thread be joined, not detached, and run depending on a flag 2021-03-08 15:53:45 +01:00
Ester Lindgren fce49cf4ec Change from SkybrowserModule to SkyBrowserModule in lua function 2021-03-08 14:03:00 +01:00