9 #ifndef SCENEVIEWER_CORBASERVER_CLIENTCPP_HH
10 #define SCENEVIEWER_CORBASERVER_CLIENTCPP_HH
12 #include <omniORB4/CORBA.h>
14 #include <gepetto/viewer/corba/graphical-interface.hh>
28 void connect(
const std::string& iiop =
"corbaloc:iiop:");
30 gepetto::corbaserver::GraphicalInterface_var&
gui() {
return gui_; }
33 bool createFromDirectLink(
const std::string& iiop);
34 bool createFromNameService(
const std::string& iiop);
36 corbaserver::GraphicalInterface_var gui_;
46 void connect(
const char* windowName = NULL,
bool dontRaise =
false,
47 const char* url = NULL,
const char* host =
"localhost",
48 const int port = 12321);
51 corbaserver::GraphicalInterface_var&
gui();
62 inline corbaserver::GraphicalInterface_var&
gui(
const char* windowName,
63 bool dontRaise =
false,
64 const char* url = NULL,
65 const char* host =
"localhost",
66 const int port = 12321) {
67 connect(windowName, dontRaise, url, host, port);
71 #if __cplusplus >= 201103L
73 lightWhite{0.9f, 0.9f, 0.9f, 1.0f}, green{0.0f, 1.0f, 0.0f, 1.0f},
74 lightGreen{0.0f, 0.9f, 0.0f, 1.0f}, yellow{1.0f, 1.0f, 0.0f, 1.0f},
75 lightYellow{0.9f, 0.9f, 0.0f, 1.0f}, blue{0.0f, 0.0f, 1.0f, 1.0f},
76 lightBlue{0.0f, 0.0f, 0.9f, 1.0f}, grey{0.7f, 0.7f, 0.7f, 1.0f},
77 lightGrey{0.7f, 0.7f, 0.7f, 0.7f}, red{1.0f, 0.0f, 0.0f, 1.0f},
78 lightRed{0.9f, 0.0f, 0.0f, 1.0f}, black{0.0f, 0.0f, 0.0f, 1.0f},
79 lightBlack{0.1f, 0.1f, 0.1f, 1.0f}, brown{0.85f, 0.75f, 0.15f, 1.0f},
80 lightBrown{0.75f, 0.65f, 0.10f, 1.0f};
Definition: __init__.py:17
CORBA::ULong WindowID
Definition: client.hh:22
gepetto::corbaserver::GraphicalInterface_var & gui()
Definition: client.hh:30
Client(int argc, char *argv[])
void connect(const std::string &iiop="corbaloc:iiop:")
bool connected()
Tells whether the connection to the gui is ok.
Definition: client.hh:54
corbaserver::GraphicalInterface_var & gui()
Get a client to the GUI.
void connect(const char *windowName=NULL, bool dontRaise=false, const char *url=NULL, const char *host="localhost", const int port=12321)