ArvizSkillMixin.h
Go to the documentation of this file.
1 #pragma once
2 
3 
4 // Others
6 
8 {
10  {
12  std::string layerName;
13 
14  ArvizSkillMixin(const armarx::viz::Client& a, const std::string& ln) :
15  arviz(a),
16  layerName(ln)
17  {
18  }
19 
20  void clearLayer()
21  {
22  auto l = arviz.layer(layerName);
23  arviz.commit(l);
24  }
25  };
26 }
ArVizComponentPlugin.h
armarx::viz::Client::commit
CommitResult commit(StagedCommit const &commit)
Definition: Client.cpp:80
armarx::skills::mixin
Definition: ArvizSkillMixin.h:7
armarx::skills::mixin::ArvizSkillMixin::arviz
armarx::viz::Client arviz
Definition: ArvizSkillMixin.h:11
armarx::skills::mixin::ArvizSkillMixin
Definition: ArvizSkillMixin.h:9
armarx::ctrlutil::a
double a(double t, double a0, double j)
Definition: CtrlUtil.h:45
armarx::skills::mixin::ArvizSkillMixin::layerName
std::string layerName
Definition: ArvizSkillMixin.h:12
armarx::skills::mixin::ArvizSkillMixin::ArvizSkillMixin
ArvizSkillMixin(const armarx::viz::Client &a, const std::string &ln)
Definition: ArvizSkillMixin.h:14
armarx::skills::mixin::ArvizSkillMixin::clearLayer
void clearLayer()
Definition: ArvizSkillMixin.h:20
armarx::viz::Client::layer
Layer layer(std::string const &name) const
Definition: Client.cpp:73
armarx::viz::Client
Definition: Client.h:109