0032709: Samples, MFC - remove samples Viewer2d, Viewer3d, Ocaf, Triangulation, Anima...
[occt.git] / samples / mfc / standard / 09_Animation / src / StdAfx.h
1 // stdafx.h : include file for standard system include files,
2 //  or project specific include files that are used frequently, but
3 //      are changed infrequently
4 //
5
6 #if !defined(AFX_STDAFX_H__79840E80_1001_11D2_B8C1_0000F87A77C1__INCLUDED_)
7 #define AFX_STDAFX_H__79840E80_1001_11D2_B8C1_0000F87A77C1__INCLUDED_
8
9 #if _MSC_VER >= 1000
10 #pragma once
11 #endif // _MSC_VER >= 1000
12
13 #define VC_EXTRALEAN            // Exclude rarely-used stuff from Windows headers
14
15 #include <afxwin.h>         // MFC core and standard components
16 #include <afxext.h>         // MFC extensions
17 #include <afxdisp.h>        // MFC OLE automation classes
18 #ifndef _AFX_NO_AFXCMN_SUPPORT
19 #include <afxcmn.h>                     // MFC support for Windows Common Controls
20 #endif // _AFX_NO_AFXCMN_SUPPORT
21
22
23
24 // CasCade :
25
26 enum CurrentAction3d { 
27   CurAction3d_Nothing,
28   CurAction3d_DynamicZooming,
29   CurAction3d_WindowZooming,
30   CurAction3d_DynamicPanning,
31   CurAction3d_GlobalPanning,
32   CurAction3d_DynamicRotation
33 };
34
35
36 #define DEFAULT_DEVIATIONCOEFFICIENT 0.001
37 #define DEFAULT_DCBIG 0.005
38 #define DEFAULT_DCVBIG 0.01
39 #define DEFAULT_DCSMALL 0.0002
40 #define DEFAULT_DCVSMALL 0.00004
41 #define DEFAULT_COLOR Quantity_NOC_CYAN1
42 #define DEFAULT_MATERIAL Graphic3d_NameOfMaterial_Plastered
43 #define DEFAULT_BACKGROUNDCOLOR Quantity_NOC_MATRAGRAY
44 #define DEFAULT_HILIGHTCOLOR Quantity_NOC_YELLOW
45
46 #pragma warning(  disable : 4244 )        // Issue warning 4244
47 #include <Standard_ShortReal.hxx>
48 #pragma warning(  default : 4244 )        // Issue warning 4244
49
50 #include <Standard.hxx>
51 /*
52 #ifndef Version15B
53 # ifndef Version15D
54 #  ifndef Version20
55 #   define Version15B
56 #  endif // Version20
57 # endif // Version15D
58 #endif // Version15B
59
60 #pragma message ("=============================")
61 #ifdef Version15B
62 # pragma message ("Set the libs for version 1.5B")
63 #endif // Version15B
64
65 #ifdef Version15D
66 # pragma message ("Set the libs for version 1.5D")
67 #endif // Version15D
68
69 #ifdef Version20
70 # pragma message ("Set the libs for version 2.0 ")
71 #endif // Version20
72 #pragma message ("=============================")
73
74 #ifdef Version15B
75 # pragma comment (lib,"TKTop.lib")
76 # pragma comment (lib,"TShort.lib")
77 # pragma comment (lib,"TColQuantity.lib")
78 #endif
79
80 #ifdef Version15D
81 # pragma comment (lib,"TKTop.lib")
82 #endif
83
84 #ifdef Version20
85 # pragma comment (lib,"TKTop1.lib")
86 # pragma comment (lib,"TKTop2.lib")
87 #endif
88
89 #pragma message ("Set the specific libs for the application")
90 # pragma comment (lib,"TKPrs.lib")
91 # pragma comment (lib,"TKGeom.lib")
92 # pragma comment (lib,"TKGlt.lib")
93 # pragma comment (lib,"TKGraphic.lib")
94 # pragma comment (lib,"TKPrsMgr.lib")
95 # pragma comment (lib,"TKViewers.lib")
96 # pragma comment (lib,"TKSession.lib")
97 # pragma comment (lib,"gp.lib")
98 # pragma comment (lib,"TKernel.lib")
99 # pragma comment (lib,"UnitsAPI.lib")
100 # pragma comment (lib,"PTColStd.lib")
101 # pragma comment (lib,"TKMgtShape.lib")
102 # pragma comment (lib,"TKPShape.lib")
103 # pragma comment (lib,"ShapeSchema.lib")
104 # pragma comment (lib,"FSD.lib")
105 # pragma comment (lib,"OSDriver.lib")
106 # pragma comment (lib,"ObjMgt.lib")
107 # pragma comment (lib,"TKXSBase.lib")
108 # pragma comment (lib,"TKXSIGES.lib")
109 # pragma comment (lib,"TKXS214.lib")
110 */
111
112  
113 #include <AIS_InteractiveContext.hxx>
114 #include <AIS_InteractiveObject.hxx>
115 #include <AIS_Shape.hxx>
116 #include <AIS_Trihedron.hxx>
117
118 #include <Aspect_Background.hxx>
119 #include <Aspect_TypeOfline.hxx>
120 #include <Aspect_WidthOfline.hxx>
121 #include <Bnd_Box2d.hxx>
122 #include <BndLib_Add2dCurve.hxx>
123 #include <BRep_Builder.hxx>
124 #include <BRepBuilderAPI.hxx>
125 #include <BRepTools.hxx>
126 #include <Standard_DefineHandle.hxx>
127 #include <DsgPrs_LengthPresentation.hxx>
128 #include <GCE2d_MakeSegment.hxx>
129 #include <GCPnts_TangentialDeflection.hxx>
130 #include <Geom_CartesianPoint.hxx>
131 #include <Geom_Axis2Placement.hxx>
132 #include <Geom2d_BezierCurve.hxx>
133 #include <Geom2d_BSplineCurve.hxx>
134 #include <Geom2d_Curve.hxx>
135 #include <Geom2d_TrimmedCurve.hxx>
136 #include <Geom2dAdaptor_Curve.hxx>
137 #include <GeomAbs_CurveType.hxx>
138 #include <GeomAdaptor_Curve.hxx>
139 #include <GeomTools_Curve2dSet.hxx>
140 #include <gp_Ax2d.hxx>
141 #include <gp_Circ2d.hxx>
142 #include <gp_Dir2d.hxx>
143 #include <gp_Lin2d.hxx>
144 #include <gp_Pnt2d.hxx>
145 #include <gp_Vec.hxx>
146 #include <gp_Vec2d.hxx>
147 #include <OSD_Environment.hxx>
148 #include <Precision.hxx>
149 #include <Prs3d_Drawer.hxx>
150 #include <Prs3d_IsoAspect.hxx>
151 #include <Prs3d_LineAspect.hxx>
152 #include <Prs3d_Text.hxx>
153 #include <Quantity_NameOfColor.hxx>
154 #include <Quantity_TypeOfColor.hxx>
155 #include <SelectMgr_EntityOwner.hxx>
156 #include <SelectMgr_SelectableObject.hxx>
157 #include <SelectMgr_Selection.hxx>
158 #include <SelectMgr_SelectionManager.hxx>
159 // had for opencascade
160 //#include <Session_Selection.hxx>
161 //#include <Session_Session.hxx>
162 //#include <ShapeSchema.hxx>
163
164 #include <Standard_Boolean.hxx>
165 #include <Standard_CString.hxx>
166 #include <Standard_ErrorHandler.hxx>
167 #include <Standard_Integer.hxx>
168 #include <Standard_IStream.hxx>
169 #include <Standard_Macro.hxx>
170 #include <Standard_NotImplemented.hxx>
171 #include <Standard_OStream.hxx>
172 #include <Standard_Real.hxx>
173 #include <StdPrs_Curve.hxx>
174 #include <StdPrs_Point.hxx>
175 #include <StdPrs_PoleCurve.hxx>
176 #include <TCollection_AsciiString.hxx>
177 #include <TColgp_Array1OfPnt2d.hxx>
178 #include <TColgp_HArray1OfPnt2d.hxx>
179 #include <TCollection_AsciiString.hxx>
180 #include <TColStd_HSequenceOfTransient.hxx>
181 #include <TColStd_MapIteratorOfMapOfTransient.hxx>
182 #include <TColStd_MapOfTransient.hxx>
183 #include <TopExp_Explorer.hxx>
184 #include <TopoDS.hxx>
185 #include <TopoDS_Compound.hxx>
186 #include <TopoDS_ListIteratorOfListOfShape.hxx>
187 #include <TopoDS_Shape.hxx>
188 #include <TopoDS_Solid.hxx>
189 #include <TopTools_HSequenceOfShape.hxx>
190 #include <UnitsAPI.hxx>
191 #include <V3d_View.hxx>
192 #include <V3d_Viewer.hxx>
193 #include <WNT_Window.hxx>
194 #include "HLRAlgo_Projector.hxx"
195
196 #include <Geom_BSplineSurface.hxx>
197 #include <TopoDS_Face.hxx>
198 #include <TopoDS_Solid.hxx>
199 #include <GeomAdaptor_Surface.hxx>
200 #include <BndLib_AddSurface.hxx>
201 #include <BRepPrimAPI_MakeBox.hxx>
202 #include <BRepBuilderAPI_MakeFace.hxx>
203 #include <BRepBndLib.hxx>
204
205 #include "..\res\resource.h"
206
207 //End CasCade
208
209
210
211 //{{AFX_INSERT_LOCATION}}
212 // Microsoft Developer Studio will insert additional declarations immediately before the previous line.
213
214 #endif // !defined(AFX_STDAFX_H__79840E80_1001_11D2_B8C1_0000F87A77C1__INCLUDED_)