b311480e |
1 | -- Created on: 1993-01-11 |
2 | -- Created by: CKY / Contract Toubro-Larsen ( SIVA ) |
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 PointDimension from IGESDimen inherits IGESEntity |
18 | |
19 | |
20 | ---Purpose: defines IGES Point Dimension, Type <220> Form <0>, |
21 | -- in package IGESDimen |
22 | -- A Point Dimension Entity consists of a leader, text, and |
23 | -- an optional circle or hexagon enclosing the text |
24 | -- IGES specs for this entity mention SimpleClosedPlanarCurve |
25 | -- Entity(106/63)which is not listed in LIST.Text In the sequel |
26 | -- we have ignored this & considered only the other two entity |
27 | -- for representing the hexagon or circle enclosing the text. |
28 | |
29 | uses |
30 | |
31 | LeaderArrow from IGESDimen, |
32 | GeneralNote from IGESDimen, |
33 | CircularArc from IGESGeom, |
34 | CompositeCurve from IGESGeom |
35 | |
36 | is |
37 | |
38 | Create returns mutable PointDimension; |
39 | |
40 | -- --specific-- -- |
41 | Init(me : mutable; |
42 | aNote : GeneralNote; |
43 | anArrow : LeaderArrow; |
44 | aGeom : IGESEntity); |
45 | -- This method is used to set fields of the |
46 | -- class PointDimension |
47 | -- - aNote : Note for the dimension |
48 | -- - anArrow : Leader arrow used for the dimensioning |
49 | -- - aGeom : The enclosing geometric entity |
50 | |
51 | Note(me) returns GeneralNote; |
52 | |
53 | LeaderArrow(me) returns LeaderArrow; |
54 | |
55 | GeomCase(me) returns Integer; |
56 | ---Purpose : returns the type of geometric entity. |
57 | -- 0 if no hexagon or circle encloses the text |
58 | -- 1 if CircularArc |
59 | -- 2 if CompositeCurve |
60 | -- 3 otherwise |
61 | |
62 | Geom(me) returns IGESEntity; |
63 | ---Purpose : returns the Geometry Entity, Null handle if GeomCase(me) .eq. 0 |
64 | |
65 | CircularArc(me) returns CircularArc; |
66 | ---Purpose : returns Null handle if GeomCase(me) .ne. 1 |
67 | |
68 | CompositeCurve(me) returns CompositeCurve; |
69 | ---Purpose : returns Null handle if GeomCase(me) .ne. 2 |
70 | |
71 | fields |
72 | |
73 | -- |
74 | -- Class : IGESDimen_PointDimension |
75 | -- |
76 | -- Purpose : Declaration of variables specific to the definition |
77 | -- of the Class PointDimension. |
78 | -- |
79 | -- Reminder : A PointDimension instance is defined by : |
80 | -- - A General Note |
81 | -- - A Leader Arrow |
82 | -- - A Geometry Entity |
83 | -- |
84 | |
85 | theNote : GeneralNote; |
86 | theLeader: LeaderArrow; |
87 | theGeom : IGESEntity; |
88 | |
89 | end PointDimension; |