DlgGenerateFBM.h 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. /* Copyright (c) 2002-2012 Croteam Ltd.
  2. This program is free software; you can redistribute it and/or modify
  3. it under the terms of version 2 of the GNU General Public License as published by
  4. the Free Software Foundation
  5. This program is distributed in the hope that it will be useful,
  6. but WITHOUT ANY WARRANTY; without even the implied warranty of
  7. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  8. GNU General Public License for more details.
  9. You should have received a copy of the GNU General Public License along
  10. with this program; if not, write to the Free Software Foundation, Inc.,
  11. 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */
  12. #if !defined(AFX_DLGGENERATEFBM_H__E9D18A4D_B090_48B0_A0D5_C1CEAADEFBA8__INCLUDED_)
  13. #define AFX_DLGGENERATEFBM_H__E9D18A4D_B090_48B0_A0D5_C1CEAADEFBA8__INCLUDED_
  14. #if _MSC_VER > 1000
  15. #pragma once
  16. #endif // _MSC_VER > 1000
  17. // DlgGenerateFBM.h : header file
  18. //
  19. /////////////////////////////////////////////////////////////////////////////
  20. // CDlgGenerateFBM dialog
  21. class CDlgGenerateFBM : public CDialog
  22. {
  23. // Construction
  24. public:
  25. CWnd m_wndTexture;
  26. BOOL m_bCustomWindowCreated;
  27. CDrawPort *m_pdp;
  28. CViewPort *m_pvp;
  29. CDlgGenerateFBM(CWnd* pParent = NULL); // standard constructor
  30. // Dialog Data
  31. //{{AFX_DATA(CDlgGenerateFBM)
  32. enum { IDD = IDD_GENERATE_FBM };
  33. CSpinButtonCtrl m_ctrlCtOctavesSpin;
  34. float m_fMaxAltitude;
  35. float m_fOctaveAmplitudeDecreaser;
  36. float m_fOctaveAmplitudeStep;
  37. float m_fHighFrequencyStep;
  38. int m_ctOctaves;
  39. BOOL m_bAddNegativeValues;
  40. BOOL m_bRandomOffset;
  41. //}}AFX_DATA
  42. // Overrides
  43. // ClassWizard generated virtual function overrides
  44. //{{AFX_VIRTUAL(CDlgGenerateFBM)
  45. protected:
  46. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  47. //}}AFX_VIRTUAL
  48. // Implementation
  49. protected:
  50. // Generated message map functions
  51. //{{AFX_MSG(CDlgGenerateFBM)
  52. afx_msg void OnPaint();
  53. afx_msg void OnFbmRandomize();
  54. afx_msg void OnChangeFbmHighFrequencyStep();
  55. afx_msg void OnChangeFbmMaxAltitude();
  56. afx_msg void OnChangeFbmOctaveAmplitudeDecrease();
  57. afx_msg void OnChangeFbmOctaveStep();
  58. afx_msg void OnChangeFbmOctaves();
  59. virtual void OnOK();
  60. virtual BOOL OnInitDialog();
  61. afx_msg void OnAddNegativeValues();
  62. afx_msg void OnFbmExport();
  63. afx_msg void OnRandomOffset();
  64. //}}AFX_MSG
  65. DECLARE_MESSAGE_MAP()
  66. };
  67. //{{AFX_INSERT_LOCATION}}
  68. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  69. #endif // !defined(AFX_DLGGENERATEFBM_H__E9D18A4D_B090_48B0_A0D5_C1CEAADEFBA8__INCLUDED_)