|
cesium-native 0.52.0
|
The result of applying a CesiumRasterOverlays::RasterOverlayTile to geometry.
More...
#include <Cesium3DTilesSelection/RasterMappedTo3DTile.h>
Public Types | |
| enum class | AttachmentState { Unattached = 0 , TemporarilyAttached = 1 , Attached = 2 } |
| The states indicating whether the raster tile is attached to the geometry. More... | |
Public Member Functions | |
| RasterMappedTo3DTile (const CesiumUtility::IntrusivePointer< CesiumRasterOverlays::RasterOverlayTile > &pRasterTile, int32_t textureCoordinateIndex) | |
| Creates a new instance. | |
| CesiumRasterOverlays::RasterOverlayTile * | getLoadingTile () noexcept |
Returns a CesiumRasterOverlays::RasterOverlayTile that is currently loading. | |
| const CesiumRasterOverlays::RasterOverlayTile * | getLoadingTile () const noexcept |
Returns a CesiumRasterOverlays::RasterOverlayTile that is currently loading. | |
| CesiumRasterOverlays::RasterOverlayTile * | getReadyTile () noexcept |
Returns the CesiumRasterOverlays::RasterOverlayTile that represents the imagery data that is ready to render. | |
| const CesiumRasterOverlays::RasterOverlayTile * | getReadyTile () const noexcept |
Returns the CesiumRasterOverlays::RasterOverlayTile that represents the imagery data that is ready to render. | |
| int32_t | getTextureCoordinateID () const noexcept |
| Returns an identifier for the texture coordinates of this tile. | |
| void | setTextureCoordinateID (int32_t textureCoordinateID) noexcept |
| Sets the texture coordinate ID. | |
| const glm::dvec2 & | getTranslation () const noexcept |
| Returns the translation that converts between the geometry texture coordinates and the texture coordinates that should be used to sample this raster texture. | |
| const glm::dvec2 & | getScale () const noexcept |
| Returns the scaling that converts between the geometry texture coordinates and the texture coordinates that should be used to sample this raster texture. | |
| AttachmentState | getState () const noexcept |
| Indicates whether this overlay tile is currently attached to its owning geometry tile. | |
| CesiumRasterOverlays::RasterOverlayTile::MoreDetailAvailable | update (IPrepareRendererResources &prepareRendererResources, Tile &tile) |
| Update this tile during the update of its owner. | |
| bool | isMoreDetailAvailable () const noexcept |
| Determines if more detailed data is available for the spatial area covered by this tile. | |
| void | detachFromTile (IPrepareRendererResources &prepareRendererResources, Tile &tile) noexcept |
| Detach the raster from the given tile. | |
| bool | loadThrottled () noexcept |
Does a throttled load of the mapped CesiumRasterOverlays::RasterOverlayTile. | |
Static Public Member Functions | |
| static RasterMappedTo3DTile * | mapOverlayToTile (double maximumScreenSpaceError, CesiumRasterOverlays::ActivatedRasterOverlay &activatedOverlay, Tile &tile, std::vector< CesiumGeospatial::Projection > &missingProjections, const CesiumGeospatial::Ellipsoid &ellipsoid=CesiumGeospatial::Ellipsoid::WGS84) |
Creates a maping between a CesiumRasterOverlays::RasterOverlay and a Tile. | |
The result of applying a CesiumRasterOverlays::RasterOverlayTile to geometry.
Instances of this class are used by a Tile in order to map imagery data that is given as CesiumRasterOverlays::RasterOverlayTile instances to the 2D region that is covered by the tile geometry.
Definition at line 26 of file RasterMappedTo3DTile.h.
|
strong |
The states indicating whether the raster tile is attached to the geometry.
Definition at line 32 of file RasterMappedTo3DTile.h.
| Cesium3DTilesSelection::RasterMappedTo3DTile::RasterMappedTo3DTile | ( | const CesiumUtility::IntrusivePointer< CesiumRasterOverlays::RasterOverlayTile > & | pRasterTile, |
| int32_t | textureCoordinateIndex ) |
Creates a new instance.
| pRasterTile | The CesiumRasterOverlays::RasterOverlayTile that is mapped to the geometry. |
| textureCoordinateIndex | The index of the texture coordinates to use with this mapped raster overlay. |
|
noexcept |
Detach the raster from the given tile.
| prepareRendererResources | The IPrepareRendererResources used to detach raster overlay from the tile geometry |
| tile | The owner tile. |
|
inlinenoexcept |
Returns a CesiumRasterOverlays::RasterOverlayTile that is currently loading.
The caller has to check the exact state of this tile, using Tile::getState.
nullptr. Definition at line 77 of file RasterMappedTo3DTile.h.
|
inlinenoexcept |
Returns a CesiumRasterOverlays::RasterOverlayTile that is currently loading.
The caller has to check the exact state of this tile, using Tile::getState.
nullptr. Definition at line 71 of file RasterMappedTo3DTile.h.
|
inlinenoexcept |
Returns the CesiumRasterOverlays::RasterOverlayTile that represents the imagery data that is ready to render.
This will be nullptr when the tile data has not yet been loaded.
nullptr. Definition at line 94 of file RasterMappedTo3DTile.h.
|
inlinenoexcept |
Returns the CesiumRasterOverlays::RasterOverlayTile that represents the imagery data that is ready to render.
This will be nullptr when the tile data has not yet been loaded.
nullptr. Definition at line 89 of file RasterMappedTo3DTile.h.
|
inlinenoexcept |
Returns the scaling that converts between the geometry texture coordinates and the texture coordinates that should be used to sample this raster texture.
Definition at line 143 of file RasterMappedTo3DTile.h.
|
inlinenoexcept |
Indicates whether this overlay tile is currently attached to its owning geometry tile.
When a raster overlay tile is attached to a geometry tile, IPrepareRendererResources::attachRasterInMainThread is invoked. When it is detached, IPrepareRendererResources::detachRasterInMainThread is invoked.
Definition at line 154 of file RasterMappedTo3DTile.h.
|
inlinenoexcept |
Returns an identifier for the texture coordinates of this tile.
The texture coordinates for this raster are found in the glTF as an attribute named _CESIUMOVERLAY_n where n is this value.
Definition at line 106 of file RasterMappedTo3DTile.h.
|
inlinenoexcept |
Returns the translation that converts between the geometry texture coordinates and the texture coordinates that should be used to sample this raster texture.
rasterCoordinates = geometryCoordinates * scale + translation
Definition at line 130 of file RasterMappedTo3DTile.h.
|
noexcept |
Determines if more detailed data is available for the spatial area covered by this tile.
|
noexcept |
Does a throttled load of the mapped CesiumRasterOverlays::RasterOverlayTile.
|
static |
Creates a maping between a CesiumRasterOverlays::RasterOverlay and a Tile.
The returned mapping will be to a placeholder CesiumRasterOverlays::RasterOverlayTile if the overlay's tile provider is not yet ready (i.e. it's still a placeholder) or if the overlap between the tile and the raster overlay cannot yet be determined because the projected rectangle of the tile is not yet known.
Returns a pointer to the created RasterMappedTo3DTile in the Tile's Tile::getMappedRasterTiles collection. Note that this pointer may become invalid as soon as another item is added to or removed from this collection.
| maximumScreenSpaceError | The maximum screen space error that is used for the current tile |
| activatedOverlay | The activated overlay to map to the tile. |
| tile | The tile to which to map the overlay. |
| missingProjections | The list of projections for which there are not yet any texture coordiantes. On return, the given overlay's Projection may be added to this collection if the Tile does not yet have texture coordinates for the Projection and the Projection is not already in the collection. |
| ellipsoid | The CesiumGeospatial::Ellipsoid. |
|
inlinenoexcept |
Sets the texture coordinate ID.
| textureCoordinateID | The ID. |
Definition at line 117 of file RasterMappedTo3DTile.h.
| CesiumRasterOverlays::RasterOverlayTile::MoreDetailAvailable Cesium3DTilesSelection::RasterMappedTo3DTile::update | ( | IPrepareRendererResources & | prepareRendererResources, |
| Tile & | tile ) |
Update this tile during the update of its owner.
This is only supposed to be called by TilesetContentManager::updateDoneState. It will return whether there is a more detailed version of the raster data available.
| prepareRendererResources | The IPrepareRendererResources used to create render resources for raster overlay |
| tile | The owner tile. |
CesiumRasterOverlays::RasterOverlayTile::MoreDetailAvailable state.