diff --git a/source/RobotAPI/components/ArViz/Client/Client.h b/source/RobotAPI/components/ArViz/Client/Client.h index 9ba175fda6fdfbcd6f786484f8fc9c9aa3d801ae..a2de4e49a6f00e84ee61716e8aba49ea78ba8a7f 100644 --- a/source/RobotAPI/components/ArViz/Client/Client.h +++ b/source/RobotAPI/components/ArViz/Client/Client.h @@ -61,6 +61,11 @@ namespace viz viz::data::CommitInput data_; }; + struct InteractionFeedback + { + + }; + struct Client { Client() = default; @@ -103,14 +108,19 @@ namespace viz } template <typename ElementT> - void commitLayerContaining(std::string const& name, ElementT const& element = nullptr) + void commitLayerContaining(std::string const& name) + { + std::vector<viz::Layer> layers; + layers.push_back(this->layer(name)); + commit(layers); + } + + template <typename ElementT> + void commitLayerContaining(std::string const& name, ElementT const& element) { std::vector<viz::Layer> layers; viz::Layer& newLayer = layers.emplace_back(this->layer(name)); - if (element) - { - newLayer.add(element); - } + newLayer.add(element); commit(layers); }