|
|
A staged commit prepares multiple layers to be committed. More...
#include <RobotAPI/components/ArViz/Client/Client.h>
Public Member Functions | |
| void | add (Layer const &layer) |
| Stage a layer to be committed later via client.apply(*this) | |
| void | add (std::initializer_list< Layer > layers) |
| void | requestInteraction (Layer const &layer) |
| Request interaction feedback for a particular layer. | |
| void | reset () |
| Reset all staged layers and interaction requests. | |
Public Attributes | |
| viz::data::CommitInput | data_ |
A staged commit prepares multiple layers to be committed.
Add all relevant layer updates via .add(layer). Add layers for which you want interaction feedback via .requestInteraction(layer). Then, commit via client.apply(stagedCommit).
A staged commit can be reused for subsequent commits. Remember to call .reset() to clear the internal data structures.
As long as you keep the staged commits separate, this method is thread-safe. So you can have two threads calling .commit(A) and .commit(B) simultaneously without any locking mechanism.
|
inline |
Stage a layer to be committed later via client.apply(*this)
| layer | The layer to be added to this staged commit. |
|
inline |
|
inline |
Request interaction feedback for a particular layer.
| layer | The layer you want to get interaction feedback for. |
|
inline |
Reset all staged layers and interaction requests.
| viz::data::CommitInput data_ |