7fd59977 |
1 | // File generated by CPPExt (Value) |
2 | // Copyright (C) 1991,1995 by |
3 | // |
4 | // MATRA DATAVISION, FRANCE |
5 | // |
6 | // This software is furnished in accordance with the terms and conditions |
7 | // of the contract and with the inclusion of the above copyright notice. |
8 | // This software or any other copy thereof may not be provided or otherwise |
9 | // be made available to any other person. No title to an ownership of the |
10 | // software is hereby transferred. |
11 | // |
12 | // At the termination of the contract, the software and all copies of this |
13 | // software must be deleted. |
14 | |
15 | #ifndef _SampleHLRPackage_HeaderFile |
16 | #define _SampleHLRPackage_HeaderFile |
17 | |
18 | #ifndef _Handle_V3d_Viewer_HeaderFile |
19 | #include <Handle_V3d_Viewer.hxx> |
20 | #endif |
21 | #ifndef _Standard_ExtString_HeaderFile |
22 | #include <Standard_ExtString.hxx> |
23 | #endif |
24 | #ifndef _Handle_V3d_View_HeaderFile |
25 | #include <Handle_V3d_View.hxx> |
26 | #endif |
27 | #ifndef _Standard_Integer_HeaderFile |
28 | #include <Standard_Integer.hxx> |
29 | #endif |
30 | #ifndef _Handle_V2d_Viewer_HeaderFile |
31 | #include <Handle_V2d_Viewer.hxx> |
32 | #endif |
33 | #ifndef _Handle_V2d_View_HeaderFile |
34 | #include <Handle_V2d_View.hxx> |
35 | #endif |
36 | #ifndef _Handle_AIS_InteractiveContext_HeaderFile |
37 | #include <Handle_AIS_InteractiveContext.hxx> |
38 | #endif |
39 | #ifndef _Standard_Boolean_HeaderFile |
40 | #include <Standard_Boolean.hxx> |
41 | #endif |
42 | #ifndef _Handle_ISession2D_InteractiveContext_HeaderFile |
43 | #include <Handle_ISession2D_InteractiveContext.hxx> |
44 | #endif |
45 | #ifndef _Standard_CString_HeaderFile |
46 | #include <Standard_CString.hxx> |
47 | #endif |
48 | class V3d_Viewer; |
49 | class V3d_View; |
50 | class V2d_Viewer; |
51 | class V2d_View; |
52 | class AIS_InteractiveContext; |
53 | class ISession2D_InteractiveContext; |
54 | |
55 | |
56 | #ifndef _Standard_HeaderFile |
57 | #include <Standard.hxx> |
58 | #endif |
59 | #ifndef _Standard_Macro_HeaderFile |
60 | #include <Standard_Macro.hxx> |
61 | #endif |
62 | |
63 | class SampleHLRPackage { |
64 | |
65 | public: |
66 | |
67 | void* operator new(size_t,void* anAddress) |
68 | { |
69 | return anAddress; |
70 | } |
71 | void* operator new(size_t size) |
72 | { |
73 | return Standard::Allocate(size); |
74 | } |
75 | void operator delete(void *anAddress) |
76 | { |
77 | if (anAddress) Standard::Free((Standard_Address&)anAddress); |
78 | } |
79 | // Methods PUBLIC |
80 | // |
81 | Standard_EXPORT static Handle_V3d_Viewer CreateViewer3d(const Standard_ExtString aName) ; |
82 | Standard_EXPORT static void SetWindow3d(const Handle(V3d_View)& aView,const Standard_Integer hiwin,const Standard_Integer lowin) ; |
83 | Standard_EXPORT static Handle_V2d_Viewer CreateViewer2d(const Standard_ExtString aName) ; |
84 | Standard_EXPORT static Handle_V2d_View CreateView2d(const Handle(V2d_Viewer)& aViewer,const Standard_Integer hiwin,const Standard_Integer lowin) ; |
85 | Standard_EXPORT static void InitMaps(const Handle(V2d_Viewer)& aViewer) ; |
86 | Standard_EXPORT static void DisplayTrihedron(const Handle(AIS_InteractiveContext)& aContext) ; |
87 | Standard_EXPORT static Standard_Boolean GetShapes(const Handle(AIS_InteractiveContext)& aSrcContext,const Handle(AIS_InteractiveContext)& aDestContext) ; |
88 | Standard_EXPORT static void Apply(const Handle(ISession2D_InteractiveContext)& aContext2d,const Standard_Integer aDisplayMode) ; |
89 | Standard_EXPORT static void UpdateProjector(const Handle(V3d_View)& aView) ; |
90 | Standard_EXPORT static void SetNbIsos(const Standard_Integer aNbIsos) ; |
91 | Standard_EXPORT static Standard_Boolean ReadBRep(const Standard_CString aFileName,const Handle(AIS_InteractiveContext)& aContext) ; |
92 | Standard_EXPORT static Standard_Boolean SaveBRep(const Standard_CString aFileName,const Handle(AIS_InteractiveContext)& aContext) ; |
93 | Standard_EXPORT static Standard_Boolean SaveImage(const Standard_CString aFileName,const Standard_CString aFormat,const Handle(V3d_View)& aView) ; |
94 | Standard_EXPORT static Standard_Boolean SaveImage(const Standard_CString aFileName,const Standard_CString aFormat,const Handle(V2d_View)& aView) ; |
95 | |
96 | |
97 | |
98 | |
99 | |
100 | protected: |
101 | |
102 | // Methods PROTECTED |
103 | // |
104 | |
105 | |
106 | // Fields PROTECTED |
107 | // |
108 | |
109 | |
110 | private: |
111 | |
112 | // Methods PRIVATE |
113 | // |
114 | |
115 | |
116 | // Fields PRIVATE |
117 | // |
118 | |
119 | |
120 | }; |
121 | |
122 | |
123 | |
124 | |
125 | |
126 | // other Inline functions and methods (like "C++: function call" methods) |
127 | // |
128 | |
129 | |
130 | #endif |