1 -- File: IFSelect_SelectControl.cdl
2 -- Created: Wed Feb 16 10:07:01 1994
3 -- Author: Christian CAILLET
5 ---Copyright: Matra Datavision 1994
8 deferred class SelectControl from IFSelect inherits Selection
10 ---Purpose : A SelectControl kind Selection works with two input Selections
11 -- in a dissymmetric way : the Main Input which gives an input
12 -- list of Entities, to be processed, and the Second Input which
13 -- gives another list, to be used to filter the main input.
15 -- e.g. : SelectDiff retains the items of the Main Input which
16 -- are not in the Control Input (which acts as Diff Input)
17 -- or a specific selection which retains Entities from the Main
18 -- Input if and only if they are concerned by an entity from
19 -- the Control Input (such as Views in IGES, etc...)
21 -- The way RootResult and Label are produced are at charge of
24 uses SelectionIterator
28 MainInput (me) returns mutable Selection;
29 ---Purpose : Returns the Main Input Selection
31 HasSecondInput (me) returns Boolean;
32 ---Purpose : Returns True if a Control Input is defined
33 -- Thus, Result can be computed differently if there is a
34 -- Control Input or if there is none
36 SecondInput (me) returns mutable Selection;
37 ---Purpose : Returns the Control Input Selection, or a Null Handle
39 SetMainInput (me : mutable; sel : mutable Selection);
40 ---Purpose : Sets a Selection to be the Main Input
42 SetSecondInput (me : mutable; sel : mutable Selection);
43 ---Purpose : Sets a Selection to be the Control Input
46 -- RootResult,Label remain to be defined by each class of Selection
47 -- (also HasUniqueResult if it applies)
49 FillIterator (me; iter : in out SelectionIterator);
50 ---Purpose : Puts in an Iterator the Selections from which "me" depends
51 -- That is to say, the list of Input Selections
57 thesecond : Selection;