0024623: Visualization - improve selection mechanism
[occt.git] / samples / mfc / standard / 03_Viewer2d / src / StdAfx.h
CommitLineData
7fd59977 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 _MSC_VER >= 1000
7#pragma once
8#endif // _MSC_VER >= 1000
9
10#define VC_EXTRALEAN // Exclude rarely-used stuff from Windows headers
11
12#include <afxwin.h> // MFC core and standard components
13#include <afxext.h> // MFC extensions
14#include <afxdisp.h> // MFC OLE automation classes
15#ifndef _AFX_NO_AFXCMN_SUPPORT
16#include <afxcmn.h> // MFC support for Windows Common Controls
17#endif // _AFX_NO_AFXCMN_SUPPORT
18
19#if !defined(WNT)
20 #error WNT precompiler directive is mandatory for CasCade
21#endif
22#pragma warning( disable : 4244 ) // Issue warning 4244
23#include "Standard_ShortReal.hxx"
24#pragma warning( default : 4244 ) // Issue warning 4244
25
26#include <Standard.hxx>
27/*
28#ifndef Version15B
29# ifndef Version15D
30# ifndef Version20
31# define Version15B
32# endif // Version20
33# endif // Version15D
34#endif // Version15B
35
36#pragma message ("=============================")
37#ifdef Version15B
38# pragma message ("Set the libs for version 1.5B")
39#endif // Version15B
40
41#ifdef Version15D
42# pragma message ("Set the libs for version 1.5D")
43#endif // Version15D
44
45#ifdef Version20
46# pragma message ("Set the libs for version 2.0 ")
47#endif // Version20
48#pragma message ("=============================")
49
50#ifdef Version15B
51# pragma comment (lib,"TKTop.lib")
52# pragma comment (lib,"TShort.lib")
53# pragma comment (lib,"TColQuantity.lib")
54#endif
55
56#ifdef Version15D
57# pragma comment (lib,"TKTop.lib")
58#endif
59
60#ifdef Version20
61# pragma comment (lib,"TKTop1.lib")
62# pragma comment (lib,"TKTop2.lib")
63#endif
64
65#pragma message ("Set the specific libs for the application")
66# pragma comment (lib,"TKGeom.lib")
67# pragma comment (lib,"TKGlt.lib")
68# pragma comment (lib,"TKGraphic.lib")
69# pragma comment (lib,"TKPrsMgr.lib")
70# pragma comment (lib,"TKViewers.lib")
71# pragma comment (lib,"gp.lib")
72# pragma comment (lib,"TKernel.lib")
73*/
74
5c1f974e 75#include <AIS_Circle.hxx>
76#include <AIS_Line.hxx>
77#include <AIS_InteractiveContext.hxx>
78#include <AIS_InteractiveObject.hxx>
79#include <AIS_LocalContext.hxx>
80#include <AIS_TexturedShape.hxx>
81
5c1f974e 82#include <Aspect_TypeOfline.hxx>
83#include <Aspect_WidthOfline.hxx>
5c1f974e 84#include <Aspect_Background.hxx>
7fd59977 85
5c1f974e 86#include <BRepPrimAPI_MakeBox.hxx>
87#include <BRep_Builder.hxx>
88#include <BRepBuilderAPI_MakeEdge.hxx>
89#include <BRepBuilderAPI_MakeWire.hxx>
90#include <BRepBuilderAPI_MakeFace.hxx>
91#include <BRepTools.hxx>
7fd59977 92#include <Bnd_Box2d.hxx>
93#include <BndLib_Add2dCurve.hxx>
7fd59977 94
5c1f974e 95#include <GCE2d_MakeSegment.hxx>
96#include <GCPnts_TangentialDeflection.hxx>
97#include <Geom2d_Curve.hxx>
98#include <Geom_CartesianPoint.hxx>
99#include <Geom_Circle.hxx>
100#include <Geom_Curve.hxx>
101#include <Geom_Line.hxx>
7fd59977 102#include <Geom2d_Curve.hxx>
7fd59977 103#include <Geom2d_TrimmedCurve.hxx>
5c1f974e 104#include <Geom2dAdaptor_Curve.hxx>
105#include <GeomTools_Curve2dSet.hxx>
106#include <Graphic3d_AspectText3d.hxx>
107#include <Graphic3d_Group.hxx>
108#include <Graphic3d_AspectMarker3d.hxx>
109#include <Graphic3d_StructureManager.hxx>
110#include <Graphic3d_Texture1Dsegment.hxx>
111#include <gp_Ax2d.hxx>
112#include <gp_Circ.hxx>
113#include <gp_Circ2d.hxx>
114#include <gp_Dir2d.hxx>
115#include <gp_Lin2d.hxx>
116#include <gp_Pln.hxx>
7fd59977 117#include <gp_Pnt2d.hxx>
7fd59977 118#include <gp_Vec2d.hxx>
5c1f974e 119#include <HLRAlgo_Projector.hxx>
120#include <MMgt_TShared.hxx>
7fd59977 121#include <OSD_Environment.hxx>
5c1f974e 122#include <Precision.hxx>
6262338c 123#include <Prs3d_Drawer.hxx>
5c1f974e 124#include <Prs3d_LineAspect.hxx>
125#include <Prs3d_PlaneAspect.hxx>
126#include <Prs3d_Presentation.hxx>
127#include <Quantity_Factor.hxx>
7fd59977 128#include <Quantity_Length.hxx>
5c1f974e 129#include <Quantity_PlaneAngle.hxx>
5c1f974e 130#include <SelectMgr_EntityOwner.hxx>
131#include <SelectMgr_Selection.hxx>
7fd59977 132#include <SelectMgr_SelectableObject.hxx>
5c1f974e 133#include <SelectMgr_SelectionManager.hxx>
134#include <Standard_ErrorHandler.hxx>
135#include <Standard_Real.hxx>
136#include <Standard_Integer.hxx>
137#include <SelectMgr_Selection.hxx>
7fd59977 138#include <Standard_OStream.hxx>
139#include <Standard_IStream.hxx>
140#include <Standard_CString.hxx>
7fd59977 141#include <Standard_Boolean.hxx>
142#include <Standard_Real.hxx>
7fd59977 143#include <Standard_OStream.hxx>
144#include <Standard_IStream.hxx>
145#include <Standard_CString.hxx>
7fd59977 146#include <TCollection_AsciiString.hxx>
5c1f974e 147#include <TColgp_Array1OfPnt2d.hxx>
148#include <TColgp_HArray1OfPnt2d.hxx>
149#include <TopoDS_Shape.hxx>
150#include <TopoDS.hxx>
151#include <Visual3d_ViewManager.hxx>
152#include <V3d_View.hxx>
153#include <V3d_Viewer.hxx>
154#include <WNT_Window.hxx>
7fd59977 155
5c1f974e 156#include <..\res\resource.h>
7fd59977 157
5c1f974e 158class ISession2D_InteractiveObject;
7fd59977 159
5c1f974e 160class V3d_Viewer;
161class SelectMgr_SelectableObject;
162class TCollection_AsciiString;
163class SelectBasics_EntityOwner;
164class gp_Pnt2d;
7fd59977 165
166//{{AFX_INSERT_LOCATION}}
167// Microsoft Developer Studio will insert additional declarations immediately before the previous line.
168