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 Pick from IGESGraph inherits IGESEntity |
18 | |
19 | ---Purpose: defines IGESPick, Type <406> Form <21> |
20 | -- in package IGESGraph |
21 | -- |
22 | -- Attaches information that an entity may be picked |
23 | -- by whatever pick device is used in the receiving |
24 | -- system |
25 | |
26 | uses Integer -- no one specific type |
27 | |
28 | |
29 | is |
30 | |
6e33d3ce |
31 | Create returns Pick; |
7fd59977 |
32 | |
33 | -- Specific Methods pertaining to the class |
34 | |
35 | Init (me : mutable; |
36 | nbProps : Integer; |
37 | aPickStatus : Integer); |
38 | ---Purpose : This method is used to set the fields of the class Pick |
39 | -- - nbProps : Number of property values (NP = 1) |
40 | -- - aPickStatus : Pick Flag |
41 | |
42 | -- Specific Access Methods : According to each type of Entity |
43 | |
44 | NbPropertyValues (me) returns Integer; |
45 | ---Purpose : returns the number of property values in <me>. |
46 | |
47 | PickFlag(me) returns Integer; |
48 | ---Purpose : returns 0 if <me> is pickable(default), |
49 | -- 1 if <me> is not pickable. |
50 | |
51 | IsPickable(me) returns Boolean; |
52 | ---Purpose : returns True if thePick is 0. |
53 | |
54 | fields |
55 | |
56 | -- |
57 | -- Class : IGESGraph_Pick |
58 | -- |
59 | -- Purpose : Declaration of the variables specific to a Pick property. |
60 | -- |
61 | -- Reminder : A Pick property is defined by : |
62 | -- - Number of property values |
63 | -- - Flag 0 = entity is pickable(default) |
64 | -- 1 = entity is not pickable |
65 | -- |
66 | |
67 | theNbPropertyValues : Integer; |
68 | |
69 | thePick : Integer; |
70 | |
71 | end Pick; |