7fd59977 |
1 | -- |
2 | -- File : SelectedComponent.cdl |
3 | -- Created : Sat 9 Jan 1993 |
4 | -- Author : CKY / Contract Toubro-Larsen ( SIVA ) |
5 | -- |
6 | ---Copyright : MATRA-DATAVISION 1993 |
7 | -- |
8 | |
9 | class SelectedComponent from IGESSolid inherits IGESEntity |
10 | |
11 | ---Purpose: defines SelectedComponent, Type <182> Form Number <0> |
12 | -- in package IGESSolid |
13 | -- The Selected Component entity provides a means of |
14 | -- selecting one component of a disjoint CSG solid |
15 | |
16 | uses |
17 | |
18 | BooleanTree from IGESSolid, |
19 | XYZ from gp, |
20 | Pnt from gp |
21 | |
22 | is |
23 | |
24 | Create returns mutable SelectedComponent; |
25 | |
26 | -- Specific Methods pertaining to the class |
27 | |
28 | Init (me : mutable; |
29 | anEntity : BooleanTree; |
30 | selectPnt : XYZ); |
31 | ---Purpose : This method is used to set the fields of the class |
32 | -- SelectedComponent |
33 | -- - anEntity : the Boolean tree entity |
34 | -- - selectPnt : Point in or on the desired component |
35 | |
36 | Component(me) returns BooleanTree; |
37 | ---Purpose : returns the Boolean tree entity |
38 | |
39 | SelectPoint(me) returns Pnt; |
40 | ---Purpose : returns the point on/in the selected component |
41 | |
42 | TransformedSelectPoint(me) returns Pnt; |
43 | ---Purpose : returns the point on/in the selected component |
44 | -- after applying TransformationMatrix |
45 | |
46 | fields |
47 | |
48 | -- |
49 | -- Class : IGESSolid_SelectedComponent |
50 | -- |
51 | -- Purpose : Declaration of variables specific to the definition |
52 | -- of the Class SelectedComponent. |
53 | -- |
54 | -- Reminder : A SelectedComponent instance is defined by : |
55 | -- a pointer to the Boolean Tree entity(Entity) and the X, Y |
56 | -- and Z components (X,Y,Z) of a selected point. |
57 | |
58 | theEntity : BooleanTree; |
59 | -- the desired boolean tree entity |
60 | |
61 | theSelectPoint : XYZ; |
62 | -- the X, Y and Z coordinates of the point |
63 | |
64 | end SelectedComponent; |