Salome HOME
To implement issue 0019962: MakePipeBiNormalAlongAxis implementation.
[modules/geom.git] / src / GEOMImpl / GEOMImpl_IBlockTrsf.hxx
1 // Copyright (C) 2005  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
2 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
3 // 
4 // This library is free software; you can redistribute it and/or
5 // modify it under the terms of the GNU Lesser General Public
6 // License as published by the Free Software Foundation; either 
7 // version 2.1 of the License.
8 // 
9 // This library is distributed in the hope that it will be useful 
10 // but WITHOUT ANY WARRANTY; without even the implied warranty of 
11 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
12 // Lesser General Public License for more details.
13 //
14 // You should have received a copy of the GNU Lesser General Public  
15 // License along with this library; if not, write to the Free Software 
16 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
17 //
18 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
19 //
20 //NOTE: This is an interface to a function for the Blocks Multi-Transformations.
21
22
23 #include "GEOM_Function.hxx"
24
25 #define TRSF_ORIGIN  1
26
27 #define TRSF_FACE_1_U  2
28 #define TRSF_FACE_2_U  3
29 #define TRSF_NBITER_U  4
30 #define TRSF_FACE_1_V  5
31 #define TRSF_FACE_2_V  6
32 #define TRSF_NBITER_V  7
33
34 class GEOMImpl_IBlockTrsf
35 {
36  public:
37
38   GEOMImpl_IBlockTrsf (Handle(GEOM_Function) theFunction): _func(theFunction) {}
39
40   void SetOriginal (Handle(GEOM_Function) theOriginal) { _func->SetReference(TRSF_ORIGIN, theOriginal); }
41
42   Handle(GEOM_Function) GetOriginal() { return _func->GetReference(TRSF_ORIGIN); }
43
44   void SetFace1U  (int theFaceId) { _func->SetInteger(TRSF_FACE_1_U, theFaceId); }
45   void SetFace2U  (int theFaceId) { _func->SetInteger(TRSF_FACE_2_U, theFaceId); }
46   void SetFace1V  (int theFaceId) { _func->SetInteger(TRSF_FACE_1_V, theFaceId); }
47   void SetFace2V  (int theFaceId) { _func->SetInteger(TRSF_FACE_2_V, theFaceId); }
48   void SetNbIterU (int theNbIter) { _func->SetInteger(TRSF_NBITER_U, theNbIter); }
49   void SetNbIterV (int theNbIter) { _func->SetInteger(TRSF_NBITER_V, theNbIter); }
50
51   int GetFace1U () { return _func->GetInteger(TRSF_FACE_1_U); }
52   int GetFace2U () { return _func->GetInteger(TRSF_FACE_2_U); }
53   int GetFace1V () { return _func->GetInteger(TRSF_FACE_1_V); }
54   int GetFace2V () { return _func->GetInteger(TRSF_FACE_2_V); }
55   int GetNbIterU() { return _func->GetInteger(TRSF_NBITER_U); }
56   int GetNbIterV() { return _func->GetInteger(TRSF_NBITER_V); }
57
58  private:
59
60   Handle(GEOM_Function) _func;
61 };