|
cesium-native 0.52.0
|
A description of the selection state of a Tile during the Tileset::updateViewGroup process.
More...
#include <Cesium3DTilesSelection/TileSelectionState.h>
Public Types | |
| enum class | Result { None = 0 , Culled = 1 , Rendered = 2 , Refined = 3 , RenderedAndKicked = 4 , RefinedAndKicked = 5 } |
Enumeration of possible results of a TileSelectionState. More... | |
Public Member Functions | |
| constexpr | TileSelectionState () noexcept |
Initializes a new instance with TileSelectionState::Result::None. | |
| constexpr | TileSelectionState (Result result) noexcept |
Initializes a new instance with a given TileSelectionState::Result. | |
| constexpr Result | getResult () const noexcept |
| Gets the result of selection. | |
| constexpr bool | wasKicked () const noexcept |
| Determines if this tile or its descendents were kicked from the render list. | |
| constexpr Result | getOriginalResult () const noexcept |
| Gets the original selection result prior to being kicked. | |
| constexpr void | kick () noexcept |
| Marks this tile as "kicked". | |
A description of the selection state of a Tile during the Tileset::updateViewGroup process.
Instances of this class are stored in a TilesetViewGroup for each visited Tile, and are used to track the state of the tile during the process of selecting tiles for rendering. The Tileset updates this state while traversing the tile hierarchy, tracking whether a tile was rendered, culled, or refined in the last frame.
Definition at line 19 of file TileSelectionState.h.
|
strong |
Enumeration of possible results of a TileSelectionState.
Definition at line 24 of file TileSelectionState.h.
|
inlineconstexprnoexcept |
Initializes a new instance with TileSelectionState::Result::None.
Definition at line 71 of file TileSelectionState.h.
|
inlineconstexprnoexcept |
Initializes a new instance with a given TileSelectionState::Result.
| result | The result of the selection. |
Definition at line 79 of file TileSelectionState.h.
|
inlineconstexprnoexcept |
Gets the original selection result prior to being kicked.
If the tile wasn't kicked, the original value is returned.
TileSelectionState::Result prior to being kicked. Definition at line 111 of file TileSelectionState.h.
|
inlineconstexprnoexcept |
Gets the result of selection.
TileSelectionState::Result Definition at line 86 of file TileSelectionState.h.
|
inlineconstexprnoexcept |
Marks this tile as "kicked".
Definition at line 127 of file TileSelectionState.h.
|
inlineconstexprnoexcept |
Determines if this tile or its descendents were kicked from the render list.
In other words, if its last selection result was TileSelectionState::Result::RenderedAndKicked or TileSelectionState::Result::RefinedAndKicked.
true if the tile was kicked, and false otherwise Definition at line 98 of file TileSelectionState.h.