1 -- File: STEPControl_ActorWrite.cdl
2 -- Created: Tue Jan 31 15:19:16 1995
3 -- Author: Dieter THIEMANN
5 ---Copyright: Matra Datavision 1995
8 class ActorWrite from STEPControl
9 inherits ActorOfFinderProcess from Transfer
11 ---Purpose : This class performs the transfer of a Shape from TopoDS
12 -- to AP203 or AP214 (CD2 or DIS)
15 uses FinderProcess, TransientProcess, Binder, Finder, StepModel from StepData,
17 StepModelType from STEPControl,
18 Axis2Placement3d from StepGeom,
19 ShapeRepresentation from StepShape,
20 ShapeDefinitionRepresentation from StepShape,
21 HAsciiString from TCollection,
22 ContextTool from STEPConstruct,
23 Part from STEPConstruct,
24 HSequenceOfShape from TopTools, -- For non-manifold topology processing (ssv; 13.11.2010)
25 NonManifoldSurfaceShapeRepresentation from StepShape -- For non-manifold topology processing (ssv; 13.11.2010)
29 Create returns mutable ActorWrite from STEPControl;
31 Recognize (me : mutable; start : Finder) returns Boolean is redefined;
33 Transfer (me : mutable; start : Finder; FP : mutable FinderProcess)
34 returns mutable Binder is redefined;
35 -- enchains : TransferShape , MakeProductData , and manages mode
36 -- "simple" or in Assembly
38 TransferSubShape (me : mutable; start : Finder;
39 SDR : ShapeDefinitionRepresentation from StepShape;
40 AX1 : out Axis2Placement3d from StepGeom;
41 FP : mutable FinderProcess;
42 shapeGroup : HSequenceOfShape from TopTools = NULL;
43 isManifold : Boolean = Standard_True)
44 returns mutable Binder;
46 TransferShape (me : mutable; start : Finder;
47 SDR : ShapeDefinitionRepresentation from StepShape;
48 FP : mutable FinderProcess;
49 shapeGroup : HSequenceOfShape from TopTools = NULL;
50 isManifold : Boolean = Standard_True)
51 returns mutable Binder;
53 TransferCompound (me : mutable; start : Finder;
54 SDR : ShapeDefinitionRepresentation from StepShape;
55 FP : mutable FinderProcess)
56 returns mutable Binder;
58 -- InitProductData (me: mutable) returns Part from STEPConstruct;
60 -- MakeProductData (me : mutable;
61 -- SR : ShapeRepresentation from StepShape;
62 -- SDRTool : Part from STEPConstruct;
63 -- model : StepModel from StepData;
65 -- returns mutable Binder;
68 SetMode (me : mutable; M : StepModelType from STEPControl);
70 Mode (me) returns StepModelType from STEPControl;
72 SetGroupMode (me : mutable; mode : Integer);
73 -- Default is 0 (no group item)
74 -- 1 for REPRESENTATION_RELATIONSHIP with ITEM_DEFINED_TRANSFORMATION
75 -- other positive values if needed (not implemented)
77 GroupMode (me) returns Integer;
79 SetTolerance (me : mutable; Tol : Real);
80 -- Tol <= 0 means Unset
82 IsAssembly (me; S: in out Shape from TopoDS) returns Boolean is virtual;
83 ---Purpose: Customizable method to check whether shape S should
84 -- be written as assembly or not
85 -- Default implementation uses flag GroupMode and analyses
87 -- NOTE: this method can modify shape
90 shapeGroup : HSequenceOfShape from TopTools;
91 FP : mutable FinderProcess;
92 isNMSSRCreated : in out Boolean)
93 returns NonManifoldSurfaceShapeRepresentation from StepShape
95 ---Purpose: Non-manifold shapes are stored in NMSSR group
96 -- (NON_MANIFOLD_SURFACE_SHAPE_REPRESENTATION).
97 -- Use this method to get the corresponding NMSSR (or
98 -- to create a new one if doesn't exist yet)
105 myContext: ContextTool from STEPConstruct;