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