0023258: Missing parenthesis
[occt.git] / src / TopOpeBRepDS / TopOpeBRepDS_Transition.cdl
CommitLineData
b311480e 1-- Created on: 1994-05-26
2-- Created by: Jean Yves LEBEY
3-- Copyright (c) 1994-1999 Matra Datavision
4-- Copyright (c) 1999-2012 OPEN CASCADE SAS
5--
6-- The content of this file is subject to the Open CASCADE Technology Public
7-- License Version 6.5 (the "License"). You may not use the content of this file
8-- except in compliance with the License. Please obtain a copy of the License
9-- at http://www.opencascade.org and read it completely before using this file.
10--
11-- The Initial Developer of the Original Code is Open CASCADE S.A.S., having its
12-- main offices at: 1, place des Freres Montgolfier, 78280 Guyancourt, France.
13--
14-- The Original Code and all software distributed under the License is
15-- distributed on an "AS IS" basis, without warranty of any kind, and the
16-- Initial Developer hereby disclaims all such warranties, including without
17-- limitation, any warranties of merchantability, fitness for a particular
18-- purpose or non-infringement. Please see the License for the specific terms
19-- and conditions governing the rights and limitations under the License.
20
7fd59977 21
22class Transition from TopOpeBRepDS
23
24uses
25
26 State from TopAbs,
27 Orientation from TopAbs,
28 ShapeEnum from TopAbs,
29 OStream from Standard
30
31is
32
33 Create returns Transition from TopOpeBRepDS;
34
35 Create(StateBefore,StateAfter : State from TopAbs;
36 ShapeBefore : ShapeEnum from TopAbs = TopAbs_FACE;
37 ShapeAfter : ShapeEnum from TopAbs = TopAbs_FACE)
38 returns Transition from TopOpeBRepDS;
39
40 Create(O : Orientation from TopAbs)
41 returns Transition from TopOpeBRepDS;
42
43 Set(me : in out;
44 StateBefore, StateAfter : State from TopAbs;
45 ShapeBefore : ShapeEnum from TopAbs = TopAbs_FACE;
46 ShapeAfter : ShapeEnum from TopAbs = TopAbs_FACE);
47
48 StateBefore(me : in out; S : State from TopAbs);
49 StateAfter(me : in out; S : State from TopAbs);
50 ShapeBefore(me : in out; SE : ShapeEnum from TopAbs);
51 ShapeAfter(me : in out; SE : ShapeEnum from TopAbs);
52 Before(me : in out; S : State from TopAbs;ShapeBefore : ShapeEnum from TopAbs = TopAbs_FACE);
53 After(me : in out; S : State from TopAbs;ShapeAfter : ShapeEnum from TopAbs = TopAbs_FACE);
54
55 Index(me : in out; I : Integer);
56 IndexBefore(me : in out; I : Integer);
57 IndexAfter(me : in out; I : Integer);
58
59 Before(me) returns State from TopAbs;
60 ONBefore(me) returns ShapeEnum from TopAbs;
61 After(me) returns State from TopAbs;
62 ONAfter(me) returns ShapeEnum from TopAbs;
63 ShapeBefore(me) returns ShapeEnum from TopAbs;
64 ShapeAfter(me) returns ShapeEnum from TopAbs;
65 Index(me) returns Integer; -- index of ShapeBefore (may be null)
66 IndexBefore(me) returns Integer; -- index of ShapeBefore (may be null)
67 IndexAfter(me) returns Integer; -- index of ShapeAfter (may be null)
68
69 Set(me : in out; O : Orientation from TopAbs);
70 ---Purpose: set the transition corresponding to orientation <O>
71 --
72 -- O Before After
73 --
74 -- FORWARD OUT IN
75 -- REVERSED IN OUT
76 -- INTERNAL IN IN
77 -- EXTERNAL OUT OUT
78 --
79
80 Orientation(me; S : State from TopAbs;
81 T : ShapeEnum from TopAbs = TopAbs_FACE)
82
83 ---Purpose: returns the orientation corresponding to state <S>
84 --
85 -- Before and After not equal TopAbs_ON :
86 -- --------------------------------------
87 -- Before After Computed orientation
88 --
89 -- S not S REVERSED (we leave state S)
90 -- not S S FORWARD (we enter state S)
91 -- S S INTERNAL (we stay in state S)
92 -- not S not S EXTERNAL (we stay outside state S)
93 returns Orientation from TopAbs;
94
95 OrientationON(me; S : State from TopAbs;
96 T : ShapeEnum from TopAbs)
97
98 ---Purpose: returns the orientation corresponding to state <S>
99 -- (if one at least of the internal states is ON)
100 returns Orientation from TopAbs
101 is static private;
102
103 Complement(me) returns Transition from TopOpeBRepDS;
104
105 IsUnknown(me) returns Boolean from Standard;
106 ---Purpose: returns True if both states are UNKNOWN
107
108 DumpA(me; OS : in out OStream from Standard) returns OStream;
109 ---C++: return &
110
111 DumpB(me; OS : in out OStream from Standard) returns OStream;
112 ---C++: return &
113
114 Dump(me; OS : in out OStream from Standard) returns OStream;
115 ---C++: return &
116
117fields
118
119 myStateBefore, myStateAfter : State from TopAbs;
120 myShapeBefore, myShapeAfter : ShapeEnum from TopAbs;
121 myIndexBefore, myIndexAfter : Integer from Standard;
122
123end Transition from TopOpeBRepDS;