b311480e |
1 | -- Created on: 1993-01-09 |
2 | -- Created by: CKY / Contract Toubro-Larsen (Kiran) |
3 | -- Copyright (c) 1993-1999 Matra Datavision |
973c2be1 |
4 | -- Copyright (c) 1999-2014 OPEN CASCADE SAS |
7fd59977 |
5 | -- |
973c2be1 |
6 | -- This file is part of Open CASCADE Technology software library. |
7fd59977 |
7 | -- |
d5f74e42 |
8 | -- This library is free software; you can redistribute it and/or modify it under |
9 | -- the terms of the GNU Lesser General Public License version 2.1 as published |
973c2be1 |
10 | -- by the Free Software Foundation, with special exception defined in the file |
11 | -- OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT |
12 | -- distribution for complete text of the license and disclaimer of any warranty. |
7fd59977 |
13 | -- |
973c2be1 |
14 | -- Alternatively, this file may be used under the terms of Open CASCADE |
15 | -- commercial license or contractual agreement. |
7fd59977 |
16 | |
17 | class CompositeCurve from IGESGeom inherits IGESEntity |
18 | |
19 | ---Purpose: defines IGESCompositeCurve, Type <102> Form <0> |
20 | -- in package IGESGeom |
21 | -- A composite curve is defined as an ordered list of entities |
22 | -- consisting of a point, connect point and parametrised curve |
23 | -- entities (excluding the CompositeCurve entity). |
24 | |
25 | uses |
26 | |
27 | HArray1OfIGESEntity from IGESData |
28 | |
29 | raises OutOfRange |
30 | |
31 | is |
32 | |
6e33d3ce |
33 | Create returns CompositeCurve; |
7fd59977 |
34 | |
35 | -- Specific Methods pertaining to the class |
36 | |
37 | Init (me : mutable; |
38 | allEntities : HArray1OfIGESEntity); |
39 | ---Purpose : This method is used to set the fields of the class |
40 | -- CompositeCurve |
41 | -- - allEntities : Constituent Entities of the composite curve |
42 | |
43 | NbCurves (me) returns Integer; |
44 | ---Purpose : returns the number of curves contained in the CompositeCurve |
45 | |
46 | Curve (me; Index : Integer) returns IGESEntity |
47 | raises OutOfRange; |
48 | ---Purpose : returns Component of the CompositeCurve (a curve or a point) |
49 | -- raises exception if Index <= 0 or Index > NbCurves() |
50 | |
51 | fields |
52 | |
53 | -- |
54 | -- Class : IGESGeom_CompositeCurve |
55 | -- |
56 | -- Purpose : Declaration of variables specific to the definition |
57 | -- of the Class CompositeCurve. |
58 | -- |
59 | -- Reminder : A CompositeCurve instance is defined by : |
60 | -- The collection of constituent curves which could |
61 | -- be of type point, connect point or parametric curve |
62 | -- entities |
63 | |
64 | theEntities : HArray1OfIGESEntity; |
65 | |
66 | end CompositeCurve; |