0031668: Visualization - WebGL sample doesn't work on Emscripten 1.39
[occt.git] / src / ShapeExtend / ShapeExtend.hxx
1 // Created on: 1998-07-21
2 // Created by: data exchange team
3 // Copyright (c) 1998-1999 Matra Datavision
4 // Copyright (c) 1999-2014 OPEN CASCADE SAS
5 //
6 // This file is part of Open CASCADE Technology software library.
7 //
8 // This library is free software; you can redistribute it and/or modify it under
9 // the terms of the GNU Lesser General Public License version 2.1 as published
10 // by the Free Software Foundation, with special exception defined in the file
11 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
12 // distribution for complete text of the license and disclaimer of any warranty.
13 //
14 // Alternatively, this file may be used under the terms of Open CASCADE
15 // commercial license or contractual agreement.
16
17 #ifndef _ShapeExtend_HeaderFile
18 #define _ShapeExtend_HeaderFile
19
20 #include <Standard.hxx>
21 #include <Standard_DefineAlloc.hxx>
22 #include <Standard_Handle.hxx>
23
24 #include <Standard_Integer.hxx>
25 #include <ShapeExtend_Status.hxx>
26 #include <Standard_Boolean.hxx>
27 class ShapeExtend_ComplexCurve;
28 class ShapeExtend_CompositeSurface;
29 class ShapeExtend_WireData;
30 class ShapeExtend_BasicMsgRegistrator;
31 class ShapeExtend_MsgRegistrator;
32 class ShapeExtend_Explorer;
33
34
35 //! This package provides general tools and data structures common
36 //! for other packages in SHAPEWORKS and extending CAS.CADE
37 //! structures.
38 //! The following items are provided by this package:
39 //! - enumeration Status used for coding status flags in methods
40 //! inside the SHAPEWORKS
41 //! - enumeration Parametrisation used for setting global parametrisation
42 //! on the composite surface
43 //! - class CompositeSurface representing a composite surface
44 //! made of a grid of surface patches
45 //! - class WireData representing a wire in the form of ordered
46 //! list of edges
47 //! - class MsgRegistrator for attaching messages to the objects
48 //! - tools for exploring the shapes
49 //! -       tools for creating       new shapes.
50 class ShapeExtend 
51 {
52 public:
53
54   DEFINE_STANDARD_ALLOC
55
56   
57   //! Inits using of ShapeExtend.
58   //! Currently, loads messages output by ShapeHealing algorithms.
59   Standard_EXPORT static void Init();
60   
61   //! Encodes status (enumeration) to a bit flag
62   Standard_EXPORT static Standard_Integer EncodeStatus (const ShapeExtend_Status status);
63   
64   //! Tells if a bit flag contains bit corresponding to enumerated status
65   Standard_EXPORT static Standard_Boolean DecodeStatus (const Standard_Integer flag, const ShapeExtend_Status status);
66
67
68
69
70 protected:
71
72
73
74
75
76 private:
77
78
79
80
81 friend class ShapeExtend_ComplexCurve;
82 friend class ShapeExtend_CompositeSurface;
83 friend class ShapeExtend_WireData;
84 friend class ShapeExtend_BasicMsgRegistrator;
85 friend class ShapeExtend_MsgRegistrator;
86 friend class ShapeExtend_Explorer;
87
88 };
89
90
91
92
93
94
95
96 #endif // _ShapeExtend_HeaderFile