0023831: Ghosts appears in 2D viewer of HLR MFC sample
[occt.git] / samples / mfc / standard / Common / AISDialogs.h
1 // AISDialogs.h : header file
2 //
3
4 #if !defined(AFX_AISNBRISOSDIALOG_H__AAD52722_6A63_11D1_8C62_00AA00D10994__INCLUDED_)
5 #define AFX_AISNBRISOSDIALOG_H__AAD52722_6A63_11D1_8C62_00AA00D10994__INCLUDED_
6
7 #if _MSC_VER >= 1000
8 #pragma once
9 #endif // _MSC_VER >= 1000
10
11 /////////////////////////////////////////////////////////////////////////////
12 // CAISNbrIsosDialog dialog
13
14 #include <AIS_InteractiveContext.hxx>
15 #include "res\OCC_Resource.h"
16 #include <Standard_Macro.hxx>
17
18 /*
19 class CAISNbrIsosDialog : public CDialog
20 {
21 // Construction
22 public:
23         CAISNbrIsosDialog(Handle_AIS_InteractiveContext CurrentIC,
24                                           CWnd* pParent = NULL);   // standard constructor
25
26 // Dialog Data
27         //{{AFX_DATA(CAISNbrIsosDialog)
28         enum { IDD = IDD_AISNBRISOS };
29         int             m_Isosu;
30         int             m_Isosv;
31         //}}AFX_DATA
32
33
34 // Overrides
35         // ClassWizard generated virtual function overrides
36         //{{AFX_VIRTUAL(CAISNbrIsosDialog)
37         protected:
38         virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
39         //}}AFX_VIRTUAL
40
41 // Implementation
42 protected:
43
44         // Generated message map functions
45         //{{AFX_MSG(CAISNbrIsosDialog)
46         afx_msg void OnDeltaposSpinaisisosu(NMHDR* pNMHDR, LRESULT* pResult);
47         afx_msg void OnDeltaposSpinaisisosv(NMHDR* pNMHDR, LRESULT* pResult);
48         //}}AFX_MSG
49         DECLARE_MESSAGE_MAP()
50
51 private:
52     void UpdateIsos ();
53
54         Handle(AIS_InteractiveContext) myCurrentIC;
55
56 };
57
58
59 /////////////////////////////////////////////////////////////////////////////
60 // CDevCoeffDialog dialog
61
62 #include <AIS_InteractiveContext.hxx>
63
64 class CDevCoeffDialog : public CDialog
65 {
66 // Construction
67 public:
68         CDevCoeffDialog(Handle(AIS_InteractiveContext) CurrentIC,
69                                         CWnd* pParent = NULL);   // standard constructor
70
71 // Dialog Data
72         //{{AFX_DATA(CDevCoeffDialog)
73         enum { IDD = IDD_AISDC };
74                 // NOTE: the ClassWizard will add data members here
75         //}}AFX_DATA
76
77
78 // Overrides
79         // ClassWizard generated virtual function overrides
80         //{{AFX_VIRTUAL(CDevCoeffDialog)
81         protected:
82         virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
83         //}}AFX_VIRTUAL
84
85 // Implementation
86 protected:
87
88         // Generated message map functions
89         //{{AFX_MSG(CDevCoeffDialog)
90         afx_msg void OnDcBig();
91         afx_msg void OnDcDefault();
92         afx_msg void OnDcSmall();
93         afx_msg void OnDoubleclickedDcBig();
94         afx_msg void OnDoubleclickedDcDefault();
95         afx_msg void OnDoubleclickedDcSmall();
96         afx_msg void OnDcVbig();
97         afx_msg void OnDoubleclickedDcVbig();
98         afx_msg void OnDcVsmall();
99         afx_msg void OnDoubleclickedDcVsmall();
100         //}}AFX_MSG
101         DECLARE_MESSAGE_MAP()
102
103 private:
104     void RedisplaySelected ();
105
106         Handle_AIS_InteractiveContext myCurrentIC;
107 };
108
109 */
110 class Standard_EXPORT CDialogMaterial : public CDialog
111 {
112 // Construction
113 public:
114         CDialogMaterial(Handle(AIS_InteractiveContext) CurrentIC,
115                             CWnd* pParent = NULL);   // standard constructor
116
117 // Dialog Data
118         //{{AFX_DATA(CDialogMaterial)
119         enum { IDD = IDD_AISMATERIAL };
120                 // NOTE: the ClassWizard will add data members here
121         //}}AFX_DATA
122
123
124 // Overrides
125         // ClassWizard generated virtual function overrides
126         //{{AFX_VIRTUAL(CDialogMaterial)
127         protected:
128         virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
129         //}}AFX_VIRTUAL
130
131 // Implementation
132 protected:
133
134         // Generated message map functions
135         //{{AFX_MSG(CDialogMaterial)
136         //afx_msg void OnMaterial(UINT nID);
137         afx_msg void OnObjectMaterialAluminium();
138         afx_msg void OnObjectMaterialBrass();
139         afx_msg void OnObjectMaterialBronze();
140         afx_msg void OnObjectMaterialChrome();
141         afx_msg void OnObjectMaterialCopper();
142         afx_msg void OnObjectMaterialGold();
143         afx_msg void OnObjectMaterialJade();
144         afx_msg void OnObjectMaterialMetalized();
145         afx_msg void OnObjectMaterialNeonGNC();
146         afx_msg void OnObjectMaterialNeonPHC();
147         afx_msg void OnObjectMaterialObsidian();
148         afx_msg void OnObjectMaterialPewter();
149         afx_msg void OnObjectMaterialPlastic();
150         afx_msg void OnObjectMaterialPlaster();
151         afx_msg void OnObjectMaterialSatin();
152         afx_msg void OnObjectMaterialShinyPlastic();
153         afx_msg void OnObjectMaterialSilver();
154         afx_msg void OnObjectMaterialSteel();
155         afx_msg void OnObjectMaterialStone();
156         afx_msg void OnObjectMaterialDefault();
157         //}}AFX_MSG
158         DECLARE_MESSAGE_MAP()
159
160 private:
161         void SetMaterial (Graphic3d_NameOfMaterial Material);
162
163         Handle_AIS_InteractiveContext myCurrentIC;
164
165 };
166
167 class Standard_EXPORT CDialogTransparency : public CDialog
168 {
169 // Construction
170 public:
171         CDialogTransparency(Handle_AIS_InteractiveContext CurrentIC, 
172                                 CWnd* pParent = NULL);   // standard constructor
173
174 // Dialog Data
175         //{{AFX_DATA(CDialogTransparency)
176         enum { IDD = IDD_AISTRANSPARENCY };
177         int     m_TransValue;
178         //}}AFX_DATA
179
180
181 // Overrides
182         // ClassWizard generated virtual function overrides
183         //{{AFX_VIRTUAL(CDialogTransparency)
184         protected:
185         virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
186         //}}AFX_VIRTUAL
187
188 // Implementation
189 protected:
190
191         // Generated message map functions
192         //{{AFX_MSG(CDialogTransparency)
193         afx_msg void OnDeltaposSpinaistransp(NMHDR* pNMHDR, LRESULT* pResult);
194         afx_msg void OnChangeEditaistransp();
195         //}}AFX_MSG
196         DECLARE_MESSAGE_MAP()
197
198 private:
199         Handle_AIS_InteractiveContext myCurrentIC;
200
201 };
202
203
204 //{{AFX_INSERT_LOCATION}}
205 // Microsoft Developer Studio will insert additional declarations immediately before the previous line.
206
207 #endif // !defined(AFX_AISNBRISOSDIALOG_H__AAD52722_6A63_11D1_8C62_00AA00D10994__INCLUDED_)