Salome HOME
Remove Opencascade dependencies
[modules/smesh.git] / src / SMDS / SMDSEdit_Transform.cdl
1 --  SMESH SMDS : implementaion of Salome mesh data structure
2 --
3 --  Copyright (C) 2003  OPEN CASCADE
4 -- 
5 --  This library is free software; you can redistribute it and/or 
6 --  modify it under the terms of the GNU Lesser General Public 
7 --  License as published by the Free Software Foundation; either 
8 --  version 2.1 of the License. 
9 -- 
10 --  This library is distributed in the hope that it will be useful, 
11 --  but WITHOUT ANY WARRANTY; without even the implied warranty of 
12 --  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
13 --  Lesser General Public License for more details. 
14 -- 
15 --  You should have received a copy of the GNU Lesser General Public 
16 --  License along with this library; if not, write to the Free Software 
17 --  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
18 -- 
19 --  See http://www.opencascade.org or email : webmaster@opencascade.org 
20 --
21 --
22 --
23 --  File   : SMDSEdit_Transform.cdl
24 --  Author : Jean-Michel BOULCOURT
25 --  Module : SMESH
26
27 class Transform from SMDSEdit 
28
29         ---Purpose: tool to modify  a Mesh or MeshElements by applying
30         --          a transformation
31
32 uses
33   Mesh from SMDS,
34   ListOfMeshElement from SMDS,
35   Trsf from gp
36   
37 is
38     Create (aMesh : Mesh from SMDS; aTrsf: Trsf from gp) 
39     returns Transform from SMDSEdit;
40     ---Purpose: create a transform tool on a whole mesh
41
42     Create (aMesh : Mesh from SMDS; aListOfME : ListOfMeshElement from SMDS;
43             aTrsf : Trsf from gp)
44     returns Transform from SMDSEdit;
45     ---Purpose: create  a transform  tool to be  applied on a  list of
46     --          meshelements from the mesh aMesh. MeshElements from the
47     --          list that do not belong to the mesh will not be treated
48
49     Perform (me: in out);
50     ---Purpose: Perform  the current transformation on the  Mesh or on
51     --          the list of meshelements if it is not empty
52     
53     SetTrsf(me: in out; aTrsf: Trsf from gp);
54     ---Purpose: replace the field myTrsf by the one given in argument
55     --          This can be used to apply another transformation on a mesh
56     --          without creating another instance of SMDSEdit_Transform
57
58     GetTrsf(me) returns Trsf from gp;
59     ---Purpose: returns the stored Trsf
60      
61     
62 fields
63     myMesh     : Mesh from SMDS;
64     myTrsf     : Trsf from gp;
65     myListOfME : ListOfMeshElement from SMDS;
66 end Transform;