00001
00021 #ifndef INC_MI32_COLORSPREADMGR_H
00022 #define INC_MI32_COLORSPREADMGR_H
00023
00024 #ifndef INC_MI32_COLORSPREAD_H
00025 #include <mi32/colorspread.h>
00026 #endif
00027
00028
00029 #ifndef GENERATING_DOXYGEN_OUTPUT
00030 class MISTRINGLIST;
00031 #endif
00032
00033
00035 class COLORSPREADMGR {
00036 public:
00037
00039 static double Compute (
00040 COLOR_ARRAY& ColorArray,
00041 const COLOR& ColorBegin,
00042 const COLOR& ColorEnd,
00043 COLORSPREAD::PATH path,
00044 int NumColors,
00045 int StartIndex = -1
00046 );
00047
00049 static const MISTRINGLIST& GetNameListStd ();
00050
00052 static const MISTRINGLIST& GetNameListUser ();
00053
00055 static MISTRING GetTitleStd (
00056 const MISTRING& name
00057 );
00058
00060 static ERRVALUE LoadStd (
00061 const MISTRING& name,
00062 COLOR_ARRAY& ColorArray,
00063 int NumColors = 0
00064 );
00065
00067 static ERRVALUE LoadUser (
00068 const MISTRING& name,
00069 COLOR_ARRAY& ColorArray,
00070 int NumColors = 0
00071 );
00072
00074 static ERRVALUE SaveUser (
00075 const MISTRING& name,
00076 const COLOR_ARRAY& ColorArray
00077 );
00078
00079 private:
00080 #ifndef GENERATING_DOXYGEN_OUTPUT
00081 #endif
00082 };
00083
00084 #endif // INC_MI32_COLORSPREADMGR_H
00085