1 -- File: IFSelect_GraphCounter.cdl
2 -- Created: Thu Oct 15 14:58:46 1998
3 -- Author: Christian CAILLET
4 -- <cky@heliox.paris1.matra-dtv.fr>
5 ---Copyright: Matra Datavision 1998
8 class GraphCounter from IFSelect inherits SignCounter from IFSelect
10 ---Purpose : A GraphCounter computes values to be sorted with the help of
11 -- a Graph. I.E. not from a Signature
13 -- The default GraphCounter works with an Applied Selection (a
14 -- SelectDeduct), the value is the count of selected entities
15 -- from each input entities)
17 uses HSequenceOfTransient from TColStd,
18 Graph from Interface, SelectDeduct from IFSelect
22 Create (withmap : Boolean = Standard_True;
23 withlist : Boolean = Standard_False) returns mutable GraphCounter;
24 ---Purpose : Creates a GraphCounter, without applied selection
26 Applied (me) returns SelectDeduct;
27 ---Purpose : Returns the applied selection
29 SetApplied (me : mutable; sel : SelectDeduct);
30 ---Purpose : Sets a new applied selection
32 AddWithGraph (me : mutable; list : HSequenceOfTransient; graph : Graph)
34 ---Purpose : Adds a list of entities in the context given by the graph
35 -- Default takes the count of entities selected by the applied
36 -- selection, when it is given each entity of the list
41 theapplied : SelectDeduct;