Client interface for GDHE (terrible code, to be completely rewritten)
- Author:
- Pierre Lamon
Definition at line 19 of file gdheclient.hpp.
Public Types |
typedef std::vector
< jafar::ddf::VEC > | PolyLine |
Public Member Functions |
| GdheClient (char *server_name) |
void | SendCommand (char *cmd) |
void | SendCommand (std::string &str) |
void | Redraw () |
unsigned short | CreateFrame (float dim, unsigned char r=255, unsigned char g=255, unsigned char b=255, std::string obj_name="") |
void | SetBkGroundColor (unsigned char r=255, unsigned char g=255, unsigned char b=255) |
unsigned short | CreateGrid (float xs, float ys, float xf, float yf, float step, unsigned char r=255, unsigned char g=255, unsigned char b=255, std::string obj_name="") |
unsigned short | CreateSphere (double diameter, unsigned char r=255, unsigned char g=255, unsigned char b=255, std::string obj_name="") |
unsigned short | CreateEllipsoid (double dx, double dy, double dz, unsigned char r=255, unsigned char g=255, unsigned char b=255, std::string obj_name="") |
void | SetPos (std::string &str_obj_name, double x=0, double y=0, double z=0) |
void | SetPos (char *obj_name, double x=0, double y=0, double z=0) |
void | SetPos (unsigned short id, double x=0, double y=0, double z=0) |
void | DeleteObject (std::string &obj_name) |
void | DeleteObject (char *obj_name) |
void | DeleteObject (unsigned short obj) |
void | CleanAll () |
void | GenName (std::string const &name, std::string &str) |
void | PreparePolyline (std::ostringstream &toadd, unsigned short nbpoints, unsigned char r, unsigned char g, unsigned char b, std::string &obj_name, std::string &str_obj_name) |
short | FinishPolyline (std::ostringstream &toadd, std::string &obj_name, std::string &str_obj_name) |
template<typename T > |
short | CreatePolyline (T data[][3], unsigned short nbpoints, unsigned char r=255, unsigned char g=255, unsigned char b=255, std::string obj_name="") |
short | CreatePolyline (PolyLine traj, unsigned short nbpoints, unsigned char r=255, unsigned char g=255, unsigned char b=255, std::string obj_name="") |
Static Private Attributes |
static unsigned short | m_robot_id |