Salome HOME
Join modifications from BR_Dev_For_4_0 tag V4_1_1.
[modules/geom.git] / src / GEOMAlgo / GEOMAlgo_ShapeInfo.cdl
1 -- File:        GEOMAlgo_ShapeInfo.cdl
2 -- Created:     Mon Apr  2 14:04:24 2007
3 -- Author:      Peter KURNEV
4 --              <pkv@irinox>
5 ---Copyright:    Matra Datavision 2007
6
7
8 class ShapeInfo from GEOMAlgo 
9
10         ---Purpose: 
11
12 uses 
13     Pnt from gp, 
14     Dir from gp, 
15     Ax2 from gp, 
16     Ax3 from gp, 
17     
18     ShapeEnum from TopAbs, 
19     Shape from TopoDS, 
20      
21     KindOfShape   from GEOMAlgo,
22     KindOfBounds  from GEOMAlgo, 
23     KindOfClosed  from GEOMAlgo, 
24     KindOfName from GEOMAlgo
25 --raises
26
27 is 
28     Create 
29         returns ShapeInfo from GEOMAlgo;   
30     ---C++: alias "Standard_EXPORT virtual ~GEOMAlgo_ShapeInfo();" 
31      
32     Reset(me:out); 
33      
34     SetType(me:out; 
35             aType:ShapeEnum from TopAbs); 
36          
37     Type(me) 
38         returns ShapeEnum from TopAbs; 
39          
40     SetNbSubShapes(me:out; 
41             aType:ShapeEnum from TopAbs; 
42             aNb  :Integer from Standard); 
43      
44     NbSubShapes(me; 
45             aType:ShapeEnum from TopAbs) 
46         returns Integer from Standard; 
47          
48     SetKindOfShape (me:out; 
49             aT:KindOfShape from GEOMAlgo); 
50          
51     KindOfShape (me) 
52          returns KindOfShape from GEOMAlgo;      
53
54     SetKindOfName (me:out; 
55             aT: KindOfName from GEOMAlgo); 
56          
57     KindOfName(me) 
58          returns KindOfName from GEOMAlgo; 
59
60     SetKindOfBounds (me:out; 
61             aT:KindOfBounds from GEOMAlgo); 
62              
63     KindOfBounds (me) 
64          returns KindOfBounds from GEOMAlgo;    
65           
66     SetKindOfClosed (me:out; 
67             aT:KindOfClosed from GEOMAlgo); 
68              
69     KindOfClosed(me) 
70          returns KindOfClosed from GEOMAlgo;   
71          
72     SetLocation (me:out; 
73             aP: Pnt from gp); 
74              
75     Location (me) 
76          returns Pnt from gp; 
77     ---C++: return const&  
78          
79     SetDirection  (me:out; 
80             aD:Dir from gp); 
81              
82     Direction  (me) 
83          returns Dir from gp; 
84     ---C++: return const&      
85       
86     SetPosition (me:out;  
87             aAx2 : Ax2 from gp);
88      
89     SetPosition (me:out;  
90             aAx3 : Ax3 from gp); 
91          
92     Position (me)  
93         returns Ax3 from gp; 
94     ---C++: return const&          
95         
96     SetPnt1 (me:out; 
97             aP: Pnt from gp); 
98              
99     Pnt1 (me) 
100          returns Pnt from gp; 
101     ---C++: return const& 
102      
103     SetPnt2 (me:out; 
104             aP: Pnt from gp); 
105              
106     Pnt2 (me) 
107          returns Pnt from gp; 
108     ---C++: return const& 
109      
110     SetRadius1 (me:out; 
111             aR: Real from Standard); 
112              
113     Radius1(me) 
114          returns Real from Standard;    
115
116     SetRadius2 (me:out; 
117             aR: Real from Standard); 
118              
119     Radius2(me) 
120          returns Real from Standard;   
121       
122     SetLength(me:out; 
123             aL: Real from Standard); 
124              
125     Length(me) 
126          returns Real from Standard;  
127           
128     SetWidth(me:out; 
129             aW: Real from Standard); 
130              
131     Width(me) 
132          returns Real from Standard;  
133            
134     SetHeight(me:out; 
135             aH: Real from Standard); 
136              
137     Height(me) 
138          returns Real from Standard; 
139     --
140     -- Dump
141     --               
142     Dump(me); 
143         
144     DumpVertex(me) 
145         is protected; 
146          
147     DumpEdge(me) 
148         is protected; 
149          
150     DumpWire(me) 
151         is protected;
152   
153     DumpFace(me) 
154         is protected;
155   
156     DumpShell(me) 
157         is protected; 
158      
159     DumpSolid(me) 
160         is protected; 
161          
162     DumpCompSolid(me) 
163         is protected; 
164          
165     DumpCompound(me) 
166         is protected;
167  
168 fields 
169     myType          : ShapeEnum from TopAbs      is protected; 
170     myNbSubShapes   : Integer from Standard[9]   is protected; 
171     myKindOfShape   : KindOfShape from GEOMAlgo  is protected;  
172     myKindOfName    : KindOfName from GEOMAlgo   is protected;  
173     myKindOfBounds  : KindOfBounds from GEOMAlgo is protected;  
174     myKindOfClosed  : KindOfClosed from GEOMAlgo is protected;  
175     --
176     myLocation      : Pnt from gp is protected;  
177     myDirection     : Dir from gp is protected; 
178     myPosition      : Ax3 from gp is protected; 
179     -- 
180     myRadius1       : Real from Standard is protected;    
181     myRadius2       : Real from Standard is protected;    
182     myLength        : Real from Standard is protected;    
183     myWidth         : Real from Standard is protected;    
184     myHeight        : Real from Standard is protected;    
185     -- 
186     myPnt1          : Pnt from gp is protected;   
187     myPnt2          : Pnt from gp is protected;    
188     -- 
189     myNbTypes       : Integer from Standard is protected;
190 end ShapeInfo;