File indexing completed on 2026-09-18 09:19:26
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017 #ifndef _AIS_BadEdgeFilter_HeaderFile
0018 #define _AIS_BadEdgeFilter_HeaderFile
0019
0020 #include <Standard.hxx>
0021
0022 #include <Standard_Integer.hxx>
0023 #include <TopoDS_Shape.hxx>
0024 #include <NCollection_List.hxx>
0025 #include <NCollection_DataMap.hxx>
0026 #include <SelectMgr_Filter.hxx>
0027 #include <TopAbs_ShapeEnum.hxx>
0028 class SelectMgr_EntityOwner;
0029 class TopoDS_Edge;
0030
0031
0032 class AIS_BadEdgeFilter : public SelectMgr_Filter
0033 {
0034
0035 public:
0036
0037 Standard_EXPORT AIS_BadEdgeFilter();
0038
0039 Standard_EXPORT bool ActsOn(const TopAbs_ShapeEnum aType) const override;
0040
0041 Standard_EXPORT bool IsOk(const occ::handle<SelectMgr_EntityOwner>& EO) const override;
0042
0043
0044 Standard_EXPORT void SetContour(const int Index);
0045
0046
0047 Standard_EXPORT void AddEdge(const TopoDS_Edge& anEdge, const int Index);
0048
0049
0050
0051 Standard_EXPORT void RemoveEdges(const int Index);
0052
0053 DEFINE_STANDARD_RTTIEXT(AIS_BadEdgeFilter, SelectMgr_Filter)
0054
0055 private:
0056 NCollection_DataMap<int, NCollection_List<TopoDS_Shape>> myBadEdges;
0057 int myContour;
0058 };
0059
0060 #endif