File indexing completed on 2025-01-18 10:03:13
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017 #ifndef _BRepMAT2d_Explorer_HeaderFile
0018 #define _BRepMAT2d_Explorer_HeaderFile
0019
0020 #include <Standard.hxx>
0021 #include <Standard_DefineAlloc.hxx>
0022 #include <Standard_Handle.hxx>
0023
0024 #include <MAT2d_SequenceOfSequenceOfCurve.hxx>
0025 #include <Standard_Integer.hxx>
0026 #include <TopoDS_Shape.hxx>
0027 #include <TColStd_SequenceOfBoolean.hxx>
0028 #include <TopTools_IndexedDataMapOfShapeShape.hxx>
0029 #include <TColGeom2d_SequenceOfCurve.hxx>
0030 class TopoDS_Face;
0031 class TopoDS_Wire;
0032 class Geom2d_Curve;
0033
0034
0035
0036
0037 class BRepMAT2d_Explorer
0038 {
0039 public:
0040
0041 DEFINE_STANDARD_ALLOC
0042
0043
0044 Standard_EXPORT BRepMAT2d_Explorer();
0045
0046 Standard_EXPORT BRepMAT2d_Explorer(const TopoDS_Face& aFace);
0047
0048
0049 Standard_EXPORT void Clear();
0050
0051 Standard_EXPORT void Perform (const TopoDS_Face& aFace);
0052
0053
0054 Standard_EXPORT Standard_Integer NumberOfContours() const;
0055
0056
0057
0058 Standard_EXPORT Standard_Integer NumberOfCurves (const Standard_Integer IndexContour) const;
0059
0060
0061
0062 Standard_EXPORT void Init (const Standard_Integer IndexContour);
0063
0064
0065
0066 Standard_EXPORT Standard_Boolean More() const;
0067
0068
0069 Standard_EXPORT void Next();
0070
0071
0072 Standard_EXPORT Handle(Geom2d_Curve) Value() const;
0073
0074 Standard_EXPORT TopoDS_Shape Shape() const;
0075
0076 Standard_EXPORT const TColGeom2d_SequenceOfCurve& Contour (const Standard_Integer IndexContour) const;
0077
0078 Standard_EXPORT Standard_Boolean IsModified (const TopoDS_Shape& aShape) const;
0079
0080
0081 Standard_EXPORT TopoDS_Shape ModifiedShape (const TopoDS_Shape& aShape) const;
0082
0083 Standard_EXPORT const TColStd_SequenceOfBoolean& GetIsClosed() const;
0084
0085
0086
0087
0088 protected:
0089
0090
0091
0092
0093
0094 private:
0095
0096
0097
0098
0099
0100
0101
0102
0103
0104
0105
0106
0107
0108
0109
0110
0111
0112
0113
0114
0115 Standard_EXPORT void Add (const TopoDS_Wire& Spine, const TopoDS_Face& aFace, TopoDS_Face& aNewFace);
0116
0117 Standard_EXPORT void NewContour();
0118
0119
0120 Standard_EXPORT void Add (const Handle(Geom2d_Curve)& aCurve);
0121
0122
0123 MAT2d_SequenceOfSequenceOfCurve theCurves;
0124 Standard_Integer current;
0125 Standard_Integer currentContour;
0126 TopoDS_Shape myShape;
0127 TColStd_SequenceOfBoolean myIsClosed;
0128 TopTools_IndexedDataMapOfShapeShape myModifShapes;
0129
0130
0131 };
0132
0133
0134
0135
0136
0137
0138
0139 #endif