b311480e |
1 | -- Created on: 1993-01-09 |
2 | -- Created by: CKY / Contract Toubro-Larsen ( Arun MENON ) |
3 | -- Copyright (c) 1993-1999 Matra Datavision |
4 | -- Copyright (c) 1999-2012 OPEN CASCADE SAS |
7fd59977 |
5 | -- |
b311480e |
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. |
7fd59977 |
10 | -- |
b311480e |
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 | class BasicDimension from IGESDimen inherits IGESEntity |
23 | |
24 | ---Purpose: Defines IGES Basic Dimension, Type 406, Form 31, |
25 | -- in package IGESDimen |
26 | -- The basic Dimension Property indicates that the referencing |
27 | -- dimension entity is to be displayed with a box around text. |
28 | |
29 | uses |
30 | |
31 | Pnt2d from gp, |
32 | XY from gp |
33 | |
34 | is |
35 | |
36 | Create returns mutable BasicDimension; |
37 | |
38 | -- --specific-- -- |
39 | |
40 | Init(me : mutable; |
41 | nbPropVal : Integer; |
42 | lowerLeft, lowerRight : XY; |
43 | upperRight, upperLeft : XY); |
44 | -- This method is used to set the fields of the |
45 | -- class BasicDimension |
46 | -- - nbPropVal : Number of property values |
47 | -- - lowerLeft : Coordinates of lower left corner |
48 | -- - lowerRight : Coordinates of lower right corner |
49 | -- - upperRight : Coordinates of upper right corner |
50 | -- - upperLeft : Coordinates of upper left corner |
51 | |
52 | NbPropertyValues(me) returns Integer; |
53 | ---Purpose : returns the number of properties = 8 |
54 | |
55 | LowerLeft(me) returns Pnt2d; |
56 | ---Purpose : returns coordinates of lower left corner |
57 | |
58 | LowerRight(me) returns Pnt2d; |
59 | ---Purpose : returns coordinates of lower right corner |
60 | |
61 | UpperRight(me) returns Pnt2d; |
62 | ---Purpose : returns coordinates of upper right corner |
63 | |
64 | UpperLeft(me) returns Pnt2d; |
65 | ---Purpose : returns coordinates of upper left corner |
66 | |
67 | fields |
68 | |
69 | -- |
70 | -- Class : IGESDimen_BasicDimension |
71 | -- |
72 | -- Purpose : Declaration of variables specific to the definition |
73 | -- of the Class BasicDimension. |
74 | -- |
75 | -- Reminder : A BasicDimension instance is defined by : |
76 | -- - The number of property values, always 8 |
77 | -- - Coordinates of lower left corner |
78 | -- - Coordinates of lower right corner |
79 | -- - Coordinates of upper right corner |
80 | -- - Coordinates of upper left corner |
81 | -- |
82 | -- |
83 | |
84 | theNbPropertyValues : Integer; |
85 | theLowerLeft : XY; |
86 | theLowerRight : XY; |
87 | theUpperRight : XY; |
88 | theUpperLeft : XY; |
89 | |
90 | end BasicDimension; |