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 | -- |
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 IntercharacterSpacing from IGESGraph inherits IGESEntity |
18 | |
19 | ---Purpose: defines IGESIntercharacterSpacing, Type <406> Form <18> |
20 | -- in package IGESGraph |
21 | -- |
22 | -- Specifies the gap between letters when fixed-pitch |
23 | -- spacing is used |
24 | |
25 | uses Integer, Real -- no one specific type |
26 | |
27 | |
28 | is |
29 | |
6e33d3ce |
30 | Create returns IntercharacterSpacing; |
7fd59977 |
31 | |
32 | -- Specific Methods pertaining to the class |
33 | |
34 | Init (me : mutable; |
35 | nbProps : Integer; |
36 | anISpace : Real); |
37 | ---Purpose : This method is used to set the fields of the class |
38 | -- IntercharacterSpacing |
39 | -- - nbProps : Number of property values (NP = 1) |
40 | -- - anISpace : Intercharacter spacing percentage |
41 | |
42 | NbPropertyValues (me) returns Integer; |
43 | ---Purpose : returns the number of property values in <me> |
44 | |
45 | ISpace (me) returns Real; |
46 | ---Purpose : returns the Intercharacter Space of <me> in percentage |
47 | -- of the text height (Range = 0..100) |
48 | |
49 | fields |
50 | |
51 | -- |
52 | -- Class : IGESGraph_IntercharacterSpacing |
53 | -- |
54 | -- Purpose : Declaration of the variables specific to a |
55 | -- Intercharacter Spacing property. |
56 | -- |
57 | -- Reminder : An Intercharacter spacing property is defined by : |
58 | -- - Number of property values (NP=1) |
59 | -- - ISpace |
60 | -- |
61 | |
62 | theNbPropertyValues : Integer; |
63 | |
64 | theISpace : Real; |
65 | |
66 | end IntercharacterSpacing; |