3 #include "Availability.h"
5 #include "OctreeTileID.h"
6 #include "TileAvailabilityFlags.h"
142 return this->_subtreeLevels;
149 return this->_maximumLevel;
158 uint32_t _subtreeLevels;
159 uint32_t _maximumLevel;
160 uint32_t _maximumChildrenSubtrees;
161 std::unique_ptr<AvailabilityNode> _pRoot;
OctreeAvailability(uint32_t subtreeLevels, uint32_t maximumLevel) noexcept
Constructs a new instance.
bool addLoadedSubtree(AvailabilityNode *pNode, AvailabilitySubtree &&newSubtree) noexcept
Attempts to add a loaded subtree onto the given node.
constexpr uint32_t getSubtreeLevels() const noexcept
Gets the number of levels in each subtree.
AvailabilityNode * getRootNode() noexcept
Gets a pointer to the root subtree node of this implicit tileset.
AvailabilityNode * addNode(const OctreeTileID &tileID, AvailabilityNode *pParentNode) noexcept
Attempts to add a child subtree node onto the given parent node.
constexpr uint32_t getMaximumLevel() const noexcept
Gets the index of the maximum level in this implicit tileset.
uint8_t computeAvailability(const OctreeTileID &tileID, const AvailabilityNode *pNode) const noexcept
Determines the currently known availability status of the given tile.
AvailabilityNode * findChildNode(const OctreeTileID &tileID, AvailabilityNode *pParentNode) const
Find the child node corresponding to this tile ID and parent node.
std::optional< uint32_t > findChildNodeIndex(const OctreeTileID &tileID, const AvailabilityNode *pParentNode) const
Find the child node index corresponding to this tile ID and parent node.
uint8_t computeAvailability(const OctreeTileID &tileID) const noexcept
Determines the currently known availability status of the given tile.
bool addSubtree(const OctreeTileID &tileID, AvailabilitySubtree &&newSubtree) noexcept
Attempts to add an availability subtree into the existing overall availability tree.
Basic geometry classes for Cesium.
Availability nodes wrap subtree objects and link them together to form a downwardly traversable avail...
A structure serving as a unique identifier for a node in an octree.