File indexing completed on 2025-01-18 10:04:57
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016 #ifndef _ShapeUpgrade_RemoveLocations_HeaderFile
0017 #define _ShapeUpgrade_RemoveLocations_HeaderFile
0018
0019 #include <Standard.hxx>
0020 #include <Standard_Type.hxx>
0021
0022 #include <TopAbs_ShapeEnum.hxx>
0023 #include <TopoDS_Shape.hxx>
0024 #include <TopTools_DataMapOfShapeShape.hxx>
0025 #include <Standard_Transient.hxx>
0026
0027
0028 class ShapeUpgrade_RemoveLocations;
0029 DEFINE_STANDARD_HANDLE(ShapeUpgrade_RemoveLocations, Standard_Transient)
0030
0031
0032 class ShapeUpgrade_RemoveLocations : public Standard_Transient
0033 {
0034
0035 public:
0036
0037
0038
0039 Standard_EXPORT ShapeUpgrade_RemoveLocations();
0040
0041
0042 Standard_EXPORT Standard_Boolean Remove (const TopoDS_Shape& theShape);
0043
0044
0045 TopoDS_Shape GetResult() const;
0046
0047
0048
0049
0050 void SetRemoveLevel (const TopAbs_ShapeEnum theLevel);
0051
0052
0053
0054
0055 TopAbs_ShapeEnum RemoveLevel() const;
0056
0057
0058 TopoDS_Shape ModifiedShape (const TopoDS_Shape& theInitShape) const;
0059
0060
0061
0062
0063 DEFINE_STANDARD_RTTIEXT(ShapeUpgrade_RemoveLocations,Standard_Transient)
0064
0065 protected:
0066
0067
0068
0069
0070 private:
0071
0072
0073 Standard_EXPORT Standard_Boolean MakeNewShape (const TopoDS_Shape& theShape, const TopoDS_Shape& theAncShape, TopoDS_Shape& theNewShape, const Standard_Boolean theRemoveLoc);
0074
0075 TopAbs_ShapeEnum myLevelRemoving;
0076 TopoDS_Shape myShape;
0077 TopTools_DataMapOfShapeShape myMapNewShapes;
0078
0079
0080 };
0081
0082
0083 #include <ShapeUpgrade_RemoveLocations.lxx>
0084
0085
0086
0087
0088
0089 #endif