-
Notifications
You must be signed in to change notification settings - Fork 271
Add VectorTilesRasterOverlay
#1365
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 31 commits
8da5554
30bbd16
5f06efd
4a94e9e
997680e
c22f0b9
7be2262
b9f956b
99da4eb
9f152d1
2d158c2
537b608
224f7a5
0e0d06a
693eecd
94a0b9e
8e70bfb
2a1446f
f7ac37d
03dad83
11c4120
1eac54c
01f8d1d
b7b59db
2a0e295
6225227
b321e08
5491182
ff0b152
b37dba3
6f71bbf
4a4c6da
23757c6
6e0816b
4f8b75d
7fd368a
97d6f37
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -205,6 +205,13 @@ class CESIUM3DTILESSELECTION_API Tileset final { | |
| */ | ||
| const Tile* getRootTile() const noexcept; | ||
|
|
||
| /** | ||
| * @brief Gets the root tile of this tileset. | ||
| * | ||
| * This may be `nullptr` if there is currently no root tile. | ||
| */ | ||
| Tile* getRootTile() noexcept; | ||
|
|
||
|
Comment on lines
+211
to
+214
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Maybe a good idea to discourage consumers of cesium-native from using this... would
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Same for |
||
| /** | ||
| * @brief Returns the {@link RasterOverlayCollection} of this tileset. | ||
| */ | ||
|
|
@@ -438,6 +445,21 @@ class CESIUM3DTILESSELECTION_API Tileset final { | |
| */ | ||
| void loadTiles(); | ||
|
|
||
| /** | ||
| * @brief Updates the content of the given tile based on its current state. | ||
| * | ||
| * This may involve steps such as updating tile properties based on content, | ||
| * creating tile children, handling tile unloading, and more. | ||
| * | ||
| * @note This is automatically called as part of the normal tile selection | ||
| * process, such as when using \ref updateViewGroup or \ref | ||
| * updateViewGroupOffline. This method should only be called manually when | ||
| * tile selection is being driven by code external to the `Tileset`. | ||
| * | ||
| * @param tile The tile to update. | ||
| */ | ||
| void updateTileContent(Tile& tile); | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Worth marking @Private?
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think it's perfectly reasonable that a cesium-native consumer might want to use loadTiles directly and would need a way to access and modify the tiles and to update the tile content. I think it's fine to leave public with the explanation that it does not normally need to be called. |
||
|
|
||
| /** | ||
| * @brief Registers a tile load requester with this Tileset. Registered tile | ||
| * load requesters get to influence which tiles are loaded when | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,65 @@ | ||
| // This file was generated by generate-classes. | ||
| // DO NOT EDIT THIS FILE! | ||
| #pragma once | ||
|
|
||
| #include <CesiumGltf/Library.h> | ||
| #include <CesiumUtility/ExtensibleObject.h> | ||
|
|
||
| #include <cstdint> | ||
|
|
||
| namespace CesiumGltf { | ||
| /** | ||
| * @brief glTF extension adding an encoding of polygon primitive topology | ||
| */ | ||
| struct CESIUMGLTF_API ExtensionExtMeshPolygon final | ||
| : public CesiumUtility::ExtensibleObject { | ||
| /** | ||
| * @brief The original name of this type. | ||
| */ | ||
| static constexpr const char* TypeName = "ExtensionExtMeshPolygon"; | ||
| /** @brief The official name of the extension. This should be the same as its | ||
| * key in the `extensions` object. */ | ||
| static constexpr const char* ExtensionName = "EXT_mesh_polygon"; | ||
|
|
||
| /** | ||
| * @brief Integer number of polygons encoded in the mesh primitive. | ||
| */ | ||
| int32_t count = -1; | ||
|
|
||
| /** | ||
| * @brief Index of an accessor containing indices of the polygons' exterior | ||
| * and interior loops. The accessor MUST have SCALAR type and an unsigned | ||
| * integer component type. | ||
| */ | ||
| int32_t loopIndices = -1; | ||
|
|
||
| /** | ||
| * @brief Index of an accessor containing one integer offset per polygon in | ||
| * the primitive, indicating the first index of the first linear ring | ||
| * associated with that polygon. | ||
| */ | ||
| int32_t loopIndicesOffsets = -1; | ||
|
|
||
| /** | ||
| * @brief Index of an accessor containing one integer offset per polygon in | ||
| * the primitive, indicating the first index of the first triangle associated | ||
| * with that polygon. | ||
| */ | ||
| int32_t indicesOffsets = -1; | ||
|
|
||
| /** | ||
| * @brief Calculates the size in bytes of this object, including the contents | ||
| * of all collections, pointers, and strings. This will NOT include the size | ||
| * of any extensions attached to the object. Calling this method may be slow | ||
| * as it requires traversing the object's entire structure. | ||
| */ | ||
| int64_t getSizeBytes() const { | ||
| int64_t accum = 0; | ||
| accum += int64_t(sizeof(ExtensionExtMeshPolygon)); | ||
| accum += CesiumUtility::ExtensibleObject::getSizeBytes() - | ||
| int64_t(sizeof(CesiumUtility::ExtensibleObject)); | ||
|
|
||
| return accum; | ||
| } | ||
| }; | ||
| } // namespace CesiumGltf |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,76 @@ | ||
| // This file was generated by generate-classes. | ||
| // DO NOT EDIT THIS FILE! | ||
| #pragma once | ||
|
|
||
| #include <CesiumGltf/ExtensionExtMeshPolygon.h> | ||
| #include <CesiumGltfReader/Library.h> | ||
| #include <CesiumJsonReader/JsonReader.h> | ||
| #include <CesiumJsonReader/JsonReaderOptions.h> | ||
|
|
||
| #include <rapidjson/fwd.h> | ||
|
|
||
| #include <span> | ||
| #include <vector> | ||
|
|
||
| namespace CesiumGltf { | ||
| struct ExtensionExtMeshPolygon; | ||
| } // namespace CesiumGltf | ||
|
|
||
| namespace CesiumGltfReader { | ||
|
|
||
| /** | ||
| * @brief Reads \ref CesiumGltf::ExtensionExtMeshPolygon | ||
| * "ExtensionExtMeshPolygon" instances from JSON. | ||
| */ | ||
| class CESIUMGLTFREADER_API ExtensionExtMeshPolygonReader { | ||
| public: | ||
| /** | ||
| * @brief Constructs a new instance. | ||
| */ | ||
| ExtensionExtMeshPolygonReader(); | ||
|
|
||
| /** | ||
| * @brief Gets the options controlling how the JSON is read. | ||
| */ | ||
| CesiumJsonReader::JsonReaderOptions& getOptions(); | ||
|
|
||
| /** | ||
| * @brief Gets the options controlling how the JSON is read. | ||
| */ | ||
| const CesiumJsonReader::JsonReaderOptions& getOptions() const; | ||
|
|
||
| /** | ||
| * @brief Reads an instance of ExtensionExtMeshPolygon from a byte buffer. | ||
| * | ||
| * @param data The buffer from which to read the instance. | ||
| * @return The result of reading the instance. | ||
| */ | ||
| CesiumJsonReader::ReadJsonResult<CesiumGltf::ExtensionExtMeshPolygon> | ||
| readFromJson(const std::span<const std::byte>& data) const; | ||
|
|
||
| /** | ||
| * @brief Reads an instance of ExtensionExtMeshPolygon from a | ||
| * rapidJson::Value. | ||
| * | ||
| * @param value The value from which to read the instance. | ||
| * @return The result of reading the instance. | ||
| */ | ||
| CesiumJsonReader::ReadJsonResult<CesiumGltf::ExtensionExtMeshPolygon> | ||
| readFromJson(const rapidjson::Value& value) const; | ||
|
|
||
| /** | ||
| * @brief Reads an array of instances of ExtensionExtMeshPolygon from a | ||
| * rapidJson::Value. | ||
| * | ||
| * @param value The value from which to read the array of instances. | ||
| * @return The result of reading the array of instances. | ||
| */ | ||
| CesiumJsonReader::ReadJsonResult< | ||
| std::vector<CesiumGltf::ExtensionExtMeshPolygon>> | ||
| readArrayFromJson(const rapidjson::Value& value) const; | ||
|
|
||
| private: | ||
| CesiumJsonReader::JsonReaderOptions _options; | ||
| }; | ||
|
|
||
| } // namespace CesiumGltfReader |
Uh oh!
There was an error while loading. Please reload this page.