0023024: Update headers of OCCT files
[occt.git] / src / GeomTools / GeomTools_CurveSet.cdl
CommitLineData
b311480e 1-- Created on: 1993-07-19
2-- Created by: Remi LEQUETTE
3-- Copyright (c) 1993-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
23
24
25class CurveSet from GeomTools
26
27 ---Purpose: Stores a set of Curves from Geom.
28
29uses
30 Curve from Geom,
31 IndexedMapOfTransient from TColStd,
32 ProgressIndicator from Message
33
34raises
35 OutOfRange from Standard
36
37is
38
39 Create returns CurveSet from GeomTools;
40 ---Purpose: Returns an empty set of Curves.
41
42 Clear(me : in out)
43 ---Purpose: Clears the content of the set.
44 is static;
45
46 Add(me : in out; C : Curve from Geom) returns Integer
47 ---Purpose: Incorporate a new Curve in the set and returns
48 -- its index.
49 is static;
50
51 Curve(me; I : Integer) returns Curve from Geom
52 ---Purpose: Returns the Curve of index <I>.
53 raises
54 OutOfRange from Standard
55 is static;
56
57 Index(me; C : Curve from Geom) returns Integer
58 ---Purpose: Returns the index of <L>.
59 is static;
60
61 Dump(me; OS : in out OStream)
62 ---Purpose: Dumps the content of me on the stream <OS>.
63 is static;
64
65 Write(me; OS : in out OStream)
66 ---Purpose: Writes the content of me on the stream <OS> in a
67 -- format that can be read back by Read.
68 is static;
69
70 Read(me : in out; IS : in out IStream)
71 ---Purpose: Reads the content of me from the stream <IS>. me
72 -- is first cleared.
73 --
74 is static;
75
76 --
77 -- class methods to write an read curves
78 --
79
80 PrintCurve(myclass; C : Curve from Geom;
81 OS : in out OStream;
82 compact : Boolean = Standard_False);
83 ---Purpose: Dumps the curve on the stream, if compact is True
84 -- use the compact format that can be read back.
85
86 ReadCurve(myclass; IS : in out IStream;
87 C : in out Curve from Geom)
88 returns IStream;
89 ---Purpose: Reads the curve from the stream. The curve is
90 -- assumed to have been writtent with the Print
91 -- method (compact = True).
92 --
93 ---C++: return &
94
95 SetProgress(me : in out; PR : ProgressIndicator from Message);
96
97 GetProgress(me) returns ProgressIndicator from Message;
98
99fields
100
101 myMap : IndexedMapOfTransient from TColStd;
102 myProgress : ProgressIndicator from Message;
103
104end CurveSet;
105
106