OCCT 8.0.1
OCCT documentation

Search guides and API reference

Enter at least two characters.

    Open CASCADE Technology Reference Manual 8.0.1
    Interface_ShareFlags Class Reference

    This class only says for each Entity of a Model, if it is Shared or not by one or more other(s) of this Model It uses the General Service "Shared". More...

    #include <Interface_ShareFlags.hxx>

    Public Member Functions

     Interface_ShareFlags (const occ::handle< Interface_InterfaceModel > &amodel, const Interface_GeneralLib &lib)
     Creates a ShareFlags from a Model and builds required data (flags) by calling the General Service Library given as argument <lib>.
     Interface_ShareFlags (const occ::handle< Interface_InterfaceModel > &amodel, const occ::handle< Interface_GTool > &gtool)
     Same as above, but GeneralLib is detained by a GTool.
     Interface_ShareFlags (const occ::handle< Interface_InterfaceModel > &amodel, const occ::handle< Interface_Protocol > &protocol)
     Same as above, but GeneralLib is defined through a Protocol.
     Interface_ShareFlags (const occ::handle< Interface_InterfaceModel > &amodel)
     Same as above, but works with the GTool of the Model.
     Interface_ShareFlags (const Interface_Graph &agraph)
     Creates a ShareFlags by querying information from a Graph (remark that Graph also has a method IsShared).
    occ::handle< Interface_InterfaceModel > Model () const
     Returns the Model used for the evaluation.
    bool IsShared (const occ::handle< Standard_Transient > &ent) const
     Returns True if <ent> is Shared by one or more other Entity(ies) of the Model.
    Interface_EntityIterator RootEntities () const
     Returns the Entities which are not Shared (see their flags).
    int NbRoots () const
     Returns the count of root entities.
    occ::handle< Standard_Transient > Root (const int numnum=1) const
     Returns a root entity according its rank in the list of roots By default, it returns the first one.

    Detailed Description

    This class only says for each Entity of a Model, if it is Shared or not by one or more other(s) of this Model It uses the General Service "Shared".

    Constructor & Destructor Documentation

    ◆ Interface_ShareFlags() [1/5]

    Interface_ShareFlags::Interface_ShareFlags ( const occ::handle< Interface_InterfaceModel > & amodel,
    const Interface_GeneralLib & lib )

    Creates a ShareFlags from a Model and builds required data (flags) by calling the General Service Library given as argument <lib>.

    ◆ Interface_ShareFlags() [2/5]

    Interface_ShareFlags::Interface_ShareFlags ( const occ::handle< Interface_InterfaceModel > & amodel,
    const occ::handle< Interface_GTool > & gtool )

    Same as above, but GeneralLib is detained by a GTool.

    ◆ Interface_ShareFlags() [3/5]

    Interface_ShareFlags::Interface_ShareFlags ( const occ::handle< Interface_InterfaceModel > & amodel,
    const occ::handle< Interface_Protocol > & protocol )

    Same as above, but GeneralLib is defined through a Protocol.

    ◆ Interface_ShareFlags() [4/5]

    Interface_ShareFlags::Interface_ShareFlags ( const occ::handle< Interface_InterfaceModel > & amodel)

    Same as above, but works with the GTool of the Model.

    ◆ Interface_ShareFlags() [5/5]

    Interface_ShareFlags::Interface_ShareFlags ( const Interface_Graph & agraph)

    Creates a ShareFlags by querying information from a Graph (remark that Graph also has a method IsShared).

    Member Function Documentation

    ◆ IsShared()

    bool Interface_ShareFlags::IsShared ( const occ::handle< Standard_Transient > & ent) const

    Returns True if <ent> is Shared by one or more other Entity(ies) of the Model.

    ◆ Model()

    occ::handle< Interface_InterfaceModel > Interface_ShareFlags::Model ( ) const

    Returns the Model used for the evaluation.

    ◆ NbRoots()

    int Interface_ShareFlags::NbRoots ( ) const

    Returns the count of root entities.

    ◆ Root()

    occ::handle< Standard_Transient > Interface_ShareFlags::Root ( const int num = 1) const

    Returns a root entity according its rank in the list of roots By default, it returns the first one.

    ◆ RootEntities()

    Interface_EntityIterator Interface_ShareFlags::RootEntities ( ) const

    Returns the Entities which are not Shared (see their flags).


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