00001 00030 #ifndef INC_MI32_IMGTILIT_H 00031 #define INC_MI32_IMGTILIT_H 00032 00033 #ifndef INC_MI32_STDDEFNS_H 00034 #include <mi32/stddefns.h> 00035 #endif 00036 00037 #ifndef GENERATING_DOXYGEN_OUTPUT 00038 namespace RVC { 00039 class RASTER; 00040 } 00041 #endif 00042 00072 00073 class IMAGE_TILE_ITERATOR { 00074 public: 00075 00077 IMAGE_TILE_ITERATOR ( 00078 const RVC::RASTER& ObjRaster 00079 ); 00080 00082 IMAGE_TILE_ITERATOR ( 00083 INT32 numcols, 00084 INT32 numrows, 00085 INT32 tilecols, 00086 INT32 tilerows 00087 ); 00088 00090 IMAGE_TILE_ITERATOR ( 00091 INT32 numcols, 00092 INT32 numrows, 00093 INT32 tilecols, 00094 INT32 tilerows, 00095 INT32 FirstTileColumns, 00096 INT32 FirstTileRows 00097 ); 00098 00100 IMAGE_TILE_ITERATOR& operator++ ( 00101 ); 00102 00104 INT32 GetColumn ( 00105 ) const { 00106 return (m_col0); 00107 } 00108 00110 INT32 GetLine ( 00111 ) const { 00112 return (m_row); 00113 } 00114 00116 INT32 GetMaxColumns ( 00117 ) const { return (MAX(m_tilecols,m_tilecolsfirst)); } 00118 00120 INT32 GetNumColumns ( 00121 ) const { 00122 return (m_col1 - m_col0); 00123 } 00124 00126 INT32 GetNumSpans ( 00127 ) const { 00128 return (m_numspans); 00129 } 00130 00132 INT32 GetRow ( 00133 ) const { 00134 return (m_row); 00135 } 00136 00138 INT32 GetSpan ( 00139 ) const { 00140 return (m_curspan); 00141 } 00142 00144 bool IsDone ( 00145 ) const { 00146 return (m_Done); 00147 } 00148 00150 void Reset ( 00151 ); 00152 00153 private: 00154 #ifndef GENERATING_DOXYGEN_OUTPUT 00155 INT32 m_numcols; 00156 INT32 m_numrows; 00157 INT32 m_tilecols; 00158 INT32 m_tilerows; 00159 INT32 m_tilecolsfirst; 00160 INT32 m_tilerowsfirst; 00161 INT32 m_numspans; 00162 INT32 m_curspan; 00163 INT32 m_row0; 00164 INT32 m_row1; 00165 INT32 m_col0; 00166 INT32 m_col1; 00167 INT32 m_row; 00168 bool m_Done; 00169 #endif // GENERATING_DOXYGEN_OUTPUT 00170 }; 00171 00172 #endif // INC_MI32_IMGTILIT_H
1.6.1