4a3b5ed00d2b876b484b4bf9dbd4e25385f4fe13
[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 #if !defined(WNT)
27    #error WNT precompiler directive is mandatory for CasCade 
28 #endif
29 #if !defined(CSFDB)
30    #error CSFDB precompiler directive is mandatory for CasCade 
31 #endif
32
33 enum CurrentAction3d { 
34   CurAction3d_Nothing,
35   CurAction3d_DynamicZooming,
36   CurAction3d_WindowZooming,
37   CurAction3d_DynamicPanning,
38   CurAction3d_GlobalPanning,
39   CurAction3d_DynamicRotation
40 };
41
42
43 #define DEFAULT_DEVIATIONCOEFFICIENT 0.001
44 #define DEFAULT_DCBIG 0.005
45 #define DEFAULT_DCVBIG 0.01
46 #define DEFAULT_DCSMALL 0.0002
47 #define DEFAULT_DCVSMALL 0.00004
48 #define DEFAULT_COLOR Quantity_NOC_CYAN1
49 #define DEFAULT_MATERIAL Graphic3d_NOM_PLASTER
50 #define DEFAULT_BACKGROUNDCOLOR Quantity_NOC_MATRAGRAY
51 #define DEFAULT_HILIGHTCOLOR Quantity_NOC_YELLOW
52
53 #pragma warning(  disable : 4244 )        // Issue warning 4244
54 #include <Standard_ShortReal.hxx>
55 #pragma warning(  default : 4244 )        // Issue warning 4244
56
57 #include <Standard.hxx>
58 /*
59 #ifndef Version15B
60 # ifndef Version15D
61 #  ifndef Version20
62 #   define Version15B
63 #  endif // Version20
64 # endif // Version15D
65 #endif // Version15B
66
67 #pragma message ("=============================")
68 #ifdef Version15B
69 # pragma message ("Set the libs for version 1.5B")
70 #endif // Version15B
71
72 #ifdef Version15D
73 # pragma message ("Set the libs for version 1.5D")
74 #endif // Version15D
75
76 #ifdef Version20
77 # pragma message ("Set the libs for version 2.0 ")
78 #endif // Version20
79 #pragma message ("=============================")
80
81 #ifdef Version15B
82 # pragma comment (lib,"TKTop.lib")
83 # pragma comment (lib,"TShort.lib")
84 # pragma comment (lib,"TColQuantity.lib")
85 #endif
86
87 #ifdef Version15D
88 # pragma comment (lib,"TKTop.lib")
89 #endif
90
91 #ifdef Version20
92 # pragma comment (lib,"TKTop1.lib")
93 # pragma comment (lib,"TKTop2.lib")
94 #endif
95
96 #pragma message ("Set the specific libs for the application")
97 # pragma comment (lib,"TKPrs.lib")
98 # pragma comment (lib,"TKGeom.lib")
99 # pragma comment (lib,"TKGlt.lib")
100 # pragma comment (lib,"TKGraphic.lib")
101 # pragma comment (lib,"TKPrsMgr.lib")
102 # pragma comment (lib,"TKViewers.lib")
103 # pragma comment (lib,"TKSession.lib")
104 # pragma comment (lib,"gp.lib")
105 # pragma comment (lib,"TKernel.lib")
106 # pragma comment (lib,"UnitsAPI.lib")
107 # pragma comment (lib,"PTColStd.lib")
108 # pragma comment (lib,"TKMgtShape.lib")
109 # pragma comment (lib,"TKPShape.lib")
110 # pragma comment (lib,"ShapeSchema.lib")
111 # pragma comment (lib,"FSD.lib")
112 # pragma comment (lib,"OSDriver.lib")
113 # pragma comment (lib,"ObjMgt.lib")
114 # pragma comment (lib,"TKXSBase.lib")
115 # pragma comment (lib,"TKXSIGES.lib")
116 # pragma comment (lib,"TKXS214.lib")
117 */
118
119  
120 #include <AIS_Drawer.hxx>
121 #include <AIS_InteractiveContext.hxx>
122 #include <AIS_InteractiveObject.hxx>
123 #include <AIS_Shape.hxx>
124 #include <AIS_Trihedron.hxx>
125
126 #include <Aspect_Background.hxx>
127 #include <Aspect_TypeOfline.hxx>
128 #include <Aspect_WidthOfline.hxx>
129 #include <Bnd_Box2d.hxx>
130 #include <BndLib_Add2dCurve.hxx>
131 #include <BRep_Builder.hxx>
132 #include <BRepBuilderAPI.hxx>
133 #include <BRepTools.hxx>
134 #include <Standard_DefineHandle.hxx>
135 #include <DsgPrs_LengthPresentation.hxx>
136 #include <GCE2d_MakeSegment.hxx>
137 #include <GCPnts_TangentialDeflection.hxx>
138 #include <Geom_CartesianPoint.hxx>
139 #include <Geom_Axis2Placement.hxx>
140 #include <Geom2d_BezierCurve.hxx>
141 #include <Geom2d_BSplineCurve.hxx>
142 #include <Geom2d_Curve.hxx>
143 #include <Geom2d_TrimmedCurve.hxx>
144 #include <Geom2dAdaptor_Curve.hxx>
145 #include <GeomAbs_CurveType.hxx>
146 #include <GeomAdaptor_Curve.hxx>
147 #include <GeomTools_Curve2dSet.hxx>
148 #include <gp_Ax2d.hxx>
149 #include <gp_Circ2d.hxx>
150 #include <gp_Dir2d.hxx>
151 #include <gp_Lin2d.hxx>
152 #include <gp_Pnt2d.hxx>
153 #include <gp_Vec.hxx>
154 #include <gp_Vec2d.hxx>
155 #include <MMgt_TShared.hxx>
156 #include <OSD_Environment.hxx>
157 #include <Precision.hxx>
158 #include <Prs3d_IsoAspect.hxx>
159 #include <Prs3d_LineAspect.hxx>
160 #include <Prs3d_Text.hxx>
161 #include <Quantity_Factor.hxx>
162 #include <Quantity_Length.hxx>
163 #include <Quantity_NameOfColor.hxx>
164 #include <Quantity_PhysicalQuantity.hxx>
165 #include <Quantity_PlaneAngle.hxx>
166 #include <Quantity_TypeOfColor.hxx>
167 #include <SelectBasics_BasicTool.hxx>
168 #include <SelectBasics_ListOfBox2d.hxx>
169 #include <SelectMgr_EntityOwner.hxx>
170 #include <SelectMgr_SelectableObject.hxx>
171 #include <SelectMgr_Selection.hxx>
172 #include <SelectMgr_SelectionManager.hxx>
173 // had for opencascade
174 //#include <Session_Selection.hxx>
175 //#include <Session_Session.hxx>
176 //#include <ShapeSchema.hxx>
177
178 #include <Standard_Boolean.hxx>
179 #include <Standard_CString.hxx>
180 #include <Standard_ErrorHandler.hxx>
181 #include <Standard_Integer.hxx>
182 #include <Standard_IStream.hxx>
183 #include <Standard_Macro.hxx>
184 #include <Standard_NotImplemented.hxx>
185 #include <Standard_OStream.hxx>
186 #include <Standard_Real.hxx>
187 #include <StdPrs_Curve.hxx>
188 #include <StdPrs_Point.hxx>
189 #include <StdPrs_PoleCurve.hxx>
190 #include <TCollection_AsciiString.hxx>
191 #include <TColgp_Array1OfPnt2d.hxx>
192 #include <TColgp_HArray1OfPnt2d.hxx>
193 #include <TCollection_AsciiString.hxx>
194 #include <TColStd_HSequenceOfTransient.hxx>
195 #include <TColStd_MapIteratorOfMapOfTransient.hxx>
196 #include <TColStd_MapOfTransient.hxx>
197 #include <TopExp_Explorer.hxx>
198 #include <TopoDS.hxx>
199 #include <TopoDS_Compound.hxx>
200 #include <TopoDS_ListIteratorOfListOfShape.hxx>
201 #include <TopoDS_Shape.hxx>
202 #include <TopoDS_Solid.hxx>
203 #include <TopTools_HSequenceOfShape.hxx>
204 #include <UnitsAPI.hxx>
205 #include <V3d_View.hxx>
206 #include <V3d_Viewer.hxx>
207 #include <WNT_Window.hxx>
208 #include "HLRAlgo_Projector.hxx"
209
210 #include <Geom_BSplineSurface.hxx>
211 #include <TopoDS_Face.hxx>
212 #include <TopoDS_Solid.hxx>
213 #include <GeomAdaptor_Surface.hxx>
214 #include <BndLib_AddSurface.hxx>
215 #include <BRepPrimAPI_MakeBox.hxx>
216 #include <BRepBuilderAPI_MakeFace.hxx>
217 #include <BRepBndLib.hxx>
218
219 #include "..\res\resource.h"
220
221 //End CasCade
222
223
224
225 //{{AFX_INSERT_LOCATION}}
226 // Microsoft Developer Studio will insert additional declarations immediately before the previous line.
227
228 #endif // !defined(AFX_STDAFX_H__79840E80_1001_11D2_B8C1_0000F87A77C1__INCLUDED_)