3#include <Cesium3DTiles/Library.h>
4#include <Cesium3DTiles/TilesetSpec.h>
6#include <glm/mat4x4.hpp>
22 const glm::dmat4& transform);
32 void forEachTile(std::function<ForEachTileCallback>&& callback);
40 const glm::dmat4& transform);
43 void forEachTile(std::function<ForEachTileConstCallback>&& callback)
const;
52 const glm::dmat4& transform);
71 const glm::dmat4& transform);
Classes for using 3D Tiles.
Metadata about the tile's content and a link to the content.
A tile in a 3D Tiles tileset.
This class is not meant to be instantiated directly. Use Tileset instead.
void addExtensionRequired(const std::string &extensionName)
Adds an extension to the TilesetSpec::extensionsRequired property, if it is not already present.
void removeExtensionUsed(const std::string &extensionName)
Removes an extension from the TilesetSpec::extensionsUsed property.
void forEachTile(std::function< ForEachTileCallback > &&callback)
Apply the given callback to all tiles.
void removeExtensionRequired(const std::string &extensionName)
Removes an extension from the TilesetSpec::extensionsRequired property.
void ForEachContentConstCallback(const Tileset &tileset, const Tile &tile, const Content &content, const glm::dmat4 &transform)
A callback function for forEachContent.
void ForEachContentCallback(Tileset &tileset, Tile &tile, Content &content, const glm::dmat4 &transform)
A callback function for forEachContent.
void addExtensionUsed(const std::string &extensionName)
Adds an extension to the TilesetSpec::extensionsUsed property, if it is not already present.
bool isExtensionUsed(const std::string &extensionName) const noexcept
Determines whether a given extension name is listed in the tileset's TilesetSpec::extensionsUsed prop...
void ForEachTileCallback(Tileset &tileset, Tile &tile, const glm::dmat4 &transform)
A callback function for forEachTile.
void forEachContent(std::function< ForEachContentCallback > &&callback)
Apply the given callback to all contents.
void forEachTile(std::function< ForEachTileConstCallback > &&callback) const
Apply the given callback to all tiles.
void forEachContent(std::function< ForEachContentConstCallback > &&callback) const
Apply the given callback to all contents.
bool isExtensionRequired(const std::string &extensionName) const noexcept
Determines whether a given extension name is listed in the tileset's TilesetSpec::extensionsRequired ...
void ForEachTileConstCallback(const Tileset &tileset, const Tile &tile, const glm::dmat4 &transform)
A callback function for forEachTile.