cesium-native 0.43.0
|
A description of the state of a Tile
during the rendering 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 (int32_t frameNumber, Result result) noexcept |
Initializes a new instance with a given TileSelectionState::Result . | |
constexpr int32_t | getFrameNumber () const noexcept |
Gets the frame number in which selection took place. | |
constexpr Result | getResult (int32_t frameNumber) const noexcept |
Gets the result of selection. | |
constexpr bool | wasKicked (int32_t frameNumber) const noexcept |
Determines if this tile or its descendents were kicked from the render list. | |
constexpr Result | getOriginalResult (int32_t frameNumber) const noexcept |
Gets the original selection result prior to being kicked. | |
constexpr void | kick () noexcept |
Marks this tile as "kicked". | |
A description of the state of a Tile
during the rendering process.
Instances of this class combine a frame number and a TileSelectionState::Result
that describes the actual state of the tile. Instances of this class are stored in a Tile
, and are used to track the state of the tile during the rendering process. 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 21 of file TileSelectionState.h.
|
strong |
Enumeration of possible results of a TileSelectionState
.
Definition at line 26 of file TileSelectionState.h.
|
inlineconstexprnoexcept |
Initializes a new instance with TileSelectionState::Result::None
.
Definition at line 72 of file TileSelectionState.h.
|
inlineconstexprnoexcept |
Initializes a new instance with a given TileSelectionState::Result
.
frameNumber | The frame number in which the selection took place. |
result | The result of the selection. |
Definition at line 82 of file TileSelectionState.h.
|
inlineconstexprnoexcept |
Gets the frame number in which selection took place.
Definition at line 88 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.
frameNumber | The previous frame number. |
TileSelectionState::Result
prior to being kicked. Definition at line 134 of file TileSelectionState.h.
|
inlineconstexprnoexcept |
Gets the result of selection.
The given frame number must match the frame number in which selection last took place. Otherwise, TileSelectionState::Result::None
is returned.
frameNumber | The previous frame number. |
TileSelectionState::Result
Definition at line 102 of file TileSelectionState.h.
|
inlineconstexprnoexcept |
Marks this tile as "kicked".
Definition at line 150 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
.
frameNumber | The previous frame number. |
true
if the tile was kicked, and false
otherwise Definition at line 120 of file TileSelectionState.h.