File indexing completed on 2025-01-18 10:05:26
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017 #ifndef _TopOpeBRepDS_HDataStructure_HeaderFile
0018 #define _TopOpeBRepDS_HDataStructure_HeaderFile
0019
0020 #include <Standard.hxx>
0021 #include <Standard_Type.hxx>
0022
0023 #include <TopOpeBRepDS_DataStructure.hxx>
0024 #include <TCollection_AsciiString.hxx>
0025 #include <Standard_Transient.hxx>
0026 #include <TopAbs_ShapeEnum.hxx>
0027 #include <Standard_Integer.hxx>
0028 #include <TopOpeBRepDS_Config.hxx>
0029 #include <TopOpeBRepDS_Kind.hxx>
0030 #include <TopOpeBRepDS_ListOfInterference.hxx>
0031 class TopoDS_Shape;
0032 class TopOpeBRepDS_Surface;
0033 class TopOpeBRepDS_CurveIterator;
0034 class TopOpeBRepDS_Curve;
0035 class TopOpeBRepDS_PointIterator;
0036 class TopOpeBRepDS_Point;
0037 class TopOpeBRepDS_SurfaceIterator;
0038 class TopOpeBRepDS_Interference;
0039
0040
0041 class TopOpeBRepDS_HDataStructure;
0042 DEFINE_STANDARD_HANDLE(TopOpeBRepDS_HDataStructure, Standard_Transient)
0043
0044
0045 class TopOpeBRepDS_HDataStructure : public Standard_Transient
0046 {
0047
0048 public:
0049
0050
0051 Standard_EXPORT TopOpeBRepDS_HDataStructure();
0052
0053 Standard_EXPORT void AddAncestors (const TopoDS_Shape& S);
0054
0055
0056
0057
0058
0059 Standard_EXPORT void AddAncestors (const TopoDS_Shape& S, const TopAbs_ShapeEnum T1, const TopAbs_ShapeEnum T2);
0060
0061
0062
0063 Standard_EXPORT void ChkIntg();
0064
0065 Standard_EXPORT const TopOpeBRepDS_DataStructure& DS() const;
0066
0067 Standard_EXPORT TopOpeBRepDS_DataStructure& ChangeDS();
0068
0069 Standard_EXPORT Standard_Integer NbSurfaces() const;
0070
0071 Standard_EXPORT Standard_Integer NbCurves() const;
0072
0073 Standard_EXPORT Standard_Integer NbPoints() const;
0074
0075
0076 Standard_EXPORT const TopOpeBRepDS_Surface& Surface (const Standard_Integer I) const;
0077
0078
0079
0080 Standard_EXPORT TopOpeBRepDS_CurveIterator SurfaceCurves (const Standard_Integer I) const;
0081
0082
0083 Standard_EXPORT const TopOpeBRepDS_Curve& Curve (const Standard_Integer I) const;
0084
0085
0086 Standard_EXPORT TopOpeBRepDS_Curve& ChangeCurve (const Standard_Integer I);
0087
0088
0089
0090 Standard_EXPORT TopOpeBRepDS_PointIterator CurvePoints (const Standard_Integer I) const;
0091
0092
0093 Standard_EXPORT const TopOpeBRepDS_Point& Point (const Standard_Integer I) const;
0094
0095 Standard_EXPORT Standard_Integer NbShapes() const;
0096
0097
0098 Standard_EXPORT const TopoDS_Shape& Shape (const Standard_Integer I, const Standard_Boolean FindKeep = Standard_True) const;
0099
0100
0101
0102 Standard_EXPORT Standard_Integer Shape (const TopoDS_Shape& S, const Standard_Boolean FindKeep = Standard_True) const;
0103
0104
0105 Standard_EXPORT Standard_Boolean HasGeometry (const TopoDS_Shape& S) const;
0106
0107
0108
0109
0110 Standard_EXPORT Standard_Boolean HasShape (const TopoDS_Shape& S, const Standard_Boolean FindKeep = Standard_True) const;
0111
0112
0113
0114 Standard_EXPORT Standard_Boolean HasSameDomain (const TopoDS_Shape& S, const Standard_Boolean FindKeep = Standard_True) const;
0115
0116
0117
0118 Standard_EXPORT TopTools_ListIteratorOfListOfShape SameDomain (const TopoDS_Shape& S) const;
0119
0120
0121
0122 Standard_EXPORT TopOpeBRepDS_Config SameDomainOrientation (const TopoDS_Shape& S) const;
0123
0124
0125
0126 Standard_EXPORT Standard_Integer SameDomainReference (const TopoDS_Shape& S) const;
0127
0128
0129
0130 Standard_EXPORT TopOpeBRepDS_SurfaceIterator SolidSurfaces (const TopoDS_Shape& S) const;
0131
0132
0133
0134 Standard_EXPORT TopOpeBRepDS_SurfaceIterator SolidSurfaces (const Standard_Integer I) const;
0135
0136
0137
0138 Standard_EXPORT TopOpeBRepDS_CurveIterator FaceCurves (const TopoDS_Shape& F) const;
0139
0140
0141
0142 Standard_EXPORT TopOpeBRepDS_CurveIterator FaceCurves (const Standard_Integer I) const;
0143
0144
0145
0146 Standard_EXPORT TopOpeBRepDS_PointIterator EdgePoints (const TopoDS_Shape& E) const;
0147
0148 Standard_EXPORT Standard_Integer MakeCurve (const TopOpeBRepDS_Curve& C1, TopOpeBRepDS_Curve& C2);
0149
0150 Standard_EXPORT void RemoveCurve (const Standard_Integer iC);
0151
0152 Standard_EXPORT Standard_Integer NbGeometry (const TopOpeBRepDS_Kind K) const;
0153
0154 Standard_EXPORT Standard_Integer NbTopology (const TopOpeBRepDS_Kind K) const;
0155
0156 Standard_EXPORT Standard_Integer NbTopology() const;
0157
0158
0159
0160 Standard_EXPORT Standard_Boolean EdgesSameParameter() const;
0161
0162 Standard_EXPORT void SortOnParameter (const TopOpeBRepDS_ListOfInterference& L1, TopOpeBRepDS_ListOfInterference& L2) const;
0163
0164 Standard_EXPORT void SortOnParameter (TopOpeBRepDS_ListOfInterference& L) const;
0165
0166 Standard_EXPORT void MinMaxOnParameter (const TopOpeBRepDS_ListOfInterference& L, Standard_Real& Min, Standard_Real& Max) const;
0167
0168
0169
0170
0171
0172
0173
0174
0175 Standard_EXPORT Standard_Boolean ScanInterfList (TopOpeBRepDS_ListIteratorOfListOfInterference& IT, const TopOpeBRepDS_Point& PDS) const;
0176
0177
0178
0179
0180
0181
0182 Standard_EXPORT Standard_Boolean GetGeometry (TopOpeBRepDS_ListIteratorOfListOfInterference& IT, const TopOpeBRepDS_Point& PDS, Standard_Integer& G, TopOpeBRepDS_Kind& K) const;
0183
0184
0185
0186 Standard_EXPORT void StoreInterference (const Handle(TopOpeBRepDS_Interference)& I, TopOpeBRepDS_ListOfInterference& LI, const TCollection_AsciiString& str = "");
0187
0188
0189
0190 Standard_EXPORT void StoreInterference (const Handle(TopOpeBRepDS_Interference)& I, const TopoDS_Shape& S, const TCollection_AsciiString& str = "");
0191
0192
0193
0194 Standard_EXPORT void StoreInterference (const Handle(TopOpeBRepDS_Interference)& I, const Standard_Integer IS, const TCollection_AsciiString& str = "");
0195
0196 Standard_EXPORT void StoreInterferences (const TopOpeBRepDS_ListOfInterference& LI, const TopoDS_Shape& S, const TCollection_AsciiString& str = "");
0197
0198 Standard_EXPORT void StoreInterferences (const TopOpeBRepDS_ListOfInterference& LI, const Standard_Integer IS, const TCollection_AsciiString& str = "");
0199
0200 Standard_EXPORT void ClearStoreInterferences (const TopOpeBRepDS_ListOfInterference& LI, const TopoDS_Shape& S, const TCollection_AsciiString& str = "");
0201
0202 Standard_EXPORT void ClearStoreInterferences (const TopOpeBRepDS_ListOfInterference& LI, const Standard_Integer IS, const TCollection_AsciiString& str = "");
0203
0204
0205
0206
0207 DEFINE_STANDARD_RTTIEXT(TopOpeBRepDS_HDataStructure,Standard_Transient)
0208
0209 protected:
0210
0211
0212
0213
0214 private:
0215
0216
0217 TopOpeBRepDS_DataStructure myDS;
0218
0219
0220 };
0221
0222
0223
0224
0225
0226
0227
0228 #endif