api.hh
Go to the documentation of this file.
1 #ifndef GEPETTO_VIEWER_CORBA_API_HH
2 #define GEPETTO_VIEWER_CORBA_API_HH
3 
5 
6 namespace gepetto {
7 namespace viewer {
8 namespace corba {
9 
10 #if __cplusplus >= 201103L
11 inline void applyConfiguration(const char* name, corbaserver::Transform&& t)
12 {
13  if (!connected()) return;
14  gui()->applyConfiguration(name, t);
15 }
16 #endif // __cplusplus > 201103L
17 
18 inline void refresh()
19 {
20  if (!connected()) return;
21  gui()->refresh();
22 }
23 
24 } //end of namespace corba
25 } //end of namespace viewer
26 } //end of namespace gepetto
27 
28 #endif // GEPETTO_VIEWER_CORBA_API_HH
corbaserver::GraphicalInterface_var & gui()
Get a client to the GUI.
void refresh()
Definition: api.hh:18
float Transform[7]
Definition: graphical-interface.idl:20
bool connected()
Tells whether the connection to the gui is ok.
Definition: client.hh:56