OCCT3D OCCT 8.0.1
OCCT documentation

Search guides and API reference

Enter at least two characters.

    Open CASCADE Technology Reference Manual 8.0.1
    TDF_IDFilter Class Reference

    This class offers filtering services around an ID list. More...

    #include <TDF_IDFilter.hxx>

    Public Member Functions

     TDF_IDFilter (const bool ignoreMode=true)
     Creates an ID/attribute filter based on an ID list. The default mode is "ignore all but...".
    void IgnoreAll (const bool ignore)
     The list of ID is cleared and the filter mode is set to ignore mode if <keep> is true; false otherwise.
    bool IgnoreAll () const
     Returns true is the mode is set to "ignore all but...".
    void Keep (const Standard_GUID &anID)
     An attribute with <anID> as ID is to be kept and the filter will answer true to the question IsKept(<anID>).
    void Keep (const NCollection_List< Standard_GUID > &anIDList)
     Attributes with ID owned by <anIDList> are to be kept and the filter will answer true to the question IsKept(<anID>) with ID from <anIDList>.
    void Ignore (const Standard_GUID &anID)
     An attribute with <anID> as ID is to be ignored and the filter will answer false to the question IsKept(<anID>).
    void Ignore (const NCollection_List< Standard_GUID > &anIDList)
     Attributes with ID owned by <anIDList> are to be ignored and the filter will answer false to the question IsKept(<anID>) with ID from <anIDList>.
    bool IsKept (const Standard_GUID &anID) const
     Returns true if the ID is to be kept.
    bool IsKept (const occ::handle< TDF_Attribute > &anAtt) const
     Returns true if the attribute is to be kept.
    bool IsIgnored (const Standard_GUID &anID) const
     Returns true if the ID is to be ignored.
    bool IsIgnored (const occ::handle< TDF_Attribute > &anAtt) const
     Returns true if the attribute is to be ignored.
    void IDList (NCollection_List< Standard_GUID > &anIDList) const
     Copies the list of ID to be kept or ignored in <anIDList>. <anIDList> is cleared before use.
    void Copy (const TDF_IDFilter &fromFilter)
     Copies into <me> the contents of <fromFilter>. <me> is cleared before copy.
    void Dump (Standard_OStream &anOS) const
     Writes the contents of <me> to <OS>.
    void Assign (const TDF_IDFilter &theFilter)
     Assignment.

    Detailed Description

    This class offers filtering services around an ID list.

    Constructor & Destructor Documentation

    ◆ TDF_IDFilter()

    TDF_IDFilter::TDF_IDFilter ( const bool ignoreMode = true)

    Creates an ID/attribute filter based on an ID list. The default mode is "ignore all but...".

    This filter has 2 working mode: keep and ignore.

    Ignore/Exclusive mode: all IDs are ignored except these set to be kept, using Keep(). Of course, it is possible set an kept ID to be ignored using Ignore().

    Keep/Inclusive mode: all IDs are kept except these set to be ignored, using Ignore(). Of course, it is possible set an ignored ID to be kept using Keep().

    Member Function Documentation

    ◆ Assign()

    void TDF_IDFilter::Assign ( const TDF_IDFilter & theFilter)
    inline

    Assignment.

    ◆ Copy()

    void TDF_IDFilter::Copy ( const TDF_IDFilter & fromFilter)

    Copies into <me> the contents of <fromFilter>. <me> is cleared before copy.

    ◆ Dump()

    void TDF_IDFilter::Dump ( Standard_OStream & anOS) const

    Writes the contents of <me> to <OS>.

    ◆ IDList()

    void TDF_IDFilter::IDList ( NCollection_List< Standard_GUID > & anIDList) const

    Copies the list of ID to be kept or ignored in <anIDList>. <anIDList> is cleared before use.

    ◆ Ignore() [1/2]

    void TDF_IDFilter::Ignore ( const NCollection_List< Standard_GUID > & anIDList)

    Attributes with ID owned by <anIDList> are to be ignored and the filter will answer false to the question IsKept(<anID>) with ID from <anIDList>.

    ◆ Ignore() [2/2]

    void TDF_IDFilter::Ignore ( const Standard_GUID & anID)

    An attribute with <anID> as ID is to be ignored and the filter will answer false to the question IsKept(<anID>).

    ◆ IgnoreAll() [1/2]

    bool TDF_IDFilter::IgnoreAll ( ) const

    Returns true is the mode is set to "ignore all but...".

    ◆ IgnoreAll() [2/2]

    void TDF_IDFilter::IgnoreAll ( const bool ignore)

    The list of ID is cleared and the filter mode is set to ignore mode if <keep> is true; false otherwise.

    ◆ IsIgnored() [1/2]

    bool TDF_IDFilter::IsIgnored ( const occ::handle< TDF_Attribute > & anAtt) const

    Returns true if the attribute is to be ignored.

    ◆ IsIgnored() [2/2]

    bool TDF_IDFilter::IsIgnored ( const Standard_GUID & anID) const

    Returns true if the ID is to be ignored.

    ◆ IsKept() [1/2]

    bool TDF_IDFilter::IsKept ( const occ::handle< TDF_Attribute > & anAtt) const

    Returns true if the attribute is to be kept.

    ◆ IsKept() [2/2]

    bool TDF_IDFilter::IsKept ( const Standard_GUID & anID) const

    Returns true if the ID is to be kept.

    ◆ Keep() [1/2]

    void TDF_IDFilter::Keep ( const NCollection_List< Standard_GUID > & anIDList)

    Attributes with ID owned by <anIDList> are to be kept and the filter will answer true to the question IsKept(<anID>) with ID from <anIDList>.

    ◆ Keep() [2/2]

    void TDF_IDFilter::Keep ( const Standard_GUID & anID)

    An attribute with <anID> as ID is to be kept and the filter will answer true to the question IsKept(<anID>).


    The documentation for this class was generated from the following file: