00001 #ifndef __CWaveCycle__ 00002 #define __CWaveCycle__ 00003 00004 // =========================================================================== 00005 00006 #include "CControl.hpp" 00007 using Exponent::GUI::Controls::CControl; 00008 00009 // =========================================================================== 00010 00011 namespace Exponent 00012 { 00013 namespace GUI 00014 { 00015 namespace Controls 00016 { 00036 class CWaveCycle : public CControl 00037 { 00039 EXPONENT_CLASS_DECLARATION; 00042 // =========================================================================== 00043 00044 public: 00045 00052 CWaveCycle(IControlRoot *root, const long uniqueId, const CRect &area); 00053 00057 virtual ~CWaveCycle(); 00058 00059 // =========================================================================== 00060 00065 virtual void drawControl(CGraphics &graphics); 00066 00071 void setNextValue(const double value); 00072 00073 // =========================================================================== 00074 00075 00076 protected: 00077 00078 // =========================================================================== 00079 00080 CPolygon m_wave; 00081 long m_position; 00082 }; 00083 } 00084 } 00085 } 00086 #endif // End of CWaveCycle.hpp