9 #ifndef SCENEVIEWER_CORBASERVER_CLIENTCPP_HH 10 #define SCENEVIEWER_CORBASERVER_CLIENTCPP_HH 13 #include <omniORB4/CORBA.h> 14 #include <gepetto/viewer/corba/graphical-interface.hh> 25 Client (
int argc,
char* argv[]);
29 void connect (
const std::string& iiop =
"corbaloc:iiop:");
31 gepetto::corbaserver::GraphicalInterface_var&
gui () {
36 bool createFromDirectLink(
const std::string& iiop);
37 bool createFromNameService(
const std::string& iiop);
39 corbaserver::GraphicalInterface_var gui_;
48 void connect (
const char* windowName = NULL,
bool dontRaise =
false,
49 const char* url = NULL,
const char* host =
"localhost",
50 const int port = 12321);
53 corbaserver::GraphicalInterface_var&
gui ();
58 return !CORBA::is_nil(
gui());
67 inline corbaserver::GraphicalInterface_var&
gui (
const char* windowName,
68 bool dontRaise =
false,
const char* url = NULL,
69 const char* host =
"localhost",
const int port = 12321)
71 connect (windowName, dontRaise, url, host, port);
75 #if __cplusplus >= 201103L 77 white { 1.0f, 1.0f, 1.0f, 1.0f },
78 lightWhite { 0.9f, 0.9f, 0.9f, 1.0f },
79 green { 0.0f, 1.0f, 0.0f, 1.0f },
80 lightGreen { 0.0f, 0.9f, 0.0f, 1.0f },
81 yellow { 1.0f, 1.0f, 0.0f, 1.0f },
82 lightYellow { 0.9f, 0.9f, 0.0f, 1.0f },
83 blue { 0.0f, 0.0f, 1.0f, 1.0f },
84 lightBlue { 0.0f, 0.0f, 0.9f, 1.0f },
85 grey { 0.7f, 0.7f, 0.7f, 1.0f },
86 lightGrey { 0.7f, 0.7f, 0.7f, 0.7f },
87 red { 1.0f, 0.0f, 0.0f, 1.0f },
88 lightRed { 0.9f, 0.0f, 0.0f, 1.0f },
89 black { 0.0f, 0.0f, 0.0f, 1.0f },
90 lightBlack { 0.1f, 0.1f, 0.1f, 1.0f },
91 brown {0.85f, 0.75f, 0.15f, 1.0f },
92 lightBrown {0.75f, 0.65f, 0.10f, 1.0f };
99 #endif // SCENEVIEWER_CORBASERVER_CLIENTCPP_HH
Helper class.
Definition: __init__.py:8
Client(int argc, char *argv[])
void connect(const std::string &iiop="corbaloc:iiop:")
CORBA::ULong WindowID
Definition: client.hh:23
bool connected()
Tells whether the connection to the gui is ok.
Definition: client.hh:56
gepetto::corbaserver::GraphicalInterface_var & gui()
Definition: client.hh:31