7fd59977 |
1 | -- |
2 | -- File : SolidInstance.cdl |
3 | -- Created : Sat 9 Jan 1993 |
4 | -- Author : CKY / Contract Toubro-Larsen ( SIVA ) |
5 | -- |
6 | ---Copyright : MATRA-DATAVISION 1993 |
7 | -- |
8 | |
9 | class SolidInstance from IGESSolid inherits IGESEntity |
10 | |
11 | ---Purpose: defines SolidInstance, Type <430> Form Number <0> |
12 | -- in package IGESSolid |
13 | -- This provides a mechanism for replicating a solid |
14 | -- representation. |
15 | -- |
16 | -- From IGES-5.3, Form may be <1> for a BREP |
17 | -- Else it is for a Boolean Tree, Primitive, other Solid Inst. |
18 | |
19 | uses Integer -- no one specific type |
20 | |
21 | |
22 | is |
23 | |
24 | Create returns mutable SolidInstance; |
25 | |
26 | -- Specific Methods pertaining to the class |
27 | |
28 | Init (me : mutable; |
29 | anEntity : IGESEntity); |
30 | ---Purpose : This method is used to set the fields of the class |
31 | -- SolidInstance |
32 | -- - anEntity : the entity corresponding to the solid |
33 | |
34 | IsBrep (me) returns Boolean; |
35 | ---Purpose : Tells if a SolidInstance is for a BREP |
36 | -- Default is False |
37 | |
38 | SetBrep (me : mutable; brep : Boolean); |
39 | ---Purpose : Sets or unsets the Brep status (FormNumber = 1 else 0) |
40 | |
41 | Entity(me) returns IGESEntity; |
42 | ---Purpose : returns the solid entity |
43 | |
44 | fields |
45 | |
46 | -- |
47 | -- Class : IGESSolid_SolidInstance |
48 | -- |
49 | -- Purpose : Declaration of variables specific to the definition |
50 | -- of the Class SolidInstance. |
51 | -- |
52 | -- Reminder : A SolidInstance instance is defined by : |
53 | -- a pointer to a solid entity |
54 | -- |
55 | |
56 | theEntity : IGESEntity; |
57 | -- the solid entity |
58 | |
59 | end SolidInstance; |