1 // File generated by CPPExt (Value)
2 // Copyright (C) 1991,1995 by
4 // MATRA DATAVISION, FRANCE
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.
12 // At the termination of the contract, the software and all copies of this
13 // software must be deleted.
15 #ifndef _NMTAlgo_Splitter_HeaderFile
16 #define _NMTAlgo_Splitter_HeaderFile
18 #ifndef _TopAbs_ShapeEnum_HeaderFile
19 #include <TopAbs_ShapeEnum.hxx>
21 #ifndef _BRep_Builder_HeaderFile
22 #include <BRep_Builder.hxx>
24 #ifndef _TopTools_ListOfShape_HeaderFile
25 #include <TopTools_ListOfShape.hxx>
27 #ifndef _TopTools_MapOfShape_HeaderFile
28 #include <TopTools_MapOfShape.hxx>
30 #ifndef _TopTools_DataMapOfShapeShape_HeaderFile
31 #include <TopTools_DataMapOfShapeShape.hxx>
33 #ifndef _BRepAlgo_Image_HeaderFile
34 #include <BRepAlgo_Image.hxx>
36 #ifndef _TopTools_MapOfOrientedShape_HeaderFile
37 #include <TopTools_MapOfOrientedShape.hxx>
39 #ifndef _NMTAlgo_Builder_HeaderFile
40 #include <NMTAlgo_Builder.hxx>
42 #ifndef _Standard_Boolean_HeaderFile
43 #include <Standard_Boolean.hxx>
46 class NMTTools_DSFiller;
47 class TopTools_ListOfShape;
50 #ifndef _Standard_HeaderFile
51 #include <Standard.hxx>
53 #ifndef _Standard_Macro_HeaderFile
54 #include <Standard_Macro.hxx>
57 class NMTAlgo_Splitter : public NMTAlgo_Builder {
61 void* operator new(size_t,void* anAddress)
65 void* operator new(size_t size)
67 return Standard::Allocate(size);
69 void operator delete(void *anAddress)
71 if (anAddress) Standard::Free((Standard_Address&)anAddress);
75 Standard_EXPORT NMTAlgo_Splitter();
76 Standard_EXPORT virtual ~NMTAlgo_Splitter();
77 Standard_EXPORT virtual void AddShape(const TopoDS_Shape& S) ;
78 Standard_EXPORT virtual void AddTool(const TopoDS_Shape& S) ;
79 Standard_EXPORT virtual void Compute() ;
80 Standard_EXPORT virtual void Build(const TopAbs_ShapeEnum aLimit = TopAbs_SHAPE) ;
81 Standard_EXPORT virtual void ComputeWithFiller(const NMTTools_DSFiller& aDSF) ;
82 Standard_EXPORT void KeepShapesInside(const TopoDS_Shape& S) ;
83 Standard_EXPORT void RemoveShapesInside(const TopoDS_Shape& S) ;
84 Standard_EXPORT const TopTools_ListOfShape& Modified(const TopoDS_Shape& S) ;
85 Standard_EXPORT const TopTools_ListOfShape& Generated(const TopoDS_Shape& S) ;
86 Standard_EXPORT Standard_Boolean IsDeleted(const TopoDS_Shape& S) ;
87 Standard_EXPORT virtual void Clear() ;
88 Standard_EXPORT const TopTools_ListOfShape& SourceShapes() const;
98 Standard_EXPORT void FillResult() ;
99 Standard_EXPORT void FillImageShape() ;
100 Standard_EXPORT void SplittedFaces() ;
101 Standard_EXPORT void SplittedWires() ;
102 Standard_EXPORT void SplitsAndSections() ;
103 Standard_EXPORT void ShellsAndSolids() ;
104 Standard_EXPORT void MakeShells(const TopoDS_Shape& aS,TopTools_ListOfShape& aLNS) ;
105 Standard_EXPORT void MakeSolids(const TopoDS_Shape& Solid,TopTools_ListOfShape& Shells) ;
106 Standard_EXPORT TopoDS_Shape FindFacesInside(const TopoDS_Shape& S,const Standard_Boolean CheckClosed = Standard_False,const Standard_Boolean All = Standard_False) ;
107 Standard_EXPORT static Standard_Boolean IsInside(const TopoDS_Shape& S1,const TopoDS_Shape& S2) ;
108 Standard_EXPORT TopoDS_Shape GetOriginalShape(const TopoDS_Shape& aShape) const;
113 TopAbs_ShapeEnum myDoneStep;
114 BRep_Builder myBuilder;
115 TopTools_ListOfShape myListShapes;
116 TopTools_MapOfShape myMapFaces;
117 TopTools_MapOfShape myMapTools;
118 TopTools_MapOfShape myEqualEdges;
119 TopTools_MapOfShape myNewSection;
120 TopTools_MapOfShape myClosedShapes;
121 TopTools_MapOfShape myWrappingSolid;
122 TopTools_DataMapOfShapeShape myFaceShapeMap;
123 TopTools_DataMapOfShapeShape myInternalFaces;
124 TopTools_DataMapOfShapeShape myIntNotClFaces;
125 BRepAlgo_Image myImageShape;
126 TopTools_MapOfOrientedShape myAddedFacesMap;
127 TopTools_ListOfShape mySourceShapes;
128 TopAbs_ShapeEnum myLimit;
129 TopTools_MapOfShape myToolShapes;
130 TopTools_MapOfShape myObjShapes;
131 TopTools_DataMapOfShapeShape myMapSIFC;
132 TopTools_ListOfShape myGenerated;
151 // other Inline functions and methods (like "C++: function call" methods)