Open CASCADE Technology 6.6.0
|
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
#include <IFGraph_Cumulate.hxx>
Public Member Functions | |
IFGraph_Cumulate (const Interface_Graph &agraph) | |
creates empty Cumulate, ready to work | |
void | GetFromEntity (const Handle< Standard_Transient > &ent) |
adds an entity and its shared ones to the list | |
void | GetFromIter (const Interface_EntityIterator &iter) |
adds a list of entities (as an iterator) as such, that is, without their shared entities (use AllShared to have them) | |
void | ResetData () |
Allows to restart on a new data set | |
virtual void | Evaluate () |
Evaluates the result of cumulation | |
Interface_EntityIterator | Overlapped () const |
returns entities which are taken several times | |
Interface_EntityIterator | Forgotten () const |
returns entities which are not taken | |
Interface_EntityIterator | PerCount (const Standard_Integer count=1) const |
Returns entities taken a given count of times (0 : same as Forgotten, 1 : same as no Overlap : default) | |
Standard_Integer | NbTimes (const Handle< Standard_Transient > &ent) const |
returns number of times an Entity has been counted (0 means forgotten, more than 1 means overlap, 1 is normal) | |
Standard_Integer | HighestNbTimes () const |
Returns the highest number of times recorded for every Entity (0 means empty, 1 means no overlap) |
IFGraph_Cumulate::IFGraph_Cumulate | ( | const Interface_Graph & | agraph | ) |
virtual void IFGraph_Cumulate::Evaluate | ( | ) | [virtual] |
Reimplemented from Interface_GraphContent.
Interface_EntityIterator IFGraph_Cumulate::Forgotten | ( | ) | const |
void IFGraph_Cumulate::GetFromEntity | ( | const Handle< Standard_Transient > & | ent | ) |
void IFGraph_Cumulate::GetFromIter | ( | const Interface_EntityIterator & | iter | ) |
Standard_Integer IFGraph_Cumulate::HighestNbTimes | ( | ) | const |
Standard_Integer IFGraph_Cumulate::NbTimes | ( | const Handle< Standard_Transient > & | ent | ) | const |
Interface_EntityIterator IFGraph_Cumulate::Overlapped | ( | ) | const |
Interface_EntityIterator IFGraph_Cumulate::PerCount | ( | const Standard_Integer | count = 1 | ) | const |
void IFGraph_Cumulate::ResetData | ( | ) |