0031668: Visualization - WebGL sample doesn't work on Emscripten 1.39
[occt.git] / src / LocOpe / LocOpe_DPrism.hxx
1 // Created on: 1996-09-04
2 // Created by: Jacques GOUSSARD
3 // Copyright (c) 1996-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 _LocOpe_DPrism_HeaderFile
18 #define _LocOpe_DPrism_HeaderFile
19
20 #include <Standard.hxx>
21 #include <Standard_DefineAlloc.hxx>
22 #include <Standard_Handle.hxx>
23
24 #include <BRepFill_Evolved.hxx>
25 #include <TopoDS_Shape.hxx>
26 #include <TopoDS_Face.hxx>
27 #include <TopoDS_Wire.hxx>
28 #include <TopoDS_Edge.hxx>
29 #include <Standard_Real.hxx>
30 #include <TColGeom_SequenceOfCurve.hxx>
31 #include <TopTools_DataMapOfShapeListOfShape.hxx>
32 #include <Standard_Boolean.hxx>
33 #include <TopTools_ListOfShape.hxx>
34 class Standard_NoSuchObject;
35 class Standard_DomainError;
36 class StdFail_NotDone;
37 class TopoDS_Face;
38 class TopoDS_Shape;
39 class Geom_Curve;
40
41
42 //! Defines a  pipe  (near from   Pipe from BRepFill),
43 //! with modifications provided for the Pipe feature.
44 class LocOpe_DPrism 
45 {
46 public:
47
48   DEFINE_STANDARD_ALLOC
49
50   
51   Standard_EXPORT LocOpe_DPrism(const TopoDS_Face& Spine, const Standard_Real Height1, const Standard_Real Height2, const Standard_Real Angle);
52   
53   Standard_EXPORT LocOpe_DPrism(const TopoDS_Face& Spine, const Standard_Real Height, const Standard_Real Angle);
54   
55   Standard_EXPORT Standard_Boolean IsDone() const;
56   
57   Standard_EXPORT const TopoDS_Shape& Spine() const;
58   
59   Standard_EXPORT const TopoDS_Shape& Profile() const;
60   
61   Standard_EXPORT const TopoDS_Shape& FirstShape() const;
62   
63   Standard_EXPORT const TopoDS_Shape& LastShape() const;
64   
65   Standard_EXPORT const TopoDS_Shape& Shape() const;
66   
67   Standard_EXPORT const TopTools_ListOfShape& Shapes (const TopoDS_Shape& S) const;
68   
69   Standard_EXPORT void Curves (TColGeom_SequenceOfCurve& SCurves) const;
70   
71   Standard_EXPORT Handle(Geom_Curve) BarycCurve() const;
72
73
74
75
76 protected:
77
78
79
80
81
82 private:
83
84   
85   Standard_EXPORT void IntPerf();
86
87
88   BRepFill_Evolved myDPrism;
89   TopoDS_Shape myRes;
90   TopoDS_Face mySpine;
91   TopoDS_Wire myProfile;
92   TopoDS_Edge myProfile1;
93   TopoDS_Edge myProfile2;
94   TopoDS_Edge myProfile3;
95   Standard_Real myHeight;
96   TopoDS_Shape myFirstShape;
97   TopoDS_Shape myLastShape;
98   TColGeom_SequenceOfCurve myCurvs;
99   TopTools_DataMapOfShapeListOfShape myMap;
100
101
102 };
103
104
105
106
107
108
109
110 #endif // _LocOpe_DPrism_HeaderFile