IFGraph
OCCT package IFGraph: IFGraph_AllConnected, IFGraph_AllShared, IFGraph_Articulations, IFGraph_Compare, and 7 more bound classes.
IFGraph_AllConnected
this class gives content of the CONNECTED COMPONENT(S) which include specific Entity(ies)
Instance methods(2)
IFGraph_AllShared
this class determines all Entities shared by some specific ones, at any level (those which will be lead in a Transfer for instance)
Instance methods(2)
IFGraph_Articulations
this class gives entities which are Articulation points in a whole Model or in a sub-part An Articulation Point divides the graph in two (or more) disconnected sub-graphs Identifying Articulation Points allows improving efficiency of splitting a set of Entities into sub-sets
Instance methods(2)
IFGraph_Compare
this class evaluates effect of two compared sub-parts : cumulation (union), common part (intersection-overlapping) part specific to first sub-part or to the second one Results are kept in a Graph, several question can be set Basic Iteration gives Cumulation (union)
Instance methods(5)
- Merge(): void
merges the second list into the first one, hence the second list is empty
- RemoveSecond(): void
Removes the contents of second list.
- KeepCommon(): void
Keeps only Common part, sets it as First list and clears second list.
- ResetData(): void
Allows to restart on a new data set.
- Evaluate(): void
Recomputes result of comparing to sub-parts.
IFGraph_ConnectedComponants
determines Connected Components in a Graph. They define disjoined sets of Entities.
IFGraph_Cumulate
this class evaluates effect of cumulated sub-parts : overlapping, forgotten entities Results are kept in a Graph, several question can be set Basic Iteration gives entities which are part of Cumulation
Instance methods(4)
- ResetData(): void
Allows to restart on a new data set.
- Evaluate(): void
Evaluates the result of cumulation.
- NbTimes(ent: Standard_Transient): number
returns number of times an Entity has been counted (0 means forgotten, more than 1 means overlap, 1 is normal)
Parameters (1)ent
- HighestNbTimes(): number
Returns the highest number of times recorded for every Entity (0 means empty, 1 means no overlap).
IFGraph_Cycles
determines strong components in a graph which are Cycles
Constructors(1)
- constructor(subparts: IFGraph_StrongComponants): IFGraph_Cycles
creates from a StrongComponants which was already computed
Parameters (1)subparts
IFGraph_ExternalSources
this class gives entities which are Source of entities of a sub-part, but are not contained by this sub-part
Instance methods(3)
IFGraph_SCRoots
determines strong components in a graph which are Roots
Constructors(1)
- constructor(subparts: IFGraph_StrongComponants): IFGraph_SCRoots
creates from a StrongComponants which was already computed
Parameters (1)subparts
IFGraph_StrongComponants
determines strong components of a graph, that is isolated entities (single components) or loops
IFGraph_SubPartsIterator
defines general form for graph classes of which result is not a single iteration on Entities, but a nested one : External iteration works on sub-parts, identified by each class (according to its algorithm) Internal Iteration concerns Entities of a sub-part Sub-Parts are assumed to be disjoined; if they are not, the first one has priority
A SubPartsIterator can work in two steps : first, load entities which have to be processed then, analyse to set those entities into sub-parts
Instance methods(17)
- AddPart(): void
Adds an empty part and sets it to receive entities.
- NbParts(): number
Returns count of registered parts.
- PartNum(): number
Returns numero of part which currently receives entities (0 at load time).
- SetLoad(): void
Sets SubPartIterator to get Entities (by GetFromEntity & GetFromIter) into load status, to be analysed later.
- SetPartNum(num: number): void
Sets numero of receiving part to a new value Error if not in range (1-NbParts).
Parameters (1)num
- GetFromEntity(ent: Standard_Transient, shared: boolean): void
Adds an Entity : into load status if in Load mode, to the current part if there is one. If shared is True, adds also its shared ones (shared at all levels).
Parameters (2)entshared
- Reset(): void
Erases data (parts, entities) : "me" becomes empty and in load status.
- Evaluate(): void
Called by Clear, this method allows evaluation just before iteration; its default is doing nothing, it is designed to be redefined.
Returns entities which where loaded (not set into a sub-part).
- IsLoaded(ent: Standard_Transient): boolean
Returns True if an Entity is loaded (either set into a sub-part or not).
Parameters (1)ent
- IsInPart(ent: Standard_Transient): boolean
Returns True if an Entity is Present in a sub-part.
Parameters (1)ent
- EntityPartNum(ent: Standard_Transient): number
Returns number of the sub-part in which an Entity has been set if it is not in a sub-part (or not loaded at all), Returns 0.
Parameters (1)ent
- Start(): void
Sets iteration to its beginning; calls Evaluate.
- More(): boolean
Returns True if there are more sub-parts to iterate on Note : an empty sub-part is not taken in account by Iteration.
- Next(): void
Sets iteration to the next sub-part if there is not, IsSingle-Entities will raises an exception.
- IsSingle(): boolean
Returns True if current sub-part is single (has only one Entity) Error if there is no sub-part to iterate now.
Returns the first entity of current sub-part, that is for a Single one, the only one it contains Error : same as above (end of iteration).