gepetto::viewer::corba Namespace Reference

Classes

class  Client
 

Functions

void refresh ()
 
void connect (const char *windowName=NULL, bool dontRaise=false, const char *url=NULL, const char *host="localhost", const int port=12321)
 
corbaserver::GraphicalInterface_var & gui ()
 Get a client to the GUI. More...
 
bool connected ()
 Tells whether the connection to the gui is ok. More...
 
corbaserver::GraphicalInterface_var & gui (const char *windowName, bool dontRaise=false, const char *url=NULL, const char *host="localhost", const int port=12321)
 

Function Documentation

◆ connect()

void gepetto::viewer::corba::connect ( const char *  windowName = NULL,
bool  dontRaise = false,
const char *  url = NULL,
const char *  host = "localhost",
const int  port = 12321 
)

Initialize the connection to the viewer.

Parameters
dontRaiseIf True, will not raise if connection failed. It returns NULL instead.
urlif NULL, url is initialized with host and port.
host,portif not NULL, url is set to = "corbaloc:iiop:host:port"

◆ connected()

bool gepetto::viewer::corba::connected ( )
inline

Tells whether the connection to the gui is ok.

◆ gui() [1/2]

corbaserver::GraphicalInterface_var& gepetto::viewer::corba::gui ( )

Get a client to the GUI.

◆ gui() [2/2]

corbaserver::GraphicalInterface_var& gepetto::viewer::corba::gui ( const char *  windowName,
bool  dontRaise = false,
const char *  url = NULL,
const char *  host = "localhost",
const int  port = 12321 
)
inline

Get a client to the GUI, connecting if necessary.

Parameters
windowNameIf not NULL, creates a window with this name if it does not exist.
dontRaiseIf True, will not raise if connection failed. It returns NULL instead.
urlif NULL, url is initialized with host and port.
host,portif not NULL, url is set to = "corbaloc:iiop:host:port"
Returns
a client to the GUI.

◆ refresh()

void gepetto::viewer::corba::refresh ( )
inline