b311480e |
1 | -- Created on: 1995-12-01 |
2 | -- Created by: EXPRESS->CDL V0.2 Translator |
3 | -- Copyright (c) 1995-1999 Matra Datavision |
973c2be1 |
4 | -- Copyright (c) 1999-2014 OPEN CASCADE SAS |
b311480e |
5 | -- |
973c2be1 |
6 | -- This file is part of Open CASCADE Technology software library. |
b311480e |
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. |
b311480e |
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 BooleanOperand from StepShape |
18 | |
19 | -- inherits SelectType from StepData |
20 | |
21 | -- <BooleanOperand> is an EXPRESS Select Type construct translation. |
22 | -- it gathers : SolidModel, HalfSpaceSolid, CsgPrimitive, BooleanResult |
23 | |
24 | uses |
25 | |
26 | SolidModel, |
27 | HalfSpaceSolid, |
28 | CsgPrimitive, |
29 | BooleanResult |
30 | is |
31 | |
32 | Create returns BooleanOperand; |
33 | ---Purpose : Returns a BooleanOperand SelectType |
34 | |
35 | SetTypeOfContent(me : in out; aTypeOfContent : Integer); |
36 | |
37 | TypeOfContent(me) returns Integer; |
38 | -- 1 : SolidModel, |
39 | -- 2 : HalfSpaceSolid, |
40 | -- 3 : CsgPrimitive, |
41 | -- 4 : BooleanResult |
42 | |
43 | SolidModel (me) returns any SolidModel; |
44 | ---Purpose : returns Value as a SolidModel (Null if another |
45 | -- type) |
46 | |
47 | SetSolidModel(me : in out; |
48 | aSolidModel : SolidModel from StepShape); |
49 | |
50 | HalfSpaceSolid (me) returns any HalfSpaceSolid; |
51 | ---Purpose : returns Value as a HalfSpaceSolid (Null if |
52 | -- another type) |
53 | |
54 | SetHalfSpaceSolid(me : in out; |
55 | aHalfSpaceSolid : HalfSpaceSolid from StepShape); |
56 | |
57 | CsgPrimitive (me) returns CsgPrimitive; |
58 | ---Purpose : returns Value as a CsgPrimitive (Null if another |
59 | -- type) |
60 | -- CsgPrimitive is another Select Type |
61 | |
62 | SetCsgPrimitive(me : in out; |
63 | aCsgPrimitive : CsgPrimitive from StepShape); |
64 | |
65 | BooleanResult (me) returns any BooleanResult; |
66 | ---Purpose : returns Value as a BooleanResult (Null if another |
67 | -- type) |
68 | |
69 | SetBooleanResult(me:in out; |
70 | aBooleanResult : BooleanResult from StepShape); |
71 | |
72 | fields |
73 | |
74 | theSolidModel : SolidModel from StepShape; |
75 | theHalfSpaceSolid : HalfSpaceSolid from StepShape; |
76 | theCsgPrimitive : CsgPrimitive from StepShape; -- Select Type |
77 | theBooleanResult : BooleanResult from StepShape; |
78 | theTypeOfContent : Integer from Standard; |
79 | |
80 | end BooleanOperand; |
81 | |