Commit Graph

1960 Commits

Author SHA1 Message Date
Tim Moore eed64b15c0 Remove unused include of CesiumGeospatial/Cartographic.h
Caught by clang-tidy
2025-04-25 12:16:11 +02:00
Tim Moore 099d8c14ca Add change log note and run format 2025-04-25 10:56:33 +02:00
Tim Moore 9eed8f6879 Add test case
Thanks to @javagl for the test case
2025-04-24 18:51:55 +02:00
Janine Liu ad575e3636
Merge pull request #1160 from CesiumGS/multiple-views-more
Multiple views: Some final improvements from review
2025-04-24 11:27:33 -04:00
Janine Liu 8a430741bc
Use hasReferencingContent in assert 2025-04-24 10:28:10 -04:00
Kevin Ring 0a939838cc Clear raster overlays attached to non-render content. 2025-04-24 20:47:13 +10:00
Kevin Ring d94e7d4865 Merge remote-tracking branch 'origin/multiple-views-one-reference-count' into multiple-views-more 2025-04-24 13:22:36 +10:00
Kevin Ring ce2c0b482b Address review comments. 2025-04-24 13:18:28 +10:00
Janine Liu bec1332b48
Update doc for correct method 2025-04-23 16:41:29 -04:00
Tim Moore 47546bc4b6 Deprecate ViewState::create functions in favor of constructors 2025-04-23 19:07:10 +02:00
Tim Moore 8852b81214 Merge branch 'main' into orthographic 2025-04-23 18:41:59 +02:00
Kevin Ring 87c9ae7465 Doc improvements. 2025-04-23 20:58:49 +10:00
Kevin Ring cc4e1a537c Deprecate updateView / updateViewOffline. 2025-04-23 20:48:40 +10:00
Kevin Ring 6107fecb19 Add updateViewGroupOffline method. 2025-04-23 17:44:35 +10:00
Kevin Ring 74b919d410 Merge remote-tracking branch 'origin/multiple-views' into multiple-views-one-reference-count 2025-04-23 15:47:06 +10:00
Kevin Ring c6c498eec1 Merge remote-tracking branch 'origin/main' into multiple-views 2025-04-23 15:46:32 +10:00
Kevin Ring 37cbd9c3bb clang-tidy. 2025-04-17 21:16:02 +10:00
Kevin Ring c19cbe1633 Clang-tidy 2025-04-17 19:46:04 +10:00
Kevin Ring 4d2241d3db Fix clang warnings. 2025-04-17 18:14:53 +10:00
Kevin Ring 4de9c081fb More cleanup. 2025-04-17 18:03:14 +10:00
Kevin Ring 463b91bdd3 Add some doc, simplify some logic. 2025-04-17 17:54:51 +10:00
Kevin Ring 6415b9a29f Remove unnecessary changes. 2025-04-17 17:46:41 +10:00
Kevin Ring ba8d790013 Fix assertion failure.
Caused by tiles that are not eligible for unloading still being loaded
when cleared.
2025-04-17 17:19:56 +10:00
Kevin Ring 00c575d1b5 More ref count cleanup, fix tests. 2025-04-17 15:40:10 +10:00
Kevin Ring a973df464b Keep TilesetContentManager alive while Tiles are alive. 2025-04-17 10:53:01 +10:00
Kevin Ring 9a4a3e3e78 Revert "Remove CESIUM_DEBUG_TILE_UNLOADING."
This reverts commit 6ee6210f78.
2025-04-16 15:53:44 +10:00
Kevin Ring 79bfe21186 Add some assertions. 2025-04-16 15:53:12 +10:00
Kevin Ring 0b0cb86831 clang-tidy 2025-04-15 18:32:30 +10:00
Kevin Ring 23fc5b27ab Comment tweak. 2025-04-15 17:52:41 +10:00
Kevin Ring 5fc9ed5dae Rename functions. 2025-04-15 17:49:14 +10:00
Kevin Ring 4f29c7b734 Assert that content isn't set twice. 2025-04-15 17:44:05 +10:00
Kevin Ring a2657e356b Remove rambling and redundant comment. 2025-04-15 17:30:14 +10:00
Kevin Ring 6ee6210f78 Remove CESIUM_DEBUG_TILE_UNLOADING.
Unfortunately there's no good way to support this sort of thing, now
that almost all of the reference counting is managed by
IntrusivePointer.
2025-04-15 17:25:42 +10:00
Kevin Ring 841344831b Hold IntrusivePointer during Tile loading. 2025-04-15 17:02:22 +10:00
Kevin Ring 41889dcfee Tile::Pointer and other cleanup. 2025-04-15 16:55:18 +10:00
Kevin Ring 818e4fccc3 More reference counting doc. 2025-04-15 16:12:54 +10:00
Kevin Ring 6e4b13f994 Fix clang-tidy warnings. 2025-04-14 19:33:37 +10:00
Kevin Ring c31e1da475 Fix broken link in doc. 2025-04-14 19:31:07 +10:00
Kevin Ring a6e9fde01d Only store one reference count on Tile. 2025-04-14 17:27:36 +10:00
Kevin Ring 3da6ea131b Improvements from review. 2025-04-11 18:35:46 +10:00
Kevin Ring 3dd746be7c Rename _tilesAlreadyLoading -> _tilesAlreadyLoadingOrUnloading. 2025-04-11 18:20:04 +10:00
Kevin Ring 1c184ccc1b Use member function pointers instead of templates / lambdas. 2025-04-11 18:07:32 +10:00
Kevin Ring 97dcc14d2d Doc improvements. 2025-04-11 18:05:21 +10:00
Kevin Ring abb8d3370c Don't enumerate root tile if it / descendants are not loaded. 2025-04-11 17:07:34 +10:00
Kevin Ring 05e6e12060 clang-tidy warnings. 2025-04-11 15:44:01 +10:00
Kevin Ring 300804cc3f Merge remote-tracking branch 'origin/main' into orthographic 2025-04-11 08:20:39 +10:00
Kevin Ring c3da20ed40 Formatting, add missing doc. 2025-04-11 08:08:23 +10:00
Tim Moore 1230be4aca ViewState constructor for orthographic projection 2025-04-10 17:36:11 +02:00
Kevin Ring a25233bb24 Changes from review. 2025-04-10 15:46:42 +10:00
Kevin Ring b1d845611a Better TileLoadTask ordering. 2025-04-08 18:29:13 +10:00
Kevin Ring f778da7019 Tileset cleanup. 2025-04-08 17:04:21 +10:00
Kevin Ring e4e8d62368 Tile initialization cleanup. 2025-04-08 16:31:42 +10:00
Kevin Ring 2720437e09 Simplify tile enumeration. 2025-04-08 16:18:08 +10:00
Kevin Ring 1f4d3b19fd Small cleanup, mostly doc. 2025-04-08 16:05:10 +10:00
Kevin Ring c09bd48d77 Add basic TilesetViewGroup test. 2025-04-08 13:46:45 +10:00
Kevin Ring bec5ae2f01 Remove frame number from Tileset.
It only makes sense on TilesetViewGroup.
2025-04-08 10:53:20 +10:00
Kevin Ring e7b0dedaea Start progress at 0 instead of 100. 2025-04-08 07:40:11 +10:00
Kevin Ring 9c0dc55bf0 Fix clang warning. 2025-04-07 14:25:00 +10:00
Kevin Ring 91090b87c0 Test cleanup. 2025-04-07 12:26:50 +10:00
Kevin Ring 499ef058fd Add TileLoadRequester tests. 2025-04-07 12:15:49 +10:00
Kevin Ring 398ae77a1d Doc tweaks. 2025-04-04 19:13:01 +11:00
Tim Moore 733a2872c2 Only use projection matrix method 2025-04-03 19:04:36 +02:00
Kevin Ring abd17bee59 More clang-tidy. 2025-04-03 21:38:59 +11:00
Kevin Ring d64469fe21 clang-tidy. 2025-04-03 21:20:27 +11:00
Kevin Ring cea2af7d12 Fix doc problems. 2025-04-03 19:14:06 +11:00
Kevin Ring f2975cf641 Formatting. 2025-04-03 18:41:29 +11:00
Kevin Ring 9a2b6c646e Re-add the rest of the credits. 2025-04-03 18:27:47 +11:00
Kevin Ring e623a7d7cd Better TilesetViewGroup credit tracking. 2025-04-03 18:01:01 +11:00
Kevin Ring 3499deec02 Start making TilesetViewGroups update credits. 2025-04-02 20:58:50 +11:00
Kevin Ring 4141a83b59 Merge remote-tracking branch 'origin/multiple-views' into multiple-views-credits 2025-04-02 17:24:49 +11:00
Kevin Ring 260e80357c Merge remote-tracking branch 'origin/main' into multiple-views 2025-04-02 17:22:47 +11:00
Ashley Rogers 6b1c311992 Pass bounding volumes to prepareInLoadThread 2025-04-01 14:03:03 -04:00
Tim Moore 225f885d94 Remove obsolete references to dependency header directories 2025-03-31 17:06:14 +02:00
Kevin Ring 58bbb1f159 Merge remote-tracking branch 'origin/main' into vcpkg-pkg 2025-03-31 11:10:31 +11:00
Ashley Rogers 9752291586 clang-tidy fixes 2025-03-28 09:54:00 -04:00
Ashley Rogers 0a723c48df More review comments. 2025-03-28 09:25:53 -04:00
Kevin Ring e9eb9e9e7f New retained mode CreditSystem.
Not hooked up to Tileset yet.
2025-03-28 18:32:35 +11:00
Kevin Ring 4bbb7e4910 clang-tidy warnings. 2025-03-28 08:05:09 +11:00
Kevin Ring 4ca1a1145c Fix clang warning. 2025-03-27 22:41:12 +11:00
Kevin Ring 2445c498b0 Add support for querying TilesetViewGroup load progress. 2025-03-27 22:26:17 +11:00
Ashley Rogers d22bc9c2c0 clang-tidy fixes 2025-03-26 15:43:36 -04:00
Ashley Rogers bcff1e4432 Fix Doxygen issues 2025-03-26 14:27:34 -04:00
Ashley Rogers 15e68cce28 Fix rest of review issues 2025-03-26 14:22:47 -04:00
Ashley Rogers 1220a74b45 Remove EndpointResource for ion tileset loader 2025-03-25 16:03:51 -04:00
Ashley Rogers d499581382 Address a bunch of review comments 2025-03-25 15:19:49 -04:00
Tim Moore 2f2e38ac8a Add header files to assuage clang-tidy 2025-03-24 17:26:33 +01:00
Tim Moore 9cb5852ea3 run format 2025-03-22 18:07:06 +01:00
Tim Moore e7a97a8395 Update ViewState and CullingVolume to take a general projection matrix 2025-03-22 17:49:30 +01:00
Ashley Rogers c481048cc6 clang-tidy and CI fixes 2025-03-19 15:03:49 -04:00
Ashley Rogers 912c67f612 Fix crash on ion token refresh 2025-03-19 14:06:02 -04:00
Kevin Ring eb77e8db79 Fix ref count bug with LOD transitions enabled. 2025-03-16 23:03:57 +11:00
Kevin Ring fd2359cc92 Re-enable selection tests. 2025-03-16 20:43:52 +11:00
Kevin Ring 6894914577 Fix doc errors. 2025-03-16 12:22:12 +11:00
Kevin Ring 4ae059615c Fix clang-tidy warnings. 2025-03-16 12:03:51 +11:00
Kevin Ring bd4d05816f Formatting. 2025-03-16 11:55:40 +11:00
Kevin Ring 3fc4df5274 Fix release build warning. 2025-03-16 10:16:34 +11:00
Kevin Ring 85e20666f0 Avoid nested traversals. 2025-03-16 10:06:08 +11:00
Kevin Ring e837652860 Remove commented-out code. 2025-03-16 09:17:27 +11:00
Kevin Ring 1f1055f4a4 Reactivate LOD transitions. 2025-03-16 09:15:31 +11:00
Kevin Ring a286796a58 Fix DebugTileStateDatabase, add doc. 2025-03-15 23:13:33 +11:00
Kevin Ring eec5a52035 Remove commented-out code, add doc. 2025-03-15 22:31:47 +11:00
Kevin Ring 2e0588186c Improve TreeTraversalState, write tests. 2025-03-14 19:16:05 +11:00
Kevin Ring 0ce7e6d3e6 WIP optimized selection state tracking. 2025-03-12 22:29:46 +11:00
Kevin Ring 8010ede58f Reactivate TilesetSelectionAlgorithm tests. 2025-03-11 22:18:04 +11:00
Kevin Ring a213d8a3d4 Re-renable TilesetContentManager tests. 2025-03-11 22:07:33 +11:00
Kevin Ring e782ba4448 Fix incorrect comment. 2025-03-11 21:48:32 +11:00
Kevin Ring 54a63e4871 Move ViewUpdateResult to TilesetViewGroup. 2025-03-11 21:43:45 +11:00
Kevin Ring 87b9ac2465 More clang-tidy. 2025-03-11 19:08:48 +11:00
Kevin Ring c5d9fe9b08 Clang-tidy. 2025-03-11 18:49:57 +11:00
Kevin Ring 8df7f2af4d Improve names, add doc. 2025-03-11 18:31:16 +11:00
Kevin Ring daed0a11d2 Make Tileset not a friend of TilesetViewGroup. 2025-03-11 16:52:26 +11:00
Kevin Ring 27c384b1ce Doc. 2025-03-11 15:06:48 +11:00
Kevin Ring 600dc3e83d Tile cleanup. 2025-03-11 15:04:12 +11:00
Kevin Ring 35a924fe0e DebugTileStateDatabse logs previous selection state.
The current will usually be cleared at this time.
2025-03-11 13:18:45 +11:00
Kevin Ring d7f36bdcb4 Fix DebugTileStateDatabase. 2025-03-11 13:09:59 +11:00
Kevin Ring e4e563a58e More clang-tidy. 2025-03-11 11:28:41 +11:00
Kevin Ring 1c15340162 clang-tidy warnings. 2025-03-10 23:00:46 +11:00
Kevin Ring 06914b4a09 More missing doc. 2025-03-10 22:50:14 +11:00
Kevin Ring 556d803b6e Documentation. 2025-03-10 21:59:00 +11:00
Kevin Ring 9f170ee8bb Remove invalid use of `static`. 2025-03-10 21:25:20 +11:00
Kevin Ring 74d17e537f Formatting. 2025-03-10 21:23:34 +11:00
Kevin Ring 9b1efc6d0f Clean up LoadedTileEnumerator. 2025-03-10 21:12:05 +11:00
Kevin Ring a64daeaf03 Process height queries in loadTiles instead of updateView. 2025-03-10 17:21:53 +11:00
Kevin Ring cb5b39d139 Remove createViewGroup method. 2025-03-10 16:36:22 +11:00
Kevin Ring 5c3fe540b0 Less magic for registration of TileLoadRequesters.
So it can be done outside of cesium-native itself.
2025-03-10 16:10:48 +11:00
Kevin Ring f31eddd122 Rename ITileLoadRequester to TileLoadRequester. 2025-03-10 15:32:07 +11:00
Kevin Ring 88f23da70d Rename ITileLoadRequester.h to TileLoadRequester.h. 2025-03-10 15:30:22 +11:00
Kevin Ring a5e5bee6a8 Doc, make needs*Loading methods accessible. 2025-03-10 14:07:12 +11:00
Kevin Ring be14e13d72 Fix clang warning. 2025-03-10 13:23:19 +11:00
Ashley Rogers 52cf228646 Add missing include 2025-03-07 10:09:31 -05:00
Kevin Ring c5b5841cec Fix height queries. 2025-03-07 22:18:33 +11:00
Kevin Ring a2dc5fd36e Weighted round robin for main thread loading, too. 2025-03-07 14:46:11 +11:00
Kevin Ring db5602cf6a Settable weights. 2025-03-07 13:36:12 +11:00
Kevin Ring 49783e0e10 Weighted round robin worker thread tile loading. 2025-03-07 13:25:23 +11:00
Ashley Rogers 1c87344f7f Add includes 2025-03-06 17:05:50 -05:00
Ashley Rogers 0ffa232857 Merge branch 'imodel-mesh-export-loader' of github.com:CesiumGS/cesium-native into itwin-reality-data-loader 2025-03-06 17:00:21 -05:00
Ashley Rogers c393756f47 Fix CI issues 2025-03-06 16:58:29 -05:00
Ashley Rogers 9dae8c83de Loader and factory 2025-03-06 11:28:13 -05:00
Kevin Ring 865d8af2c7 Register in remaining TilesetViewGroup constructor. 2025-03-06 22:24:20 +11:00
Kevin Ring 076fcbcc9e Add ITileLoadRequester, register with TilesetContentManager. 2025-03-06 22:23:27 +11:00
Kevin Ring a81e7f3c45 Move load queues into TilesetViewGroup. 2025-03-06 18:50:12 +11:00
Ashley Rogers 6da60a75f5 Add Reality Data loader 2025-03-05 17:03:03 -05:00
Ashley Rogers ee9aa028a1 Fix JSON parsing 2025-03-05 15:45:28 -05:00
Ashley Rogers 7923f6509a Add mesh export service loader 2025-03-05 15:21:44 -05:00
Ashley Rogers 7aaf9e6ae5 clang-tidy fixes 2025-03-05 11:30:46 -05:00
Ashley Rogers 036ce1f5f1 Additional documentation 2025-03-05 11:11:03 -05:00
Ashley Rogers 70f4467f42 Documentation 2025-03-05 11:00:59 -05:00
Ashley Rogers ad371ca843 Working CCC loader 2025-03-05 10:41:55 -05:00
Ashley Rogers bfbfebdb7e ITwinCesiumCuratedContentLoader + Tileset constructor refactor 2025-03-04 17:17:41 -05:00
Ashley Rogers 8cbad73664 Reapply "iTwin Cesium Curated Content tileset loader"
This reverts commit cdcd093d79.
2025-03-04 14:43:19 -05:00