VISH
0.2
|
bool RemoteVish::request | ( | VRequest & | request, |
double | precision, | ||
const WeakVObjectPtr & | ImmediateRequestor, | ||
const WeakVObjectPtr & | RootRequestor | ||
) | [virtual] |
Request an action, to be performed with a certain precision.
Its main purpose is to iterate all parameters and forward the request to them. If this all parameters have fullfilled their request(), then the virtual update() function is called.
In rare case, an object might want to overload this function, for instance when request shall be forwarded to input objects only under certain circumstances (e.g. an Viewer object that is not visible at the moment).
VRequest::Incomplete | might occur if a synchroneous request is issued but some operations are still in asynchroneous construction. This is the case when a synchroneous request is issued after an asynchroneous one that has not yet been completed. In such a case, the caller may just repeat the same request. The caller may and should do something else in the meantime, as the async request may still take a while to finish. |
Check the age of the local state
Some parameter has changed, so call object's update().
Reimplemented from Wizt::VObject.
void Wizt::RemoteVish::sendScreenshot | ( | const WeakPtr< Communicator > & | Rec, |
socket_t | fd | ||
) |
which color format (rgb, rgba, ...) would this grabber prefer?
which pixel type (byte, short, half, float, ...) would this grabber like?
which depth type (byte, short, half, float, ...) would this grabber like?
bool RemoteVish::update | ( | VRequest & | , |
double | precision | ||
) | [virtual] |
Virtual update function that implements some heavy action on the object.
Update function.
It is called only if any input object is newer than the current object. It must return true on successful completion. However, the object may touch() itself in the update() routine. Then, it will get a newer time than all input objects, which will trigger all dependent objects as well.
Reimplemented from Wizt::VObject.