The KeyframeIterator class is used to iterate given ModelInputPictures instance mip. Handles boundaries of mip. KeyframeIterator only iterates indices marked as keyframes in ModelInputPictures.
More...
#include <keyframeiterator.h>
The KeyframeIterator class is used to iterate given ModelInputPictures instance mip. Handles boundaries of mip. KeyframeIterator only iterates indices marked as keyframes in ModelInputPictures.
- See also
- ModelInputPictures::getAllKeyframes
- Author
- Dominik Wüst
- Date
- 2021/02/11
◆ getFirst()
◆ getLast()
◆ getNext()
| unsigned int KeyframeIterator::getNext |
( |
ModelInputPictures * |
mip, |
|
|
unsigned int |
currentIdx, |
|
|
unsigned int |
stepsize = 1 |
|
) |
| |
|
overridevirtual |
steps for stepsize keyframes forward from given currentIdx without leaving the boundaries of ModelInputPictures mip.
- Parameters
-
| mip | the ModelInputPictures instance to iterate |
| currentIdx | the index to start from |
| stepsize | the number of keyframes to step from currentIdx |
- Returns
- the index of keyframe which is stepsize keyframes forward from currentIdx
Implements ModelInputIterator.
◆ getPrevious()
| unsigned int KeyframeIterator::getPrevious |
( |
ModelInputPictures * |
mip, |
|
|
unsigned int |
currentIdx, |
|
|
unsigned int |
stepsize = 1 |
|
) |
| |
|
overridevirtual |
steps for stepsize keyframes backward from given currentIdx without leaving the boundaries of ModelInputPictures mip.
- Parameters
-
| mip | the ModelInputPictures instance to iterate |
| currentIdx | the index to start from |
| stepsize | the number of keyframes to step from currentIdx |
- Returns
- the index of keyframe which is stepsize keyframes backward from currentIdx
Implements ModelInputIterator.
◆ isFirst()
◆ isLast()
The documentation for this class was generated from the following files:
- iVS3D/src/iVS3D-core/controller/keyframeiterator.h
- iVS3D/src/iVS3D-core/controller/keyframeiterator.cpp