cesium-native  0.41.0
Cesium3DTilesSelection::TileOcclusionRendererProxy Class Referenceabstract

An interface for client renderers to use to represent tile bounding volumes that should be occlusion tested. More...

#include <Cesium3DTilesSelection/TileOcclusionRendererProxy.h>

Public Member Functions

virtual TileOcclusionState getOcclusionState () const =0
 Get the occlusion state for this tile. If this is OcclusionUnavailable, the traversal may decide to wait for the occlusion result to become available in future frames. More...
 

Protected Member Functions

virtual void reset (const Tile *pTile)=0
 Reset this proxy to target a new tile. If nullptr, this proxy is back in the pool and will not be used for further occlusion until reset is called again with an actual tile. More...
 

Friends

class TileOcclusionRendererProxyPool
 

Detailed Description

An interface for client renderers to use to represent tile bounding volumes that should be occlusion tested.

Definition at line 42 of file TileOcclusionRendererProxy.h.

Member Function Documentation

◆ getOcclusionState()

virtual TileOcclusionState Cesium3DTilesSelection::TileOcclusionRendererProxy::getOcclusionState ( ) const
pure virtual

Get the occlusion state for this tile. If this is OcclusionUnavailable, the traversal may decide to wait for the occlusion result to become available in future frames.

Client implementation note: Do not return OcclusionUnavailable if the occlusion for this tile will never become available, otherwise the tile may not refine while waiting for occlusion. In such a case return NotOccluded so the traversal can assume it is known to be visible.

Returns
The occlusion state of this tile.

◆ reset()

virtual void Cesium3DTilesSelection::TileOcclusionRendererProxy::reset ( const Tile pTile)
protectedpure virtual

Reset this proxy to target a new tile. If nullptr, this proxy is back in the pool and will not be used for further occlusion until reset is called again with an actual tile.

Parameters
pTileThe tile that this proxy represents or nullptr if the proxy is back in the pool.

The documentation for this class was generated from the following file: