1 -- File: IGESSelect_AutoCorrect.cdl
2 -- Created: Wed Jun 1 16:18:06 1994
3 -- Author: Christian CAILLET
5 ---Copyright: Matra Datavision 1994
8 class AutoCorrect from IGESSelect inherits ModelModifier from IGESSelect
10 ---Purpose : Does the absolutely effective corrections on IGES Entity.
11 -- That is to say : regarding the norm in details, some values
12 -- have mandatory values, or set of values with constraints.
13 -- When such values/constraints are univoque, they can be forced.
14 -- Also nullifies items of Directory Part, Associativities, and
15 -- Properties, which are not (or not longer) in <target> Model.
17 -- Works by calling a BasicEditor from IGESData
18 -- Works with the specific IGES Services : DirChecker which
19 -- allows to correct data in "Directory Part" of Entities (such
20 -- as required values for status, or references to be null), and
21 -- the specific IGES service OwnCorrect, which is specialised for
22 -- each type of entity.
24 -- Remark : this does not comprise the computation of use flag or
25 -- subordinate status according references, which is made by
26 -- the ModelModifier class ComputeStatus.
28 -- The Input Selection, when present, designates the entities to
29 -- be corrected. If it is not present, all the entities of the
30 -- model are corrected.
32 uses AsciiString from TCollection,
33 CopyTool, IGESModel, ContextModif,
34 GeneralLib, SpecificLib, IGESEntity
38 Create returns mutable AutoCorrect;
39 ---Purpose : Creates an AutoCorrect.
41 Performing (me; ctx : in out ContextModif;
42 target : mutable IGESModel;
43 TC : in out CopyTool);
44 ---Purpose : Specific action : corrects entities when it is absolutely
45 -- obvious, i.e. non equivoque (by DirChecker and specific
46 -- service OwnCorrect) : works with a protocol.
48 Label (me) returns AsciiString from TCollection;
49 ---Purpose : Returns a text which is
50 -- "Auto-correction of IGES Entities"