b311480e |
1 | // Copyright (c) 1999-2012 OPEN CASCADE SAS |
2 | // |
3 | // The content of this file is subject to the Open CASCADE Technology Public |
4 | // License Version 6.5 (the "License"). You may not use the content of this file |
5 | // except in compliance with the License. Please obtain a copy of the License |
6 | // at http://www.opencascade.org and read it completely before using this file. |
7 | // |
8 | // The Initial Developer of the Original Code is Open CASCADE S.A.S., having its |
9 | // main offices at: 1, place des Freres Montgolfier, 78280 Guyancourt, France. |
10 | // |
11 | // The Original Code and all software distributed under the License is |
12 | // distributed on an "AS IS" basis, without warranty of any kind, and the |
13 | // Initial Developer hereby disclaims all such warranties, including without |
14 | // limitation, any warranties of merchantability, fitness for a particular |
15 | // purpose or non-infringement. Please see the License for the specific terms |
16 | // and conditions governing the rights and limitations under the License. |
7fd59977 |
17 | |
18 | #ifndef _BRepSweep_NumLinearRegularSweep_HeaderFile |
19 | #define _BRepSweep_NumLinearRegularSweep_HeaderFile |
20 | |
21 | #ifndef _BRepSweep_Builder_HeaderFile |
22 | #include <BRepSweep_Builder.hxx> |
23 | #endif |
24 | #ifndef _TopoDS_Shape_HeaderFile |
25 | #include <TopoDS_Shape.hxx> |
26 | #endif |
27 | #ifndef _Sweep_NumShape_HeaderFile |
28 | #include <Sweep_NumShape.hxx> |
29 | #endif |
30 | #ifndef _BRepSweep_Tool_HeaderFile |
31 | #include <BRepSweep_Tool.hxx> |
32 | #endif |
33 | #ifndef _Sweep_NumShapeTool_HeaderFile |
34 | #include <Sweep_NumShapeTool.hxx> |
35 | #endif |
36 | #ifndef _BRepSweep_Array2OfShapesOfNumLinearRegularSweep_HeaderFile |
37 | #include <BRepSweep_Array2OfShapesOfNumLinearRegularSweep.hxx> |
38 | #endif |
39 | #ifndef _TColStd_Array2OfBoolean_HeaderFile |
40 | #include <TColStd_Array2OfBoolean.hxx> |
41 | #endif |
42 | #ifndef _Handle_BRepSweep_SequenceNodeOfSequenceOfShapesOfNumLinearRegularSweep_HeaderFile |
43 | #include <Handle_BRepSweep_SequenceNodeOfSequenceOfShapesOfNumLinearRegularSweep.hxx> |
44 | #endif |
45 | #ifndef _TopAbs_Orientation_HeaderFile |
46 | #include <TopAbs_Orientation.hxx> |
47 | #endif |
48 | #ifndef _Standard_Boolean_HeaderFile |
49 | #include <Standard_Boolean.hxx> |
50 | #endif |
51 | class Standard_NoMoreObject; |
52 | class Standard_NoSuchObject; |
53 | class Standard_RangeError; |
54 | class Standard_DomainError; |
55 | class TopoDS_Shape; |
56 | class Sweep_NumShape; |
57 | class BRepSweep_Builder; |
58 | class BRepSweep_Tool; |
59 | class Sweep_NumShapeTool; |
60 | class BRepSweep_Iterator; |
61 | class Sweep_NumShapeIterator; |
62 | class BRepSweep_Array2OfShapesOfNumLinearRegularSweep; |
63 | class BRepSweep_SequenceOfShapesOfNumLinearRegularSweep; |
64 | class BRepSweep_SequenceNodeOfSequenceOfShapesOfNumLinearRegularSweep; |
65 | |
66 | |
67 | #ifndef _Standard_HeaderFile |
68 | #include <Standard.hxx> |
69 | #endif |
1c35b92f |
70 | #ifndef _Standard_DefineAlloc_HeaderFile |
71 | #include <Standard_DefineAlloc.hxx> |
72 | #endif |
7fd59977 |
73 | #ifndef _Standard_Macro_HeaderFile |
74 | #include <Standard_Macro.hxx> |
75 | #endif |
76 | |
77 | class BRepSweep_NumLinearRegularSweep { |
78 | |
79 | public: |
80 | |
1c35b92f |
81 | DEFINE_STANDARD_ALLOC |
82 | |
7fd59977 |
83 | // Methods PUBLIC |
84 | // |
85 | Standard_EXPORT virtual void Delete() ; |
86 | Standard_EXPORT virtual ~BRepSweep_NumLinearRegularSweep() |
87 | { |
88 | Delete(); |
89 | } |
90 | |
91 | Standard_EXPORT virtual TopoDS_Shape MakeEmptyVertex(const TopoDS_Shape& aGenV,const Sweep_NumShape& aDirV) = 0; |
92 | Standard_EXPORT virtual TopoDS_Shape MakeEmptyDirectingEdge(const TopoDS_Shape& aGenV,const Sweep_NumShape& aDirE) = 0; |
93 | Standard_EXPORT virtual TopoDS_Shape MakeEmptyGeneratingEdge(const TopoDS_Shape& aGenE,const Sweep_NumShape& aDirV) = 0; |
94 | Standard_EXPORT virtual void SetParameters(const TopoDS_Shape& aNewFace,TopoDS_Shape& aNewVertex,const TopoDS_Shape& aGenF,const TopoDS_Shape& aGenV,const Sweep_NumShape& aDirV) = 0; |
95 | Standard_EXPORT virtual void SetDirectingParameter(const TopoDS_Shape& aNewEdge,TopoDS_Shape& aNewVertex,const TopoDS_Shape& aGenV,const Sweep_NumShape& aDirE,const Sweep_NumShape& aDirV) = 0; |
96 | Standard_EXPORT virtual void SetGeneratingParameter(const TopoDS_Shape& aNewEdge,TopoDS_Shape& aNewVertex,const TopoDS_Shape& aGenE,const TopoDS_Shape& aGenV,const Sweep_NumShape& aDirV) = 0; |
97 | Standard_EXPORT virtual TopoDS_Shape MakeEmptyFace(const TopoDS_Shape& aGenS,const Sweep_NumShape& aDirS) = 0; |
98 | Standard_EXPORT virtual void SetPCurve(const TopoDS_Shape& aNewFace,TopoDS_Shape& aNewEdge,const TopoDS_Shape& aGenF,const TopoDS_Shape& aGenE,const Sweep_NumShape& aDirV,const TopAbs_Orientation orien) = 0; |
99 | Standard_EXPORT virtual void SetGeneratingPCurve(const TopoDS_Shape& aNewFace,TopoDS_Shape& aNewEdge,const TopoDS_Shape& aGenE,const Sweep_NumShape& aDirE,const Sweep_NumShape& aDirV,const TopAbs_Orientation orien) = 0; |
100 | Standard_EXPORT virtual void SetDirectingPCurve(const TopoDS_Shape& aNewFace,TopoDS_Shape& aNewEdge,const TopoDS_Shape& aGenE,const TopoDS_Shape& aGenV,const Sweep_NumShape& aDirE,const TopAbs_Orientation orien) = 0; |
101 | Standard_EXPORT virtual TopAbs_Orientation DirectSolid(const TopoDS_Shape& aGenS,const Sweep_NumShape& aDirS) = 0; |
102 | Standard_EXPORT virtual Standard_Boolean GGDShapeIsToAdd(const TopoDS_Shape& aNewShape,const TopoDS_Shape& aNewSubShape,const TopoDS_Shape& aGenS,const TopoDS_Shape& aSubGenS,const Sweep_NumShape& aDirS) const = 0; |
103 | Standard_EXPORT virtual Standard_Boolean GDDShapeIsToAdd(const TopoDS_Shape& aNewShape,const TopoDS_Shape& aNewSubShape,const TopoDS_Shape& aGenS,const Sweep_NumShape& aDirS,const Sweep_NumShape& aSubDirS) const = 0; |
104 | Standard_EXPORT virtual Standard_Boolean SeparatedWires(const TopoDS_Shape& aNewShape,const TopoDS_Shape& aNewSubShape,const TopoDS_Shape& aGenS,const TopoDS_Shape& aSubGenS,const Sweep_NumShape& aDirS) const = 0; |
105 | Standard_EXPORT virtual TopoDS_Shape SplitShell(const TopoDS_Shape& aNewShape) const; |
106 | Standard_EXPORT virtual void SetContinuity(const TopoDS_Shape& aGenS,const Sweep_NumShape& aDirS) = 0; |
107 | Standard_EXPORT virtual Standard_Boolean HasShape(const TopoDS_Shape& aGenS,const Sweep_NumShape& aDirS) const = 0; |
108 | Standard_EXPORT TopoDS_Shape Shape(const TopoDS_Shape& aGenS,const Sweep_NumShape& aDirS) ; |
109 | Standard_EXPORT TopoDS_Shape Shape(const TopoDS_Shape& aGenS) ; |
110 | Standard_EXPORT TopoDS_Shape Shape() ; |
111 | Standard_EXPORT TopoDS_Shape FirstShape() ; |
112 | Standard_EXPORT TopoDS_Shape LastShape() ; |
113 | Standard_EXPORT TopoDS_Shape FirstShape(const TopoDS_Shape& aGenS) ; |
114 | Standard_EXPORT TopoDS_Shape LastShape(const TopoDS_Shape& aGenS) ; |
115 | Standard_EXPORT Standard_Boolean Closed() const; |
116 | |
117 | |
118 | |
119 | |
120 | |
121 | protected: |
122 | |
123 | // Methods PROTECTED |
124 | // |
125 | Standard_EXPORT BRepSweep_NumLinearRegularSweep(const BRepSweep_Builder& aBuilder,const TopoDS_Shape& aGenShape,const Sweep_NumShape& aDirWire); |
126 | |
127 | |
128 | // Fields PROTECTED |
129 | // |
130 | BRepSweep_Builder myBuilder; |
131 | TopoDS_Shape myGenShape; |
132 | Sweep_NumShape myDirWire; |
133 | BRepSweep_Tool myGenShapeTool; |
134 | Sweep_NumShapeTool myDirShapeTool; |
135 | BRepSweep_Array2OfShapesOfNumLinearRegularSweep myShapes; |
136 | TColStd_Array2OfBoolean myBuiltShapes; |
137 | |
138 | |
139 | private: |
140 | |
141 | // Methods PRIVATE |
142 | // |
143 | |
144 | |
145 | // Fields PRIVATE |
146 | // |
147 | |
148 | |
149 | }; |
150 | |
151 | |
152 | |
153 | |
154 | |
155 | // other Inline functions and methods (like "C++: function call" methods) |
156 | // |
157 | |
158 | |
159 | #endif |