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
    IFGraph_AllConnected Class Reference

    this class gives content of the CONNECTED COMPONENT(S) which include specific Entity(ies) More...

    #include <IFGraph_AllConnected.hxx>

    Inheritance diagram for IFGraph_AllConnected:

    Public Member Functions

     IFGraph_AllConnected (const Interface_Graph &agraph)
     creates an AllConnected from a graph, empty ready to be filled
     IFGraph_AllConnected (const Interface_Graph &agraph, const occ::handle< Standard_Transient > &ent)
     creates an AllConnected which memorizes Entities Connected to a given one, at any level : that is, itself, all Entities Shared by it and Sharing it, and so on. In other terms, this is the content of the CONNECTED COMPONENT which include a specific Entity
    void GetFromEntity (const occ::handle< Standard_Transient > &ent)
     adds an entity and its Connected ones to the list (allows to cumulate all Entities Connected by some ones) Note that if "ent" is in the already computed list,, no entity will be added, but if "ent" is not already in the list, a new Connected Component will be cumulated
    void ResetData ()
     Allows to restart on a new data set.
    void Evaluate () override
     does the specific evaluation (Connected entities atall levels)
    Public Member Functions inherited from Interface_GraphContent
     Interface_GraphContent ()
     Creates an empty GraphContent, ready to be filled.
     Interface_GraphContent (const Interface_Graph &agraph)
     Creates with all entities designated by a Graph.
     Interface_GraphContent (const Interface_Graph &agraph, const int stat)
     Creates with entities having specific Status value in a Graph.
     Interface_GraphContent (const Interface_Graph &agraph, const occ::handle< Standard_Transient > &ent)
     Creates an Iterator with Shared entities of an entity (equivalente to EntityIterator but with a Graph).
    void GetFromGraph (const Interface_Graph &agraph)
     Gets all Entities designated by a Graph (once created), adds them to those already recorded.
    void GetFromGraph (const Interface_Graph &agraph, const int stat)
     Gets entities from a graph which have a specific Status value (one created), adds them to those already recorded.
    Interface_EntityIterator Result ()
     Returns Result under the exact form of an EntityIterator : Can be used when EntityIterator itself is required (as a returned value for instance), without way for a sub-class.
    void Begin ()
     Does the Evaluation before starting the iteration itself (in out).
    Public Member Functions inherited from Interface_EntityIterator
     Interface_EntityIterator ()
     Defines an empty iterator (see AddList & AddItem).
     Interface_EntityIterator (const occ::handle< NCollection_HSequence< occ::handle< Standard_Transient > > > &list)
     Defines an iterator on a list, directly i.e. without copying it.
    void AddList (const occ::handle< NCollection_HSequence< occ::handle< Standard_Transient > > > &list)
     Gets a list of entities and adds its to the iteration list.
    void AddItem (const occ::handle< Standard_Transient > &anentity)
     Adds to the iteration list a defined entity.
    void GetOneItem (const occ::handle< Standard_Transient > &anentity)
     same as AddItem (kept for compatibility)
    void SelectType (const occ::handle< Standard_Type > &atype, const bool keep)
     Selects entities with are Kind of a given type, keep only them (is keep is True) or reject only them (if keep is False).
    int NbEntities () const
     Returns count of entities which will be iterated on Calls Start if not yet done.
    int NbTyped (const occ::handle< Standard_Type > &typetype) const
     Returns count of entities of a given type (kind of).
    Interface_EntityIterator Typed (const occ::handle< Standard_Type > &typetype) const
     Returns the list of entities of a given type (kind of).
    virtual void Start () const
     Allows re-iteration (useless for the first iteration).
    bool More () const
     Says if there are other entities (vertices) to iterate the first time, calls Start.
    void Next () const
     Sets iteration to the next entity (vertex) to give.
    const occ::handle< Standard_Transient > & Value () const
     Returns the current Entity iterated, to be used by Interface tools.
    occ::handle< NCollection_HSequence< occ::handle< Standard_Transient > > > Content () const
     Returns the content of the Iterator, accessed through a Handle to be used by a frontal-engine logic Returns an empty Sequence if the Iterator is empty Calls Start if not yet done.
    void Destroy ()
     Clears data of iteration.
    virtual ~Interface_EntityIterator ()
     Destructor.

    Additional Inherited Members

    Protected Member Functions inherited from Interface_EntityIterator
    void Reset ()
     Allows subclasses of EntityIterator to reevaluate an iteration.

    Detailed Description

    this class gives content of the CONNECTED COMPONENT(S) which include specific Entity(ies)

    Constructor & Destructor Documentation

    ◆ IFGraph_AllConnected() [1/2]

    IFGraph_AllConnected::IFGraph_AllConnected ( const Interface_Graph & agraph)

    creates an AllConnected from a graph, empty ready to be filled

    ◆ IFGraph_AllConnected() [2/2]

    IFGraph_AllConnected::IFGraph_AllConnected ( const Interface_Graph & agraph,
    const occ::handle< Standard_Transient > & ent )

    creates an AllConnected which memorizes Entities Connected to a given one, at any level : that is, itself, all Entities Shared by it and Sharing it, and so on. In other terms, this is the content of the CONNECTED COMPONENT which include a specific Entity

    Member Function Documentation

    ◆ Evaluate()

    void IFGraph_AllConnected::Evaluate ( )
    overridevirtual

    does the specific evaluation (Connected entities atall levels)

    Reimplemented from Interface_GraphContent.

    ◆ GetFromEntity()

    void IFGraph_AllConnected::GetFromEntity ( const occ::handle< Standard_Transient > & ent)

    adds an entity and its Connected ones to the list (allows to cumulate all Entities Connected by some ones) Note that if "ent" is in the already computed list,, no entity will be added, but if "ent" is not already in the list, a new Connected Component will be cumulated

    ◆ ResetData()

    void IFGraph_AllConnected::ResetData ( )

    Allows to restart on a new data set.


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