00001 /** 00002 * \file autocolr.h <mi32/autocolr.h> 00003 * \brief AUTOCOLORGEN class definition 00004 * 00005 * \if NODOC 00006 * $Id: autocolr.h_v 1.2 2003/09/15 13:49:56 fileserver!dwilliss Exp $ 00007 * 00008 * $Log: autocolr.h_v $ 00009 * Revision 1.2 2003/09/15 13:49:56 fileserver!dwilliss 00010 * Doxygen 00011 * 00012 * Revision 1.1 2002/10/21 18:05:54 mju 00013 * Initial revision 00014 * 00015 * \endif 00016 **/ 00017 00018 #ifndef INC_MI32_AUTOCOLR_H 00019 #define INC_MI32_AUTOCOLR_H 00020 00021 #ifndef INC_MI32_STDDEFNS_H 00022 #include <mi32/stddefns.h> 00023 #endif 00024 00025 struct COLOR; 00026 00027 //=================================================================================================================== 00028 //! Automatic color generator for generating colors in a predetermined progression. 00029 class AUTOCOLORGEN { 00030 public: 00031 00032 //! Constructor, initializes progression. 00033 AUTOCOLORGEN (); 00034 00035 //! Get next color in progression. 00036 void GetNext ( 00037 COLOR& color 00038 ); 00039 00040 //! Reset progression. 00041 void Reset (); 00042 00043 private: 00044 #ifndef GENERATING_DOXYGEN_OUTPUT 00045 UINT8 m_redloc; 00046 UINT8 m_grnloc; 00047 UINT8 m_bluloc; 00048 UINT8 m_topval; 00049 UINT8 m_idx; 00050 #endif // GENERATING_DOXYGEN_OUTPUT 00051 }; 00052 00053 //=================================================================================================================== 00054 00055 #endif //!< INC_MI32_AUTOCOLR_H 00056
1.5.2