Salome HOME
NRI : First integration.
[modules/smesh.git] / src / SMDS / SMDS_Position.cdl
1 -- File:        SMDS_Position.cdl
2 -- Created:     Mon May 13 13:40:18 2002
3 -- Author:      Jean-Michel BOULCOURT
4 --              <jmb@localhost.localdomain>
5 ---Copyright:    Matra Datavision 2002
6
7
8 deferred class Position from SMDS inherits  TShared from MMgt
9
10         ---Purpose: abstract  class to define  the different positions
11         --          of a node related to the underlying geometry (CAD model)
12
13 uses
14     Pnt from gp,
15     TypeOfPosition from SMDS
16     
17 is
18
19     Initialize(aShapeId: Integer; 
20                aType: TypeOfPosition from SMDS = SMDS_TOP_UNSPEC) 
21     returns mutable Position;
22
23     Coords(me) returns Pnt from gp is deferred;
24     ---Purpose: returns the resulting 3d point to be set
25     --          in the MeshNode instance
26     --          must be redefined by inherited classes
27     
28     GetTypeOfPosition(me) returns TypeOfPosition from SMDS;
29     ---Purpose: returns the type of position
30     --          
31     ---C++: inline
32     
33     SetShapeId(me: mutable; aShapeId: Integer);
34     ---Purpose: Sets the ShapeId of the position
35     --          
36     ---C++: inline
37
38     GetShapeId(me) returns Integer;
39     ---Purpose: Returns the ShapeId of the position
40     --          
41     ---C++: inline
42
43
44 fields
45
46     myShapeId : Integer;
47     myType    : TypeOfPosition from SMDS;    
48 end Position;