|
| Tileset (const TilesetExternals &externals, std::unique_ptr< TilesetContentLoader > &&pCustomLoader, std::unique_ptr< Tile > &&pRootTile, const TilesetOptions &options=TilesetOptions()) |
| Constructs a new instance with a given custom tileset loader. More...
|
|
| Tileset (const TilesetExternals &externals, const std::string &url, const TilesetOptions &options=TilesetOptions()) |
| Constructs a new instance with a given tileset.json URL. More...
|
|
| Tileset (const TilesetExternals &externals, int64_t ionAssetID, const std::string &ionAccessToken, const TilesetOptions &options=TilesetOptions(), const std::string &ionAssetEndpointUrl="https://api.cesium.com/") |
| Constructs a new instance with the given asset ID on Cesium ion. More...
|
|
| ~Tileset () noexcept |
| Destroys this tileset. More...
|
|
CesiumAsync::SharedFuture< void > & | getAsyncDestructionCompleteEvent () |
| A future that resolves when this Tileset has been destroyed (i.e. its destructor has been called) and all async operations that it was executing have completed.
|
|
CesiumAsync::SharedFuture< void > & | getRootTileAvailableEvent () |
| A future that resolves when the details of the root tile of this tileset are available. The root tile's content (e.g., 3D model), however, will not necessarily be loaded yet.
|
|
const std::vector< CesiumUtility::Credit > & | getTilesetCredits () const noexcept |
| Get tileset credits.
|
|
void | setShowCreditsOnScreen (bool showCreditsOnScreen) noexcept |
| Sets whether or not the tileset's credits should be shown on screen. More...
|
|
TilesetExternals & | getExternals () noexcept |
| Gets the TilesetExternals that summarize the external interfaces used by this tileset.
|
|
const TilesetExternals & | getExternals () const noexcept |
| Gets the TilesetExternals that summarize the external interfaces used by this tileset.
|
|
CesiumAsync::AsyncSystem & | getAsyncSystem () noexcept |
| Returns the CesiumAsync::AsyncSystem that is used for dispatching asynchronous tasks.
|
|
const CesiumAsync::AsyncSystem & | getAsyncSystem () const noexcept |
| Returns the CesiumAsync::AsyncSystem that is used for dispatching asynchronous tasks. More...
|
|
const TilesetOptions & | getOptions () const noexcept |
| Gets the TilesetOptions of this tileset. More...
|
|
TilesetOptions & | getOptions () noexcept |
| Gets the TilesetOptions of this tileset.
|
|
const CesiumGeospatial::Ellipsoid & | getEllipsoid () const |
| Gets the CesiumGeospatial::Ellipsoid used by this tileset.
|
|
CesiumGeospatial::Ellipsoid & | getEllipsoid () noexcept |
| Gets the CesiumGeospatial::Ellipsoid used by this tileset. More...
|
|
Tile * | getRootTile () noexcept |
| Gets the root tile of this tileset. More...
|
|
const Tile * | getRootTile () const noexcept |
| Gets the root tile of this tileset. More...
|
|
RasterOverlayCollection & | getOverlays () noexcept |
| Returns the RasterOverlayCollection of this tileset.
|
|
const RasterOverlayCollection & | getOverlays () const noexcept |
| Returns the RasterOverlayCollection of this tileset. More...
|
|
TilesetSharedAssetSystem & | getSharedAssetSystem () noexcept |
| Returns the TilesetSharedAssetSystem of this tileset.
|
|
const TilesetSharedAssetSystem & | getSharedAssetSystem () const noexcept |
| Returns the TilesetSharedAssetSystem of this tileset. More...
|
|
const ViewUpdateResult & | updateViewOffline (const std::vector< ViewState > &frustums) |
| Updates this view but waits for all tiles that meet sse to finish loading and ready to be rendered before returning the function. This method is significantly slower than Tileset::updateView and should only be used for capturing movie or non-realtime situation. More...
|
|
const ViewUpdateResult & | updateView (const std::vector< ViewState > &frustums, float deltaTime=0.0f) |
| Updates this view, returning the set of tiles to render in this view. More...
|
|
int32_t | getNumberOfTilesLoaded () const |
| Gets the total number of tiles that are currently loaded.
|
|
float | computeLoadProgress () noexcept |
| Estimate the percentage of the tiles for the current view that have been loaded.
|
|
void | forEachLoadedTile (const std::function< void(Tile &tile)> &callback) |
| Invokes a function for each tile that is currently loaded. More...
|
|
int64_t | getTotalDataBytes () const noexcept |
| Gets the total number of bytes of tile and raster overlay data that are currently loaded.
|
|
const TilesetMetadata * | getMetadata (const Tile *pTile=nullptr) const |
| Gets the TilesetMetadata associated with the main or external tileset.json that contains a given tile. If the metadata is not yet loaded, this method returns nullptr. More...
|
|
CesiumAsync::Future< const TilesetMetadata * > | loadMetadata () |
| Asynchronously loads the metadata associated with the main tileset.json. More...
|
|
CesiumAsync::Future< SampleHeightResult > | sampleHeightMostDetailed (const std::vector< CesiumGeospatial::Cartographic > &positions) |
| Initiates an asynchronous query for the height of this tileset at a list of cartographic positions (longitude and latitude). The most detailed available tiles are used to determine each height. More...
|
|
A 3D Tiles tileset, used for streaming massive heterogeneous 3D geospatial datasets.
Definition at line 39 of file Tileset.h.
const TilesetMetadata* Cesium3DTilesSelection::Tileset::getMetadata |
( |
const Tile * |
pTile = nullptr | ) |
const |
Gets the TilesetMetadata associated with the main or external tileset.json that contains a given tile. If the metadata is not yet loaded, this method returns nullptr.
If this tileset's root tile is not yet available, this method returns nullptr.
If the tileset has a TilesetMetadata::schemaUri, it will not necessarily have been loaded yet.
If the provided tile is not the root tile of a tileset.json, this method walks up the Tile::getParent chain until it finds the closest root and then returns the metadata associated with the corresponding tileset.json.
Consider calling loadMetadata instead, which will return a future that only resolves after the root tile is loaded and the schemaUri
, if any, has been resolved.
- Parameters
-
pTile | The tile. If this parameter is nullptr, the metadata for the main tileset.json is returned. |
- Returns
- The found metadata, or nullptr if the root tile is not yet loaded.