File indexing completed on 2025-01-18 10:02:54
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017 #ifndef _AIS_ExclusionFilter_HeaderFile
0018 #define _AIS_ExclusionFilter_HeaderFile
0019
0020 #include <Standard.hxx>
0021 #include <Standard_Type.hxx>
0022
0023 #include <TColStd_DataMapOfIntegerListOfInteger.hxx>
0024 #include <SelectMgr_Filter.hxx>
0025 #include <AIS_KindOfInteractive.hxx>
0026 #include <Standard_Integer.hxx>
0027 #include <TColStd_ListOfInteger.hxx>
0028 class SelectMgr_EntityOwner;
0029
0030 class AIS_ExclusionFilter;
0031 DEFINE_STANDARD_HANDLE(AIS_ExclusionFilter, SelectMgr_Filter)
0032
0033
0034
0035
0036
0037
0038
0039
0040
0041
0042
0043
0044
0045
0046
0047 class AIS_ExclusionFilter : public SelectMgr_Filter
0048 {
0049
0050 public:
0051
0052
0053
0054
0055
0056 Standard_EXPORT AIS_ExclusionFilter(const Standard_Boolean ExclusionFlagOn = Standard_True);
0057
0058
0059
0060 Standard_EXPORT AIS_ExclusionFilter(const AIS_KindOfInteractive TypeToExclude, const Standard_Boolean ExclusionFlagOn = Standard_True);
0061
0062
0063
0064
0065
0066 Standard_EXPORT AIS_ExclusionFilter(const AIS_KindOfInteractive TypeToExclude, const Standard_Integer SignatureInType, const Standard_Boolean ExclusionFlagOn = Standard_True);
0067
0068 Standard_EXPORT virtual Standard_Boolean IsOk (const Handle(SelectMgr_EntityOwner)& anObj) const Standard_OVERRIDE;
0069
0070
0071 Standard_EXPORT Standard_Boolean Add (const AIS_KindOfInteractive TypeToExclude);
0072
0073 Standard_EXPORT Standard_Boolean Add (const AIS_KindOfInteractive TypeToExclude, const Standard_Integer SignatureInType);
0074
0075 Standard_EXPORT Standard_Boolean Remove (const AIS_KindOfInteractive TypeToExclude);
0076
0077 Standard_EXPORT Standard_Boolean Remove (const AIS_KindOfInteractive TypeToExclude, const Standard_Integer SignatureInType);
0078
0079 Standard_EXPORT void Clear();
0080
0081 Standard_Boolean IsExclusionFlagOn() const { return myIsExclusionFlagOn; }
0082
0083 void SetExclusionFlag (const Standard_Boolean theStatus) { myIsExclusionFlagOn = theStatus; }
0084
0085 Standard_EXPORT Standard_Boolean IsStored (const AIS_KindOfInteractive aType) const;
0086
0087 Standard_EXPORT void ListOfStoredTypes (TColStd_ListOfInteger& TheList) const;
0088
0089 Standard_EXPORT void ListOfSignature (const AIS_KindOfInteractive aType, TColStd_ListOfInteger& TheStoredList) const;
0090
0091 DEFINE_STANDARD_RTTIEXT(AIS_ExclusionFilter,SelectMgr_Filter)
0092
0093 private:
0094
0095 Standard_EXPORT Standard_Boolean IsSignatureIn (const AIS_KindOfInteractive aType, const Standard_Integer aSignature) const;
0096
0097 Standard_Boolean myIsExclusionFlagOn;
0098 TColStd_DataMapOfIntegerListOfInteger myStoredTypes;
0099
0100 };
0101
0102 #endif