0024157: Parallelization of assembly part of BO
[occt.git] / src / ShapeProcessAPI / ShapeProcessAPI_ApplySequence.cdl
CommitLineData
b311480e 1-- Created on: 1999-06-22
2-- Created by: data exchange team
3-- Copyright (c) 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 ApplySequence from ShapeProcessAPI
24
25 ---Purpose: Applies one of the sequence read from resource file.
26
27uses
28
29 ShapeEnum from TopAbs,
30 Shape from TopoDS,
31 DataMapOfShapeShape from TopTools,
32 Printer from Message,
33 ShapeContext from ShapeProcess,
34 AsciiString from TCollection
35is
36
37 Create (rscName: CString; seqName: CString = "") returns ApplySequence from ShapeProcessAPI;
38 ---Purpose: Creates an object and loads resource file and sequence of
39 -- operators given by their names.
40
41 Context (me: in out) returns ShapeContext from ShapeProcess;
42 ---C++ : return &
43 ---Purpose: Returns object for managing resource file and sequence of
44 -- operators.
45
46 PrepareShape (me: in out; shape : Shape from TopoDS;
47 fillmap: Boolean = Standard_False;
48 until : ShapeEnum from TopAbs = TopAbs_SHAPE)
49 returns Shape from TopoDS;
50 ---Purpose: Performs sequence of operators stored in myRsc.
51 -- If <fillmap> is True adds history "shape-shape" into myMap
52 -- for shape and its subshapes until level <until> (included).
53 -- If <until> is TopAbs_SHAPE, all the subshapes are considered.
54
55 ClearMap (me: in out);
56 ---Purpose: Clears myMap with accumulated history.
57
58 Map (me) returns DataMapOfShapeShape from TopTools;
59 ---C++: return const &
60 ---Purpose: Returns myMap with accumulated history.
61
62 PrintPreparationResult (me);
63 ---Purpose: Prints result of preparation onto the messenger of the context.
64 -- Note that results can be accumulated from previous preparations
65 -- it method ClearMap was not called before PrepareShape.
66 ---Remark: At the moment outputs information only on shells and faces.
67
68fields
69
70 myContext: ShapeContext from ShapeProcess;
71 myMap : DataMapOfShapeShape from TopTools;
72 mySeq : AsciiString from TCollection;
73
74end ApplySequence;