0024057: Eliminate compiler warning C4100 in MSVC++ with warning level 4
[occt.git] / src / IGESSelect / IGESSelect_ChangeLevelList.cdl
CommitLineData
b311480e 1-- Created on: 1994-08-25
2-- Created by: Christian CAILLET
3-- Copyright (c) 1994-1999 Matra Datavision
4-- Copyright (c) 1999-2012 OPEN CASCADE SAS
5--
6-- The content of this file is subject to the Open CASCADE Technology Public
7-- License Version 6.5 (the "License"). You may not use the content of this file
8-- except in compliance with the License. Please obtain a copy of the License
9-- at http://www.opencascade.org and read it completely before using this file.
10--
11-- The Initial Developer of the Original Code is Open CASCADE S.A.S., having its
12-- main offices at: 1, place des Freres Montgolfier, 78280 Guyancourt, France.
13--
14-- The Original Code and all software distributed under the License is
15-- distributed on an "AS IS" basis, without warranty of any kind, and the
16-- Initial Developer hereby disclaims all such warranties, including without
17-- limitation, any warranties of merchantability, fitness for a particular
18-- purpose or non-infringement. Please see the License for the specific terms
19-- and conditions governing the rights and limitations under the License.
20
7fd59977 21
22
23class ChangeLevelList from IGESSelect inherits ModelModifier from IGESSelect
24
25 ---Purpose : Changes Level List (in directory part) to a new single value
26 -- Only entities attached to a LevelListEntity are considered
27 -- If OldNumber is defined, only entities whose LevelList
28 -- contains its Value are processed. Else all LevelLists are.
29 --
30 -- Remark : this concerns the Directory Part only. The Level List
31 -- Entities themselves (their content) are not affected.
32 --
33 -- If NewNumber is defined (positive or zero), it gives the new
34 -- value for Level Number. Else, the first value of the LevelList
35 -- is set as new LevelNumber
36
37uses AsciiString from TCollection,
38 IGESModel, CopyTool, ContextModif, IntParam
39
40is
41
42 Create returns mutable ChangeLevelList;
43 ---Purpose : Creates a ChangeLevelList, not yet defined
44 -- (see SetOldNumber and SetNewNumber)
45
46 HasOldNumber (me) returns Boolean;
47 ---Purpose : Returns True if OldNumber is defined : then, only entities
48 -- which have a LevelList which contains the value are processed.
49 -- Else, all entities attached to a LevelList are.
50
51 OldNumber (me) returns mutable IntParam;
52 ---Purpose : Returns the parameter for OldNumber. If not defined (Null
53 -- Handle), it will be interpreted as "all level lists"
54
55 SetOldNumber (me : mutable; param : mutable IntParam);
56 ---Purpose : Sets a parameter for OldNumber
57
58 HasNewNumber (me) returns Boolean;
59 ---Purpose : Returns True if NewNumber is defined : then, it gives the new
60 -- value for Level Number. Else, the first value of the LevelList
61 -- is used as new Level Number.
62
63 NewNumber (me) returns mutable IntParam;
64 ---Purpose : Returns the parameter for NewNumber. If not defined (Null
65 -- Handle), it will be interpreted as "new value 0"
66
67 SetNewNumber (me : mutable; param : mutable IntParam);
68 ---Purpose : Sets a parameter for NewNumber
69
70
71 Performing (me; ctx : in out ContextModif;
72 target : mutable IGESModel;
73 TC : in out CopyTool);
74 ---Purpose : Specific action : considers selected target entities :
75 -- If OldNumber is not defined, all entities attached to a
76 -- Level List
77 -- If OldNumber is defined (value not negative), entities with a
78 -- Level List which contains this value
79 -- Attaches all these entities to value given by NewNumber, or
80 -- the first value of the Level List
81
82 Label (me) returns AsciiString from TCollection;
83 ---Purpose : Returns a text which begins by
84 -- "Changes Level Lists containing <old>", or
85 -- "Changes all Level Lists in D.E.", and ends by
86 -- " to Number <new>" or " to Number = first value in List"
87
88fields
89
90 theold : IntParam;
91 thenew : IntParam;
92
93end ChangeLevelList;