-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathEditTerrainWnd.h
88 lines (75 loc) · 2.16 KB
/
EditTerrainWnd.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
#pragma once
#include "BaseApplication.h"
#include "Resource.h"
#include "EditScene.h"
#include "FreeImage.h"
class EditTerainWnd : public CDialogEx
{
public:
// 对话框数据
enum { IDD = IDD_EDIT_TERRAIN };
int m_page; //滑动条用到
EditScene *mscene;
int numRow,numLine; //添加物体行列数
int Depart; //物体间距>0
int RandomDepart; //物体间距随机变化范围0
float RandomRoll; //物体随机旋转方位
float RandomScale; //物体随机缩放范围0
FIBITMAP* m_pFImg[8]; //FreeImage位图对象//
EditTerainWnd() : CDialogEx(EditTerainWnd::IDD)
{
m_page=0;
mscene=NULL;
numRow = 1;
numLine = 1;
Depart = 10;
RandomDepart = 0;
RandomRoll = 0;
RandomScale = 0;
for (int i=0; i<8; i++)
{
m_pFImg[i]=NULL;
}
}
void updateVScrollRange(float ylen) ;
void initView();
void checkRadioButton();
void checkRadioButton2(int n);
void OnTimer( UINT nIDEvent );
protected:
virtual void DoDataExchange(CDataExchange* pDX) // DDX/DDV 支持
{
CDialogEx::DoDataExchange(pDX);
}
virtual BOOL OnInitDialog();
afx_msg void OnVScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar);
DECLARE_MESSAGE_MAP()
public:
afx_msg void OnNMCustomdrawSlider1(NMHDR *pNMHDR, LRESULT *pResult);
afx_msg void OnNMCustomdrawSlider2(NMHDR *pNMHDR, LRESULT *pResult);
afx_msg void OnBnClickedRadio1();
afx_msg void OnBnClickedRadio2();
afx_msg void OnBnClickedRadio3();
afx_msg void OnBnClickedRadio4();
afx_msg void OnBnClickedRadio5();
afx_msg void OnBnClickedRadio6();
afx_msg void OnBnClickedRadio7();
afx_msg void OnBnClickedRadio8();
afx_msg void OnBnClickedRadio15();
afx_msg void OnBnClickedRadio9();
afx_msg void OnBnClickedRadio10();
afx_msg void OnBnClickedRadio11();
afx_msg void OnBnClickedRadio12();
afx_msg void OnBnClickedRadio18();
afx_msg void OnBnClickedRadio19();
afx_msg void OnBnClickedRadio20();
afx_msg void OnBnClickedRadio21();
afx_msg void OnBnClickedButton5();
afx_msg void OnBnClickedButton12();
afx_msg void OnBnClickedButton6();
afx_msg void OnBnClickedButton8();
afx_msg void OnBnClickedButton7();
afx_msg void OnBnClickedButton19();
afx_msg void OnBnClickedButton18();
afx_msg void OnBnClickedButton20();
};