AnimationDialog.h
上传用户:shxiangxiu
上传日期:2007-01-03
资源大小:1101k
文件大小:6k
源码类别:

OpenGL

开发平台:

Visual C++

  1. /////////////////////////////////////////////////////////////////////////////
  2. // AnimationDialog.h : Header file; Defines the class definitions
  3. //
  4. // glOOP (OpenGL Object Oriented Programming library)
  5. // Copyright (c) Craig Fahrnbach 1997, 1998
  6. //
  7. // OpenGL is a registered trademark of Silicon Graphics
  8. //
  9. //
  10. // This program is provided for educational and personal use only and
  11. // is provided without guarantee or warrantee expressed or implied.
  12. //
  13. // Commercial use is strickly prohibited without written permission
  14. // from ImageWare Development.
  15. //
  16. // This program is -not- in the public domain.
  17. //
  18. /////////////////////////////////////////////////////////////////////////////
  19. /////////////////////////////////////////////////////////////////////////////
  20. // CAnimPageSpin dialog
  21. class AFX_EXT_CLASS CAnimPageSpin : public CPropertyPage
  22. {
  23. DECLARE_DYNCREATE(CAnimPageSpin);
  24. // Construction
  25. public:
  26. CAnimPageSpin();
  27. virtual ~CAnimPageSpin();
  28. // Attributes
  29. public:
  30. CAnimSpin* m_pAnimation;
  31. // Dialog Data
  32. //{{AFX_DATA(CAnimPageSpin)
  33. enum { IDD = IDD_PAGE_ANIMATE_SPIN };
  34. float m_fSpinX;
  35. float m_fSpinY;
  36. float m_fSpinZ;
  37. double m_dTimeX;
  38. double m_dTimeY;
  39. double m_dTimeZ;
  40. //}}AFX_DATA
  41. // Overrides
  42. // ClassWizard generate virtual function overrides
  43. //{{AFX_VIRTUAL(CAnimPageSpin)
  44. public:
  45. virtual void OnOK();
  46. protected:
  47. virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
  48. //}}AFX_VIRTUAL
  49. // Implementation
  50. protected:
  51. // Generated message map functions
  52. //{{AFX_MSG(CAnimPageSpin)
  53. virtual BOOL OnInitDialog();
  54. //}}AFX_MSG
  55. DECLARE_MESSAGE_MAP()
  56. };
  57. /////////////////////////////////////////////////////////////////////////////
  58. /////////////////////////////////////////////////////////////////////////////
  59. // CAnimPageWobble dialog
  60. class AFX_EXT_CLASS CAnimPageWobble : public CPropertyPage
  61. {
  62. DECLARE_DYNCREATE(CAnimPageWobble);
  63. // Construction
  64. public:
  65. CAnimPageWobble();
  66. virtual ~CAnimPageWobble();
  67. // Attributes
  68. public:
  69. CAnimWobble* m_pAnimation;
  70. // Dialog Data
  71. //{{AFX_DATA(CAnimPageWobble)
  72. enum { IDD = IDD_PAGE_ANIMATE_WOBBLE };
  73. float m_fWobbleX;
  74. float m_fWobbleY;
  75. float m_fWobbleZ;
  76. float m_fLimitX;
  77. float m_fLimitY;
  78. float m_fLimitZ;
  79. double m_dTimeX;
  80. double m_dTimeY;
  81. double m_dTimeZ;
  82. //}}AFX_DATA
  83. // Overrides
  84. // ClassWizard generate virtual function overrides
  85. //{{AFX_VIRTUAL(CAnimPageWobble)
  86. public:
  87. virtual void OnOK();
  88. protected:
  89. virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
  90. //}}AFX_VIRTUAL
  91. // Implementation
  92. protected:
  93. // Generated message map functions
  94. //{{AFX_MSG(CAnimPageWobble)
  95. virtual BOOL OnInitDialog();
  96. //}}AFX_MSG
  97. DECLARE_MESSAGE_MAP()
  98. };
  99. /////////////////////////////////////////////////////////////////////////////
  100. /////////////////////////////////////////////////////////////////////////////
  101. // CAnimPageKeyFrame dialog
  102. class AFX_EXT_CLASS CAnimPageKeyFrame : public CPropertyPage
  103. {
  104. DECLARE_DYNCREATE(CAnimPageKeyFrame);
  105. // Construction
  106. public:
  107. CAnimPageKeyFrame();
  108. virtual ~CAnimPageKeyFrame();
  109. // Attributes
  110. public:
  111. CAnimKeyFrame* m_pAnimation;
  112. // Dialog Data
  113. //{{AFX_DATA(CAnimPageKeyFrame)
  114. enum { IDD = IDD_PAGE_ANIMATE_KEYFRAME };
  115. int m_iNumFrames;
  116. int m_iCycleKeyFrames;
  117. //}}AFX_DATA
  118. // Overrides
  119. // ClassWizard generate virtual function overrides
  120. //{{AFX_VIRTUAL(CAnimPageKeyFrame)
  121. public:
  122. virtual void OnOK();
  123. protected:
  124. virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
  125. //}}AFX_VIRTUAL
  126. // Implementation
  127. protected:
  128. // Generated message map functions
  129. //{{AFX_MSG(CAnimPageKeyFrame)
  130. virtual BOOL OnInitDialog();
  131. afx_msg void OnRadioCycle();
  132. //}}AFX_MSG
  133. DECLARE_MESSAGE_MAP()
  134. };
  135. /////////////////////////////////////////////////////////////////////////////
  136. /////////////////////////////////////////////////////////////////////////////
  137. // CAnimPageAVI dialog
  138. class AFX_EXT_CLASS CAnimPageAVI : public CPropertyPage
  139. {
  140. DECLARE_DYNCREATE(CAnimPageAVI);
  141. // Construction
  142. public:
  143. CAnimPageAVI();
  144. virtual ~CAnimPageAVI();
  145. // Attributes
  146. public:
  147. CAnimAVI* m_pAnimation;
  148. // Dialog Data
  149. //{{AFX_DATA(CAnimPageAVI)
  150. enum { IDD = IDD_PAGE_ANIMATE_AVI };
  151. CSliderCtrl m_SliderVolumn;
  152. CSliderCtrl m_SliderPitch;
  153. int m_iEnableAudio;
  154. int m_iPlayContinuous;
  155. CString m_szName;
  156. //}}AFX_DATA
  157. // Overrides
  158. // ClassWizard generate virtual function overrides
  159. //{{AFX_VIRTUAL(CAnimPageAVI)
  160. public:
  161. virtual void OnOK();
  162. protected:
  163. virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
  164. //}}AFX_VIRTUAL
  165. // Implementation
  166. protected:
  167. void ProcessVolumnSlider(UINT, UINT, CScrollBar*);
  168. void ProcessPitchSlider(UINT, UINT, CScrollBar*);
  169. // Generated message map functions
  170. //{{AFX_MSG(CAnimPageAVI)
  171. virtual BOOL OnInitDialog();
  172. afx_msg void OnRadioEnableAudio();
  173. afx_msg void OnRadioPlayContinuous();
  174. afx_msg void OnVScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar);
  175. //}}AFX_MSG
  176. DECLARE_MESSAGE_MAP()
  177. };
  178. /////////////////////////////////////////////////////////////////////////////
  179. /////////////////////////////////////////////////////////////////////////////
  180. // CAnimPropSheet class
  181. class AFX_EXT_CLASS CAnimPropSheet : public CPropertySheet
  182. {
  183. public:
  184. DECLARE_DYNAMIC(CAnimPropSheet)
  185. CAnimPropSheet(LPSTR lpName, CWnd* pWndParent,C3dObject* pObject, C3dCamera* pCamera, C3dWorld* pWorld);
  186. // Attributes
  187. CAnimPageSpin m_SpinPage;
  188. CAnimPageWobble m_WobblePage;
  189. CAnimPageKeyFrame m_KeyFramePage;
  190. CAnimPageAVI m_TextureMapPage;
  191. // Operations
  192. // Overrides
  193. virtual void PostNcDestroy();
  194. // Message Handlers
  195. protected:
  196. //{{AFX_MSG(CAnimPropSheet)
  197. //}}AFX_MSG
  198. DECLARE_MESSAGE_MAP()
  199. };
  200. /////////////////////////////////////////////////////////////////////////////