0025159: Collections and common types in BVH package are named in non-conformant...
[occt.git] / samples / mfc / standard / 01_Geometry / src / GeometryDoc.h
CommitLineData
c6c9371f 1// GeometryDoc.h : interface of the CGeometryDoc class
2//
3/////////////////////////////////////////////////////////////////////////////
4
5#if !defined(AFX_VIEWERDOC_H__4EF39FBA_4EBB_11D1_8D67_0800369C8A03__INCLUDED_)
6#define AFX_VIEWERDOC_H__4EF39FBA_4EBB_11D1_8D67_0800369C8A03__INCLUDED_
7
8#if _MSC_VER >= 1000
9#pragma once
10#endif // _MSC_VER >= 1000
11
12c76bee 12#include "OCC_BaseDoc.h"
c6c9371f 13#include "ResultDialog.h"
14
15class Handle_AIS_Point;
16
12c76bee 17class CGeometryDoc : public OCC_BaseDoc
c6c9371f 18{
19public:
5c1f974e 20 void Put2DOnTop(bool isMax = true);
21 void Put3DOnTop(bool isMax = true);
22 void Fit2DViews();
23 void Set3DViewsZoom(const Quantity_Factor& Coef );
24 void Fit3DViews(Quantity_Coefficient Coef);
25 void simplify(const TopoDS_Shape& aShape);
26
27
28 static void Fit();
29
30 // 2D
31 void DragEvent2D (const Standard_Integer x ,
32 const Standard_Integer y ,
33 const Standard_Integer TheState,
34 const Handle_V3d_View& aView );
35 void InputEvent2D (const Standard_Integer x ,
36 const Standard_Integer y ,
37 const Handle_V3d_View& aView );
38 void MoveEvent2D (const Standard_Integer x ,
39 const Standard_Integer y ,
40 const Handle_V3d_View& aView );
41 void ShiftMoveEvent2D (const Standard_Integer x ,
42 const Standard_Integer y ,
43 const Handle_V3d_View& aView );
44 void ShiftDragEvent2D (const Standard_Integer x ,
45 const Standard_Integer y ,
46 const Standard_Integer TheState,
47 const Handle_V3d_View& aView );
48 void ShiftInputEvent2D (const Standard_Integer x ,
49 const Standard_Integer y ,
50 const Handle_V3d_View& aView );
51 void Popup2D (const Standard_Integer x ,
52 const Standard_Integer y ,
53 const Handle_V3d_View& aView );
54
55 Handle_AIS_InteractiveObject drawSurface
56 (const Handle_Geom_Surface& theSurface,
57 const Quantity_Color& theColor,
58 const Standard_Boolean toDisplay);
59
60 Standard_Boolean WaitForInput (unsigned long aMilliSeconds);
61 // Waits for a user input or a period of time has been elapsed
62
63 Handle_AIS_Point drawPoint (const gp_Pnt& thePnt,
64 const Quantity_Color& theColor = Quantity_Color(Quantity_NOC_GREEN),
65 const Standard_Boolean toDisplay = Standard_True);
66 // creates a presentation of the given point
67 // and displays it in the viewer if toDisplay = Standard_True
68
69 Handle_AIS_Shape drawShape (const TopoDS_Shape& theShape,
70 const Graphic3d_NameOfMaterial theMaterial = Graphic3d_NOM_BRASS,
71 const Standard_Boolean toDisplay = Standard_True);
72 // creates a presentation of the given shape with the given material
73 // (color is default for a given material)
74 // and displays it in the viewer if toDisplay = Standard_True
c6c9371f 75
76protected: // create from serialization only
5c1f974e 77 CGeometryDoc();
78 DECLARE_DYNCREATE(CGeometryDoc)
c6c9371f 79
5c1f974e 80 // Attributes
c6c9371f 81public:
82
5c1f974e 83 // Operations
c6c9371f 84public:
85
5c1f974e 86 // Overrides
87 // ClassWizard generated virtual function overrides
88 //{{AFX_VIRTUAL(CGeometryDoc)
89public:
90 virtual BOOL OnNewDocument();
91 virtual void Serialize(CArchive& ar);
92 virtual void OnCloseDocument();
93 //}}AFX_VIRTUAL
c6c9371f 94
5c1f974e 95 // Implementation
c6c9371f 96public:
5c1f974e 97 virtual ~CGeometryDoc();
c6c9371f 98#ifdef _DEBUG
5c1f974e 99 virtual void AssertValid() const;
100 virtual void Dump(CDumpContext& dc) const;
c6c9371f 101#endif
102
103protected:
104
5c1f974e 105 // Generated message map functions
c6c9371f 106protected:
5c1f974e 107 //{{AFX_MSG(CGeometryDoc)
108 afx_msg void OnWindowNew2d();
109 afx_msg void OnBUTTONTest1();
110 afx_msg void OnBUTTONTest2();
111 afx_msg void OnBUTTONTest3();
112 afx_msg void OnBUTTONTest4();
113 afx_msg void OnBUTTONTest5();
114 afx_msg void OnBUTTONTest6();
115 afx_msg void OnBUTTONTest7();
116 afx_msg void OnBUTTONTest8();
117 afx_msg void OnBUTTONTest9();
118 afx_msg void OnBUTTONTest10();
119 afx_msg void OnBUTTONTest11();
120 afx_msg void OnBUTTONTest12();
121 afx_msg void OnBUTTONTest13();
122 afx_msg void OnBUTTONTest14();
123 afx_msg void OnBUTTONTest15();
124 afx_msg void OnBUTTONTest16();
125 afx_msg void OnBUTTONTest17();
126 afx_msg void OnBUTTONTest18();
127 afx_msg void OnBUTTONTest19();
128 afx_msg void OnBUTTONTest20();
129 afx_msg void OnBUTTONTest21();
130 afx_msg void OnBUTTONTest22();
131 afx_msg void OnBUTTONTest23();
132 afx_msg void OnBUTTONTest24();
133 afx_msg void OnBUTTONTest25();
134 afx_msg void OnBUTTONTest26();
135 afx_msg void OnBUTTONTest27();
136 afx_msg void OnBUTTONTest28();
137 afx_msg void OnBUTTONTest29();
138 afx_msg void OnBUTTONTest30();
139 afx_msg void OnBUTTONTest31();
140 afx_msg void OnBUTTONTest32();
141 afx_msg void OnBUTTONTest33();
142 afx_msg void OnBUTTONTest34();
143 afx_msg void OnBUTTONTest35();
144 afx_msg void OnBUTTONTest36();
145 afx_msg void OnBUTTONTest37();
146 afx_msg void OnBUTTONTest38();
147 afx_msg void OnBUTTONTest39();
148 afx_msg void OnBUTTONTest40();
149 afx_msg void OnBUTTONTest41();
150 afx_msg void OnBUTTONTest42();
151 afx_msg void OnBUTTONTest43();
152 afx_msg void OnBUTTONTest44();
153 afx_msg void OnBUTTONTest45();
154 afx_msg void OnBUTTONTest46();
155 afx_msg void OnBUTTONTest47();
156 afx_msg void OnBUTTONTest48();
157 afx_msg void OnBUTTONTest49();
158 afx_msg void OnBUTTONTest50();
159 afx_msg void OnUpdateBUTTONTest1(CCmdUI* pCmdUI);
160 afx_msg void OnUpdateBUTTONTest2(CCmdUI* pCmdUI);
161 afx_msg void OnUpdateBUTTONTest3(CCmdUI* pCmdUI);
162 afx_msg void OnUpdateBUTTONTest4(CCmdUI* pCmdUI);
163 afx_msg void OnUpdateBUTTONTest5(CCmdUI* pCmdUI);
164 afx_msg void OnUpdateBUTTONTest6(CCmdUI* pCmdUI);
165 afx_msg void OnUpdateBUTTONTest7(CCmdUI* pCmdUI);
166 afx_msg void OnUpdateBUTTONTest8(CCmdUI* pCmdUI);
167 afx_msg void OnUpdateBUTTONTest9(CCmdUI* pCmdUI);
168 afx_msg void OnUpdateBUTTONTest10(CCmdUI* pCmdUI);
169 afx_msg void OnUpdateBUTTONTest11(CCmdUI* pCmdUI);
170 afx_msg void OnUpdateBUTTONTest12(CCmdUI* pCmdUI);
171 afx_msg void OnUpdateBUTTONTest13(CCmdUI* pCmdUI);
172 afx_msg void OnUpdateBUTTONTest14(CCmdUI* pCmdUI);
173 afx_msg void OnUpdateBUTTONTest15(CCmdUI* pCmdUI);
174 afx_msg void OnUpdateBUTTONTest16(CCmdUI* pCmdUI);
175 afx_msg void OnUpdateBUTTONTest17(CCmdUI* pCmdUI);
176 afx_msg void OnUpdateBUTTONTest18(CCmdUI* pCmdUI);
177 afx_msg void OnUpdateBUTTONTest19(CCmdUI* pCmdUI);
178 afx_msg void OnUpdateBUTTONTest20(CCmdUI* pCmdUI);
179 afx_msg void OnUpdateBUTTONTest21(CCmdUI* pCmdUI);
180 afx_msg void OnUpdateBUTTONTest22(CCmdUI* pCmdUI);
181 afx_msg void OnUpdateBUTTONTest23(CCmdUI* pCmdUI);
182 afx_msg void OnUpdateBUTTONTest24(CCmdUI* pCmdUI);
183 afx_msg void OnUpdateBUTTONTest25(CCmdUI* pCmdUI);
184 afx_msg void OnUpdateBUTTONTest26(CCmdUI* pCmdUI);
185 afx_msg void OnUpdateBUTTONTest27(CCmdUI* pCmdUI);
186 afx_msg void OnUpdateBUTTONTest28(CCmdUI* pCmdUI);
187 afx_msg void OnUpdateBUTTONTest29(CCmdUI* pCmdUI);
188 afx_msg void OnUpdateBUTTONTest30(CCmdUI* pCmdUI);
189 afx_msg void OnUpdateBUTTONTest31(CCmdUI* pCmdUI);
190 afx_msg void OnUpdateBUTTONTest32(CCmdUI* pCmdUI);
191 afx_msg void OnUpdateBUTTONTest33(CCmdUI* pCmdUI);
192 afx_msg void OnUpdateBUTTONTest34(CCmdUI* pCmdUI);
193 afx_msg void OnUpdateBUTTONTest35(CCmdUI* pCmdUI);
194 afx_msg void OnUpdateBUTTONTest36(CCmdUI* pCmdUI);
195 afx_msg void OnUpdateBUTTONTest37(CCmdUI* pCmdUI);
196 afx_msg void OnUpdateBUTTONTest38(CCmdUI* pCmdUI);
197 afx_msg void OnUpdateBUTTONTest39(CCmdUI* pCmdUI);
198 afx_msg void OnUpdateBUTTONTest40(CCmdUI* pCmdUI);
199 afx_msg void OnUpdateBUTTONTest41(CCmdUI* pCmdUI);
200 afx_msg void OnUpdateBUTTONTest42(CCmdUI* pCmdUI);
201 afx_msg void OnUpdateBUTTONTest43(CCmdUI* pCmdUI);
202 afx_msg void OnUpdateBUTTONTest44(CCmdUI* pCmdUI);
203 afx_msg void OnUpdateBUTTONTest45(CCmdUI* pCmdUI);
204 afx_msg void OnUpdateBUTTONTest46(CCmdUI* pCmdUI);
205 afx_msg void OnUpdateBUTTONTest47(CCmdUI* pCmdUI);
206 afx_msg void OnUpdateBUTTONTest48(CCmdUI* pCmdUI);
207 afx_msg void OnUpdateBUTTONTest49(CCmdUI* pCmdUI);
208 afx_msg void OnUpdateBUTTONTest50(CCmdUI* pCmdUI);
209 afx_msg void OnCreateSol();
210 afx_msg void OnSimplify();
211 //}}AFX_MSG
212 DECLARE_MESSAGE_MAP()
c6c9371f 213
c6c9371f 214private:
5c1f974e 215 Handle_V3d_Viewer myViewer2D;
216 Handle_AIS_InteractiveContext myAISContext2D;
12c76bee 217
218public:
5c1f974e 219 int Current;
220 void Minimize3D();
221 void Minimize2D();
12c76bee 222 Handle_V3d_Viewer GetViewer2D() { return myViewer2D; };
223 Handle_AIS_InteractiveContext& GetISessionContext() { return myAISContext2D; };
5c1f974e 224 BOOL FitMode;
c6c9371f 225
226public :
5c1f974e 227 CResultDialog myCResultDialog;
c6c9371f 228
229};
230
231/////////////////////////////////////////////////////////////////////////////
232
233#endif // !defined(AFX_VIEWERDOC_H__4EF39FBA_4EBB_11D1_8D67_0800369C8A03__INCLUDED_)