0022731: Error on attempt to write in IGES 5.3 the attached brep model
[occt.git] / src / IGESControl / IGESControl_Controller.cdl
CommitLineData
7fd59977 1-- File: IGESControl_Controller.cdl
2-- Created: Wed Mar 15 13:09:14 1995
3-- Author: Christian CAILLET
4-- <cky@anion>
5---Copyright: Matra Datavision 1995
6
7
8class Controller from IGESControl inherits Controller from XSControl
9
10 ---Purpose : Controller for IGES-5.1
11
12uses
13
14 CString,
15 Protocol from Interface,
16 InterfaceModel from Interface,
17 WorkLibrary from IFSelect,
18 ReturnStatus from IFSelect,
19 ActorOfTransientProcess from Transfer,
20 FinderProcess from Transfer,
21 ActorOfFinderProcess from Transfer,
22 WorkSession from XSControl,
23 Shape from TopoDS
24
25is
26
27 Create (modefnes : Boolean = Standard_False)
28 returns mutable Controller from IGESControl;
29 ---Purpose : Initializes the use of IGES Norm (the first time) and returns
30 -- a Controller for IGES-5.1
31 -- If <modefnes> is True, sets it to internal FNES format
32
33 NewModel (me) returns mutable InterfaceModel from Interface;
34 ---Purpose : Creates a new empty Model ready to receive data of the Norm.
35 -- It is taken from IGES Template Model
36
37 ActorRead (me; model : InterfaceModel)
38 returns mutable ActorOfTransientProcess from Transfer;
39 ---Purpose : Returns the Actor for Read attached to the pair (norm,appli)
40 -- It is an Actor from IGESToBRep, adapted from an IGESModel :
41 -- Unit, tolerances
42
43 TransferWriteShape (me; shape : Shape from TopoDS;
44 FP : mutable FinderProcess from Transfer;
45 model : mutable InterfaceModel from Interface;
46 modetrans : Integer = 0)
47 returns ReturnStatus is redefined;
48 ---Purpose : Takes one Shape and transfers it to the InterfaceModel
49 -- (already created by NewModel for instance)
50 -- <modetrans> is to be interpreted by each kind of XstepAdaptor
51 -- Returns a status : 0 OK 1 No result 2 Fail -1 bad modeshape
52 -- -2 bad model (requires an IGESModel)
53 -- modeshape : 0 groupe of face (version < 5.1)
54 -- 1 BREP-version 5.1 of IGES
55
56 Init (myclass) returns Boolean;
57 ---Purpose : Standard Initialisation. It creates a Controller for IGES and
58 -- records it to various names, available to select it later
59 -- Returns True when done, False if could not be done
60 -- Also, it creates and records an Adaptor for FNES
61 Customise (me: mutable; WS : in out WorkSession from XSControl) is redefined;
62fields
63
64 themode : Boolean;
65
66end Controller;