Skip to content
Snippets Groups Projects
Commit 08d80d0c authored by Fabian Paus's avatar Fabian Paus
Browse files

ArViz: Next try to fix compile error

parent f2b04d2b
No related branches found
No related tags found
No related merge requests found
......@@ -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);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment