0030686: Visualization, SelectMgr_ViewerSelector - sorting issues of transformation...
[occt.git] / src / BRepLib / BRepLib_MakeShape.hxx
1 // Created on: 1993-07-21
2 // Created by: Remi LEQUETTE
3 // Copyright (c) 1993-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 _BRepLib_MakeShape_HeaderFile
18 #define _BRepLib_MakeShape_HeaderFile
19
20 #include <Standard.hxx>
21 #include <Standard_DefineAlloc.hxx>
22 #include <Standard_Handle.hxx>
23
24 #include <TopoDS_Shape.hxx>
25 #include <TopTools_ListOfShape.hxx>
26 #include <BRepLib_Command.hxx>
27 #include <BRepLib_ShapeModification.hxx>
28 #include <Standard_Boolean.hxx>
29 #include <Standard_Integer.hxx>
30 class StdFail_NotDone;
31 class TopoDS_Shape;
32 class TopoDS_Face;
33 class TopoDS_Edge;
34
35
36 //! This    is  the  root     class for     all  shape
37 //! constructions.  It stores the result.
38 //!
39 //! It  provides deferred methods to trace the history
40 //! of sub-shapes.
41 class BRepLib_MakeShape  : public BRepLib_Command
42 {
43 public:
44
45   DEFINE_STANDARD_ALLOC
46
47   
48   //! This is  called by  Shape().  It does  nothing but
49   //! may be redefined.
50   Standard_EXPORT void Build();
51   
52   Standard_EXPORT const TopoDS_Shape& Shape();
53   Standard_EXPORT operator TopoDS_Shape();
54   
55   //! returns the status of the Face after
56   //! the shape creation.
57   Standard_EXPORT virtual BRepLib_ShapeModification FaceStatus (const TopoDS_Face& F) const;
58   
59   //! Returns True if the Face generates new topology.
60   Standard_EXPORT virtual Standard_Boolean HasDescendants (const TopoDS_Face& F) const;
61   
62   //! returns the list of generated Faces.
63   Standard_EXPORT virtual const TopTools_ListOfShape& DescendantFaces (const TopoDS_Face& F);
64   
65   //! returns the number of surfaces
66   //! after the shape creation.
67   Standard_EXPORT virtual Standard_Integer NbSurfaces() const;
68   
69   //! Return the faces created for surface I.
70   Standard_EXPORT virtual const TopTools_ListOfShape& NewFaces (const Standard_Integer I);
71   
72   //! returns a list of the created faces
73   //! from the edge <E>.
74   Standard_EXPORT virtual const TopTools_ListOfShape& FacesFromEdges (const TopoDS_Edge& E);
75
76
77
78
79 protected:
80
81   
82   Standard_EXPORT BRepLib_MakeShape();
83
84
85   TopoDS_Shape myShape;
86   TopTools_ListOfShape myGenFaces;
87   TopTools_ListOfShape myNewFaces;
88   TopTools_ListOfShape myEdgFaces;
89
90
91 private:
92
93
94
95
96
97 };
98
99
100
101
102
103
104
105 #endif // _BRepLib_MakeShape_HeaderFile