10 #ifndef __mlPageIDIterator_H
11 #define __mlPageIDIterator_H
43 MLint result = _currentPageId;
46 if (result==_lastPageId) {
53 if (_currentPosition.x >= _pageBoxExtent.x) {
54 _currentPosition.x = 0;
55 _currentPageId -= _pageBoxExtent.x;
57 _currentPageId += _pageStride.y;
59 if (_currentPosition.y >= _pageBoxExtent.y) {
60 _currentPosition.y = 0;
61 _currentPageId -= _pageBoxExtent.y * _pageStride.y;
63 _currentPageId += _pageStride.z;
65 if (_currentPosition.z >= _pageBoxExtent.z) {
66 _currentPosition.z = 0;
67 _currentPageId -= _pageBoxExtent.z * _pageStride.z;
69 _currentPageId += _pageStride.c;
71 if (_currentPosition.c >= _pageBoxExtent.c) {
72 _currentPosition.c = 0;
73 _currentPageId -= _pageBoxExtent.c * _pageStride.c;
75 _currentPageId += _pageStride.t;
77 if (_currentPosition.t >= _pageBoxExtent.t) {
78 _currentPosition.t = 0;
79 _currentPageId -= _pageBoxExtent.t * _pageStride.t;
81 _currentPageId += _pageStride.u;
100 MLint _numberOfPages;
106 #endif //of __mlPageIDIterator_H
MLint getNumPages() const
Returns the number of pages that are part of the box.
Class which represents an image, which manages properties of an image and image data which is located...
MLint64 MLint
A signed ML integer type with at least 64 bits used for index calculations on very large images even ...
Defines system-specific macros for this project/DLL.
#define MLEXPORT
To export symbols from a dll/shared object, we need to mark them with the MLEXPORT symbol...
A class that allows to incrementally iterate over all ids of pages have an intersection with a given ...
MLint getNextPageID()
Returns the next page id, may only be called as often as getNumPages() returns.
ML_LINEAR_ALGEBRA_EXPORT typedef TImageVector< MLint > ImageVector
Defines the standard ImageVector type which is used by the ML for indexing and coordinates.
Contains the class PagedImage which represents an fragmented image which manages properties of an ima...