A viewport manager for layout processors like imagelayout. Viewports are added using the following coordinate system:
More...
|
bool | propagateEvent (Event *event, Propagator propagator) |
| maps a propagates event to the selected view return whether the event found a view was found
|
|
std::pair< bool, ViewId > | getSelectedView () const |
| Returns a pair with a bool of whether a view was found, and the index of the found view.
|
|
const ViewList & | getViews () const |
|
void | push_back (View view) |
| Add a viewport (x,y width,height) using the following coordinate system: y ^ | | ---—> x. More...
|
|
void | erase (View view) |
| Erase a previously defined viewport (x,y width,height). If the viewport was not added before, nothing happens. More...
|
|
void | erase (ViewId ind) |
| Erase a previously defined viewport using index ind. More...
|
|
void | replace (ViewId ind, View view) |
| replace a previously defined viewport at index ind with a new viewport using the following coordinate system: More...
|
|
View & | operator[] (ViewId ind) |
| Return viewport using index ind. More...
|
|
size_t | size () const |
|
void | clear () |
|
A viewport manager for layout processors like imagelayout. Viewports are added using the following coordinate system:
y ^ | | ---—> x Example for a (512,512) viewport split along the horizontal axis: _________(512,512) | 2 | |_______|(512,256) | 1 | |_______| x y width height Viewport 1: (0, 0, 512, 256) Viewport 2: (0, 256, 512, 256)