|
roviz
0.7
Code Documentation of roviz
|
Represents the input of an item. More...
#include <input.h>

Public Member Functions | |
| Input (RovizItem *item) | |
| T | next (void) |
| Returns the next object in the input queue. More... | |
| T | newest (void) |
| Returns the newest object in the input queue. More... | |
| bool | waitForInput (void) |
| Wait until an object is available at the input. More... | |
Friends | |
| class | RovizItemBase |
Represents the input of an item.
The input will receive StreamObject's that other items, that are connected to this input, emit. The template type of this class has to be a valid StreamObject implementation.
| T Input< T >::newest | ( | void | ) |
Returns the newest object in the input queue.
| input | The input handle returned from addInput() |
All older objects in the input queue are discarded.
| T Input< T >::next | ( | void | ) |
Returns the next object in the input queue.
| input | The input handle returned from addInput() |
| bool Input< T >::waitForInput | ( | void | ) |
Wait until an object is available at the input.
| input | The input handle returned from addInput() |
This function should be used by most (image processing) items to ensure the start/pause/stop mechanism works.
This function implements the pause/stop mechanism. It doesn't return as long as the item is paused and returns false if it is stopped. It is important that the thread exits when this happens!
1.8.13