Go to the documentation of this file.
12 class ManagedIceObject;
43 add(std::initializer_list<Layer> layers)
45 data_.updates.reserve(
data_.updates.size() + layers.size());
46 for (
Layer const& layer : layers)
48 data_.updates.push_back(layer.data_);
59 data_.interactionComponent = layer.
data_.component;
60 data_.interactionLayers.push_back(layer.
data_.name);
69 data_.updates.clear();
70 data_.interactionComponent.clear();
71 data_.interactionLayers.clear();
82 return data_.revision;
123 std::string
const& topicNameProperty =
"ArVizTopicName",
124 std::string
const& storageNameProperty =
"ArVizStorageName");
127 std::string
const& topicName =
"ArVizTopic",
128 std::string
const& storageName =
"ArVizStorage");
136 armarx::viz::StorageAndTopicInterfacePrx
const& storage);
139 std::string
const& topicName =
"ArVizTopic",
140 std::string
const& storageName =
"ArVizStorage");
157 std::vector<Layer> layers;
158 layers.push_back(
layer);
162 void commit(std::vector<Layer>
const& layers);
167 std::vector<viz::Layer> layers;
168 layers.push_back(this->
layer(name));
172 template <
typename ElementT>
176 std::vector<viz::Layer> layers;
178 newLayer.
add(element);
185 std::vector<viz::Layer> layers;
192 std::string componentName;
193 armarx::viz::StorageInterfacePrx storage;
CommitResult commit(StagedCommit const &commit)
void add(Layer const &layer)
Stage a layer to be committed later via client.apply(*this)
static Client createFromProxies(std::string const &componentName, armarx::viz::Topic::ProxyType const &topic, armarx::viz::StorageAndTopicInterfacePrx const &storage)
CommitResultAsync commitAsync(StagedCommit const &commit)
static Client createFromTopic(std::string const &componentName, armarx::viz::Topic::ProxyType const &topic)
void commitDeleteLayer(std::string const &name)
void add(ElementT const &element)
A staged commit prepares multiple layers to be committed.
CommitResult waitAndGet() const
void commitLayerContaining(std::string const &name, ElementT const &element)
void reset()
Reset all staged layers and interaction requests.
static Client createForGuiPlugin(armarx::Component &component, std::string const &topicName="ArVizTopic", std::string const &storageName="ArVizStorage")
::IceInternal::ProxyHandle<::IceProxy::IceStorm::Topic > TopicPrx
InteractionFeedbackRange interactions() const
void requestInteraction(Layer const &layer)
Request interaction feedback for a particular layer.
armarx::viz::StorageInterfacePrx storage
void commit(Layer const &layer)
Baseclass for all ArmarX ManagedIceObjects requiring properties.
The ManagedIceObject is the base class for all ArmarX objects.
void add(std::initializer_list< Layer > layers)
viz::data::CommitInput data_
Layer layer(std::string const &name) const
This file is part of ArmarX.
This file offers overloads of toIce() and fromIce() functions for STL container types.
void commitLayerContaining(std::string const &name)
Ice::AsyncResultPtr async