00001
00021 #ifndef INC_OPRASTERTOREGION_H
00022 #define INC_OPRASTERTOREGION_H
00023
00024 #ifndef INC_MI32_DOUBLEAR_H
00025 #include <mi32/doublear.h>
00026 #endif
00027
00028 #ifndef INC_MI32_RANGE_H // For DOUBLE_RANGE definition
00029 #include <mi32/range.h>
00030 #endif
00031
00032 #ifndef GENERATING_DOXYGEN_OUTPUT
00033 class REGION2D;
00034 #endif // GENERATING_DOXYGEN_OUTPUT
00035
00036 namespace RVC {
00037
00038 #ifndef GENERATING_DOXYGEN_OUTPUT
00039 class OBJITEM;
00040 #endif // GENERATING_DOXYGEN_OUTPUT
00041
00042 namespace OP {
00043
00044
00045
00047 class RASTER_TO_REGION {
00048 public:
00049
00052 static ERRVALUE ComputeFromValues (
00053 const OBJITEM& ObjItem,
00054 const DOUBLE_ARRAY<double>& values,
00055 double range,
00056 REGION2D& region
00057 );
00058
00061 static ERRVALUE ComputeFromBinary (
00062 const OBJITEM& ObjItem,
00063 REGION2D& region
00064 );
00065
00067 static ERRVALUE ComputeFromValueRanges (
00068 const OBJITEM& ObjItem,
00069 const DOUBLE_ARRAY<DOUBLE_RANGE>& ranges,
00070 REGION2D& region
00071 );
00072 };
00073
00074
00075
00076 }
00077 }
00078
00079 #endif // INC_OPRASTERTOREGION_H