0024157: Parallelization of assembly part of BO
[occt.git] / src / STEPControl / STEPControl_ActorRead.cdl
CommitLineData
b311480e 1-- Created on: 1994-12-21
2-- Created by: Dieter THIEMANN
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 ActorRead from STEPControl
24 inherits ActorOfTransientProcess from Transfer
25
26 ---Purpose : This class performs the transfer of an Entity from
27 -- AP214 and AP203, either Geometric or Topologic.
28 --
29 -- I.E. for each type of Entity, it invokes the appropriate Tool
30 -- then returns the Binder which contains the Result
31
32uses
33
34 TransientProcess from Transfer,
35 Binder from Transfer,
36 Trsf from gp,
37 Axis2Placement3d from StepGeom,
38 Representation from StepRepr,
39 RepresentationRelationship from StepRepr,
40 ProductDefinition from StepBasic,
41 NextAssemblyUsageOccurrence from StepRepr,
42 ShapeRepresentation from StepShape,
43 ContextDependentShapeRepresentation from StepShape,
44 ShapeRepresentationRelationship from StepRepr,
45 GeometricRepresentationItem from StepGeom,
46 MappedItem from StepRepr,
47 FaceSurface from StepShape,
48 ShapeBinder from TransferBRep,
49 NMTool from StepToTopoDS, -- To proceed with non-manifold cases (ssv; 13.11.2010)
50 Shell from TopoDS,
51 ListOfShape from TopTools,
52 Compound from TopoDS,
53 IndexedDataMapOfShapeListOfShape from TopTools
54
55is
56
57 Create returns mutable ActorRead from STEPControl;
58
59 Recognize (me : mutable; start : Transient) returns Boolean is redefined;
60
61 Transfer (me : mutable; start : Transient;
62 TP : mutable TransientProcess from Transfer)
63 returns mutable Binder from Transfer is redefined;
64 -- calls TransferShape
65
66 TransferShape (me : mutable;
67 start : Transient;
68 TP : mutable TransientProcess from Transfer;
69 isManifold : Boolean = Standard_True)
70 returns mutable Binder from Transfer;
71
72 ---Private: unit and uncertainty context management
73
74 PrepareUnits (me : mutable; rep: Representation from StepRepr;
75 TP: mutable TransientProcess from Transfer);
76 ---Purpose: set units and tolerances context by given ShapeRepresentation
77
78 ResetUnits (me: mutable);
79 ---Purpose: reset units and tolerances context to default
80 --- (mm, radians, read.precision.val, etc.)
81
82 ComputeTransformation (me: mutable; Origin, Target: Axis2Placement3d from StepGeom;
83 OrigContext, TargContext: Representation from StepRepr;
84 TP: mutable TransientProcess from Transfer;
85 Trsf: out Trsf from gp)
86 returns Boolean;
87 ---Purpose: Computes transformation defined by two axis placements (in MAPPED_ITEM
88 -- or ITEM_DEFINED_TRANSFORMATION) taking into account their
89 -- representation contexts (i.e. units, which may be different)
90 -- Returns True if transformation is computed and is not an identity.
91
92 ComputeSRRWT (me: mutable; SRR: RepresentationRelationship from StepRepr;
93 TP: mutable TransientProcess from Transfer;
94 Trsf: out Trsf from gp)
95 returns Boolean;
96 ---Purpose: Computes transformation defined by given
97 -- REPRESENTATION_RELATIONSHIP_WITH_TRANSFORMATION
98
99 TransferEntity(me: mutable; PD : ProductDefinition from StepBasic;
100 TP : mutable TransientProcess from Transfer) returns mutable ShapeBinder from TransferBRep is protected;
101 ---Purpose:Transfers product definition entity
102
103
104 TransferEntity(me: mutable; NAUO : NextAssemblyUsageOccurrence from StepRepr;
105 TP : mutable TransientProcess from Transfer) returns mutable ShapeBinder from TransferBRep is protected;
106 ---Purpose:Transfers next assembly usage occurence entity
107
108 TransferEntity(me: mutable; sr : ShapeRepresentation from StepShape;
109 TP : mutable TransientProcess from Transfer;
110 isBound : out Boolean ) returns mutable ShapeBinder from TransferBRep is protected;
111 ---Purpose:Transfers shape representation entity
112
113
114 TransferEntity(me: mutable; CDSR : ContextDependentShapeRepresentation from StepShape;
115 TP : mutable TransientProcess from Transfer) returns mutable ShapeBinder from TransferBRep is protected;
116 ---Purpose:Transfers context dependent shape representation entity
117
118 TransferEntity(me: mutable; und : ShapeRepresentationRelationship from StepRepr;
119 TP : mutable TransientProcess from Transfer;
120 nbrep : Integer =0) returns mutable ShapeBinder from TransferBRep is protected;
121 ---Purpose:Transfers shape representation relationship entity
122
123
124 TransferEntity(me : mutable;
125 git : GeometricRepresentationItem from StepGeom;
126 TP : mutable TransientProcess from Transfer;
127 isManifold : Boolean) returns mutable ShapeBinder from TransferBRep is protected;
128 ---Purpose:Transfers geometric representation item entity such as ManifoldSolidBRep ,...etc
129
130 TransferEntity(me: mutable; mapit : MappedItem from StepRepr;
131 TP : mutable TransientProcess from Transfer) returns mutable ShapeBinder from TransferBRep is protected;
132 ---Purpose:Transfers mapped item
133
134 TransferEntity(me: mutable; fs : FaceSurface from StepShape;
135 TP : mutable TransientProcess from Transfer) returns mutable ShapeBinder from TransferBRep is protected;
136 ---Purpose:Transfers FaceSurface entity
137
138 OldWay(me: mutable; start : Transient;
139 TP : mutable TransientProcess from Transfer) returns mutable ShapeBinder from TransferBRep is protected;
140 ---Purpose:Tranlates file by old way when CDSR are roots . Acts only if "read.step.product_mode" is equal Off.
141
142 closeIDEASShell(me : mutable;
143 shell : in Shell from TopoDS;
144 closingShells : in ListOfShape from TopTools)
145 returns Shell from TopoDS
146 is private;
147
148 computeIDEASClosings(me : mutable;
149 comp : in Compound from TopoDS;
150 shellClosingMap : in out IndexedDataMapOfShapeListOfShape from TopTools)
151 is private;
152
153fields
154
155-- theUnitFactor : Real; -- Conversion unit factor.
156-- theVTol : Real; -- Tolerance for Vertices
157-- theETol : Real; -- Tolerance for Edges
158-- theFTol : Real; -- Tolerance for Faces
159 myNMTool : NMTool from StepToTopoDS; -- To proceed with non-manifold cases (ssv; 13.11.2010)
160 myPrecision : Real;
161 myMaxTol : Real;
162 mySRContext: Representation from StepRepr; -- context for unuts
163
164end ActorRead;