Jafar
|
When creating a new object type, you have to inherit from this object, optionnally add some attributes with their accessors, call touch() every time an accessor modifies an attribute, and implement construction(). More...
When creating a new object type, you have to inherit from this object, optionnally add some attributes with their accessors, call touch() every time an accessor modifies an attribute, and implement construction().
If the object wants to support a label, it has to set its relative position everytime its size is changed and call touch()
Definition at line 239 of file client.hpp.
#include <client.hpp>
Public Member Functions | |
Object (double _x, double _y, double _z, double _yaw, double _pitch, double _roll) | |
Object (double _x, double _y, double _z, double _yaw, double _pitch, double _roll, unsigned char R_, unsigned char G_, unsigned char B_) | |
virtual const std::string | construct_string () const =0 |
virtual const std::string | move_string () const |
virtual const std::string | remove_string () const |
virtual void | move_command (bool send=false) const |
virtual void | remove_command (bool send=false) const |
void | remove () |
Immediatly remove the object from display. | |
void | hide () |
Immediatly hides the object in display. | |
void | show () |
Immediatly show the object in display. | |
void | refresh () |
Immediatly updates the object in display. | |
void | setPose (double _x, double _y, double _z, double _yaw, double _pitch, double _roll) |
void | setPose (jblas::vec &pose) |
void | setPose (jblas::vec &position, jblas::vec &euler) |
void | setColor (ColorRGB &_color) |
void | setColor (unsigned char R_, unsigned char G_, unsigned char B_) |
void | setLabel (std::string text) |
void | setLabelColor (ColorRGB &_color) |
void | setLabelColor (unsigned char R_, unsigned char G_, unsigned char B_) |
void | setLabelShift (double x_, double y_, double z_) |
Protected Member Functions | |
void | createLabel () |
void | updateLabelPose () |
void | registerClient (Client *client_) |
void | setId (MyIdFactory::storage_t id_, std::string suffix="", bool ownId_=true) |
void | touch () |
Protected Attributes | |
double | x |
double | y |
double | z |
double | yaw |
double | pitch |
double | roll |
ColorRGB | color |
bool | poseModified |
bool | attributesModified |
Label * | label |
bool | ownId |
MyIdFactory::storage_t | id |
id of the object | |
std::string | ids |
Client * | client |
Friends | |
class | Client |
Generated on Wed Oct 15 2014 00:37:36 for Jafar by doxygen 1.7.6.1 |