The ModelInputIterator class handles iteration over given ModelInputPictures. Handles boundarys and allows for easy boundary checks. Different implementations of this interface allow to easily swap iteration policy, f.e. iterate keyframes only.
More...
#include <ModelInputIterator.h>
The ModelInputIterator class handles iteration over given ModelInputPictures. Handles boundarys and allows for easy boundary checks. Different implementations of this interface allow to easily swap iteration policy, f.e. iterate keyframes only.
- Author
- Dominik Wüst
- Date
- 2021/02/11
◆ getFirst()
get index of first image in ModelInputPicturesInstance mip.
- Parameters
-
- Returns
- the index of the first image
Implemented in ImageIterator, and KeyframeIterator.
◆ getLast()
get index of last image in ModelInputPicturesInstance mip.
- Parameters
-
- Returns
- the index of the first image
Implemented in ImageIterator, and KeyframeIterator.
◆ getNext()
| virtual unsigned int ModelInputIterator::getNext |
( |
ModelInputPictures * |
mip, |
|
|
unsigned int |
currentIdx, |
|
|
unsigned int |
stepsize = 1 |
|
) |
| |
|
pure virtual |
steps for stepsize images forward from given currentIdx without leaving the boundarys of ModelInputPictures mip.
- Parameters
-
| mip | the ModelInputPictures instance to iterate |
| currentIdx | the index to start from |
| stepsize | the number of images to step from currentIdx |
- Returns
- the new index which is stepsize images forward from currentIdx
Implemented in ImageIterator, and KeyframeIterator.
◆ getPrevious()
| virtual unsigned int ModelInputIterator::getPrevious |
( |
ModelInputPictures * |
mip, |
|
|
unsigned int |
currentIdx, |
|
|
unsigned int |
stepsize = 1 |
|
) |
| |
|
pure virtual |
steps for stepsize images backward from given currentIdx without leaving the boundarys of ModelInputPictures mip.
- Parameters
-
| mip | the ModelInputPictures instance to iterate |
| currentIdx | the index to start from |
| stepsize | the number of images to step from currentIdx |
- Returns
- the new index which is stepsize images backward from currentIdx
Implemented in ImageIterator, and KeyframeIterator.
◆ isFirst()
| virtual bool ModelInputIterator::isFirst |
( |
ModelInputPictures * |
mip, |
|
|
unsigned int |
currentIdx |
|
) |
| |
|
pure virtual |
◆ isLast()
| virtual bool ModelInputIterator::isLast |
( |
ModelInputPictures * |
mip, |
|
|
unsigned int |
currentIdx |
|
) |
| |
|
pure virtual |
The documentation for this interface was generated from the following file: