#include <ArServerInfoDrawings.h>
Use addDrawing() to add a figure, or use addRangeDevice() or addRobotsRangeDevice() to automatically create standard drawings for range devices.
Clients may use the listDrawings
data request to receive a list of figures and metadata about those figures. The reply packet to the listDrawings
request is as follows:
This command is in the SensorInfo
permission group for users.
Public Member Functions | |
bool | addDrawing (ArDrawingData *drawingData, const char *name, ArFunctor2< ArServerClient *, ArNetPacket * > *functor) |
Adds a shape to the set of figures. | |
bool | addRangeDevice (ArRangeDevice *rangeDevice) |
Adds a specific range device to be drawn (using its default shape). | |
bool | addRobotsRangeDevices (ArRobot *robot) |
Adds all of the robot's range devices (using their default shape). | |
ArServerInfoDrawings (ArServerBase *server) | |
Constructor. | |
void | netGetDrawingList (ArServerClient *client, ArNetPacket *packet) |
void | netListDrawings (ArServerClient *client, ArNetPacket *packet) |
Client callback: Puts the list of shapes that can be drawn and their metadata into a reply packet (internal use mostly). | |
void | netRangeDeviceCumulative (ArServerClient *client, ArNetPacket *packet, ArRangeDevice *device) |
Client callback utilit: Puts the cumulative buffer of the given range device into a reply packet (internal use mostly). | |
void | netRangeDeviceCurrent (ArServerClient *client, ArNetPacket *packet, ArRangeDevice *device) |
Client callback utility: Puts the current data for the given range device into a reply packet (internal use mostly). | |
virtual | ~ArServerInfoDrawings () |
Destructor. | |
Protected Attributes | |
std::map< std::string, ArFunctor *, ArStrCaseCmpOp > | myDrawingCallbacks |
std::map< std::string, ArDrawingData *, ArStrCaseCmpOp > | myDrawingDatas |
ArFunctor2C< ArServerInfoDrawings, ArServerClient *, ArNetPacket * > | myNetGetDrawingListCB |
ArFunctor2C< ArServerInfoDrawings, ArServerClient *, ArNetPacket * > | myNetListDrawingsCB |
ArServerBase * | myServer |