![]() |
iVS3D v2.0.0
|
The ImageIterator class is used to iterate given ModelInputPictures instance mip. Handles boundaries and and allows for easy boundary checks. Every image is iterated. More...
#include <imageiterator.h>
Public Member Functions | |
| unsigned int | getNext (ModelInputPictures *mip, unsigned int currentIdx, unsigned int stepsize=1) override |
| steps for stepsize images forward from given currentIdx without leaving the boundaries of ModelInputPictures mip. | |
| unsigned int | getPrevious (ModelInputPictures *mip, unsigned int currentIdx, unsigned int stepsize=1) override |
| steps for stepsize images backward from given currentIdx without leaving the boundaries of ModelInputPictures mip. | |
| unsigned int | getFirst (ModelInputPictures *mip) override |
| get index of first image in ModelInputPictures instance mip. First is 0. | |
| unsigned int | getLast (ModelInputPictures *mip) override |
| get index of last image in ModelINputPictures instance mip. Last is mip.getPicCount()-1. | |
| bool | isFirst (ModelInputPictures *mip, unsigned int currentIdx) override |
| check if currentIdx is first index in ModelInputPictures mip. | |
| bool | isLast (ModelInputPictures *mip, unsigned int currentIdx) override |
| check if currentIdx is last index in ModelInputPictures mip. | |
The ImageIterator class is used to iterate given ModelInputPictures instance mip. Handles boundaries and and allows for easy boundary checks. Every image is iterated.
|
overridevirtual |
get index of first image in ModelInputPictures instance mip. First is 0.
| mip | the ModelInputPictures to iterate |
Implements ModelInputIterator.
|
overridevirtual |
get index of last image in ModelINputPictures instance mip. Last is mip.getPicCount()-1.
| mip | the modelInputPictures to iterate |
Implements ModelInputIterator.
|
overridevirtual |
steps for stepsize images forward from given currentIdx without leaving the boundaries of ModelInputPictures mip.
| mip | the ModelInputPictures instance to iterate |
| currentIdx | the index to start from |
| stepsize | the number of images to step from currentIdx |
Implements ModelInputIterator.
|
overridevirtual |
steps for stepsize images backward from given currentIdx without leaving the boundaries of ModelInputPictures mip.
| mip | the ModelInputPictures instance to iterate |
| currentIdx | the index to start from |
| stepsize | the number of images to step from currentIdx |
Implements ModelInputIterator.
|
overridevirtual |
check if currentIdx is first index in ModelInputPictures mip.
| mip | the ModelInputPictures to iterate |
| currentIdx | index to check |
Implements ModelInputIterator.
|
overridevirtual |
check if currentIdx is last index in ModelInputPictures mip.
| mip | the ModelInputPictures to iterate |
| currentIdx | index to check |
Implements ModelInputIterator.