b311480e |
1 | -- Created on: 1993-01-09 |
2 | -- Created by: CKY / Contract Toubro-Larsen ( TCD ) |
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 DrawingSize from IGESGraph inherits IGESEntity |
18 | |
19 | ---Purpose: defines IGESDrawingSize, Type <406> Form <16> |
20 | -- in package IGESGraph |
21 | -- |
22 | -- Specifies the drawing size in drawing units. The |
23 | -- origin of the drawing is defined to be (0,0) in |
24 | -- drawing space |
25 | |
26 | uses Integer, Real -- no one specific type |
27 | |
28 | |
29 | is |
30 | |
31 | Create returns mutable DrawingSize; |
32 | |
33 | -- Specific Methods pertaining to the class |
34 | |
35 | Init (me : mutable; |
36 | nbProps : Integer; |
37 | aXSize : Real; |
38 | aYSize : Real); |
39 | ---Purpose : This method is used to set the fields of the class |
40 | -- DrawingSize |
41 | -- - nbProps : Number of property values (NP = 2) |
42 | -- - aXSize : Extent of Drawing along positive XD axis |
43 | -- - aYSize : Extent of Drawing along positive YD axis |
44 | |
45 | -- Specific Access Methods : According to each type of Entity |
46 | |
47 | NbPropertyValues (me) returns Integer; |
48 | ---Purpose : returns the number of property values in <me> (NP = 2) |
49 | |
50 | XSize (me) returns Real; |
51 | ---Purpose : returns the extent of Drawing along positive XD axis |
52 | |
53 | YSize (me) returns Real; |
54 | ---Purpose : returns the extent of Drawing along positive YD axis |
55 | |
56 | fields |
57 | |
58 | -- |
59 | -- Class : IGESGraph_DrawingSize |
60 | -- |
61 | -- Purpose : Declaration of the variables specific to a Drawing Size. |
62 | -- |
63 | -- Reminder : A Drawing Size is defined by : |
64 | -- - Number of property values |
65 | -- - X Size |
66 | -- - Y Size |
67 | -- |
68 | |
69 | theNbPropertyValues : Integer; |
70 | |
71 | theXSize : Real; |
72 | |
73 | theYSize : Real; |
74 | |
75 | end DrawingSize; |