b311480e |
1 | -- Created on: 1993-01-13 |
2 | -- Created by: CKY / Contract Toubro-Larsen ( Deepak PRABHU ) |
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 | -- |
973c2be1 |
8 | -- This library is free software; you can redistribute it and / or modify it |
9 | -- under the terms of the GNU Lesser General Public version 2.1 as published |
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 Section from IGESDimen inherits IGESEntity |
18 | |
19 | ---Purpose: defines Section, Type <106> Form <31-38> |
20 | -- in package IGESDimen |
21 | -- Contains information to display sectioned sides |
22 | |
23 | uses |
24 | |
25 | Pnt2d from gp, |
26 | XY from gp, |
27 | Pnt from gp, |
28 | XYZ from gp, |
29 | HArray1OfXY from TColgp |
30 | |
31 | raises OutOfRange |
32 | |
33 | is |
34 | |
35 | Create returns mutable Section; |
36 | |
37 | -- Specific Methods pertaining to the class |
38 | |
39 | Init (me : mutable; |
40 | dataType : Integer; |
41 | aDisp : Real; |
42 | dataPoints : HArray1OfXY); |
43 | ---Purpose : This method is used to set the fields of the class |
44 | -- Section |
45 | -- - dataType : Interpretation Flag, always = 1 |
46 | -- - aDisp : Common z displacement |
47 | -- - dataPoints : Data points |
48 | |
49 | SetFormNumber (me : mutable; form : Integer) raises OutOfRange; |
50 | ---Purpose : Changes FormNumber (indicates the Type of the Hatches) |
51 | -- Error if not in range [31-38] |
52 | |
53 | |
54 | Datatype (me) returns Integer; |
55 | ---Purpose : returns Interpretation Flag, always = 1 |
56 | |
57 | NbPoints (me) returns Integer; |
58 | ---Purpose : returns number of Data Points |
59 | |
60 | ZDisplacement (me) returns Real; |
61 | ---Purpose : returns common Z displacement |
62 | |
63 | Point (me; Index : Integer) returns Pnt |
64 | raises OutOfRange; |
65 | ---Purpose : returns Index'th data point |
66 | -- raises exception if Index <= 0 or Index > NbPoints() |
67 | |
68 | TransformedPoint (me; Index : Integer) returns Pnt |
69 | raises OutOfRange; |
70 | ---Purpose : returns Index'th data point after Transformation |
71 | -- raises exception if Index <= 0 or Index > NbPoints() |
72 | |
73 | fields |
74 | |
75 | -- |
76 | -- Class : IGESDimen_Section |
77 | -- |
78 | -- Purpose : Declaration of variables specific to the definition |
79 | -- of the Class Section. |
80 | -- |
81 | -- Reminder : A Section instance is defined by : |
82 | -- - Interpretation Flag, always = 1 |
83 | -- - Common Z displacement |
84 | -- - Data points |
85 | -- An Section Entity has 8 forms. The form number describes how the data |
86 | -- is to be interpreted. The point data is a list of points, Z value is |
87 | -- constant and N is an even integer. |
88 | |
89 | theDatatype : Integer; |
90 | theZDisplacement : Real; |
91 | theDataPoints : HArray1OfXY; |
92 | |
93 | end Section; |