Go to the documentation of this file.
13 class ManagedIceObject;
42 void add(std::initializer_list<Layer> layers)
44 data_.updates.reserve(
data_.updates.size() + layers.size());
45 for (
Layer const& layer : layers)
47 data_.updates.push_back(layer.data_);
57 data_.interactionComponent = layer.
data_.component;
58 data_.interactionLayers.push_back(layer.
data_.name);
66 data_.updates.clear();
67 data_.interactionComponent.clear();
68 data_.interactionLayers.clear();
78 return data_.revision;
115 std::string
const& topicNameProperty =
"ArVizTopicName",
116 std::string
const& storageNameProperty =
"ArVizStorageName");
119 std::string
const& topicName =
"ArVizTopic",
120 std::string
const& storageName =
"ArVizStorage");
127 armarx::viz::StorageAndTopicInterfacePrx
const& storage);
130 std::string
const& topicName =
"ArVizTopic",
131 std::string
const& storageName =
"ArVizStorage");
146 std::vector<Layer> layers;
147 layers.push_back(
layer);
151 void commit(std::vector<Layer>
const& layers);
155 std::vector<viz::Layer> layers;
156 layers.push_back(this->
layer(name));
160 template <
typename ElementT>
163 std::vector<viz::Layer> layers;
165 newLayer.
add(element);
171 std::vector<viz::Layer> layers;
178 std::string componentName;
179 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")
InteractionFeedbackRange interactions() const
void requestInteraction(Layer const &layer)
Request interaction feedback for a particular layer.
armarx::viz::StorageInterfacePrx storage
::IceInternal::ProxyHandle< ::IceProxy::IceStorm::Topic > TopicPrx
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