Open CASCADE Technology 6.6.0
|
A GraphCounter computes values to be sorted with the help of
a Graph. I.E. not from a Signature
The default GraphCounter works with an Applied Selection (a
SelectDeduct), the value is the count of selected entities
from each input entities)
#include <IFSelect_GraphCounter.hxx>
Public Member Functions | |
IFSelect_GraphCounter (const Standard_Boolean withmap=Standard_True, const Standard_Boolean withlist=Standard_False) | |
Creates a GraphCounter, without applied selection | |
Handle_IFSelect_SelectDeduct | Applied () const |
Returns the applied selection | |
void | SetApplied (const Handle< IFSelect_SelectDeduct > &sel) |
Sets a new applied selection | |
virtual void | AddWithGraph (const Handle< TColStd_HSequenceOfTransient > &list, const Interface_Graph &graph) |
Adds a list of entities in the context given by the graph Default takes the count of entities selected by the applied selection, when it is given each entity of the list Can be redefined |
IFSelect_GraphCounter::IFSelect_GraphCounter | ( | const Standard_Boolean | withmap = Standard_True , |
const Standard_Boolean | withlist = Standard_False |
||
) |
virtual void IFSelect_GraphCounter::AddWithGraph | ( | const Handle< TColStd_HSequenceOfTransient > & | list, |
const Interface_Graph & | graph | ||
) | [virtual] |
Reimplemented from IFSelect_SignCounter.
Handle_IFSelect_SelectDeduct IFSelect_GraphCounter::Applied | ( | ) | const |
void IFSelect_GraphCounter::SetApplied | ( | const Handle< IFSelect_SelectDeduct > & | sel | ) |