Salome HOME
Mantis issue 0021060: Automatic LimitTolerance after boolean operations.
[modules/geom.git] / src / GEOMImpl / GEOMImpl_IPipeTShape.hxx
1 // Copyright (C) 2007-2011  CEA/DEN, EDF R&D, OPEN CASCADE
2 //
3 // This library is free software; you can redistribute it and/or
4 // modify it under the terms of the GNU Lesser General Public
5 // License as published by the Free Software Foundation; either
6 // version 2.1 of the License.
7 //
8 // This library is distributed in the hope that it will be useful,
9 // but WITHOUT ANY WARRANTY; without even the implied warranty of
10 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
11 // Lesser General Public License for more details.
12 //
13 // You should have received a copy of the GNU Lesser General Public
14 // License along with this library; if not, write to the Free Software
15 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
16 //
17 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
18 //
19
20 #ifndef _GEOMImpl_IPipeTShape_HXX_
21 #define _GEOMImpl_IPipeTShape_HXX_
22
23 #include "GEOM_Function.hxx"
24
25 #define TSHAPE_ARG_R1   1
26 #define TSHAPE_ARG_W1   2
27 #define TSHAPE_ARG_L1   3
28 #define TSHAPE_ARG_R2   4
29 #define TSHAPE_ARG_W2   5
30 #define TSHAPE_ARG_L2   6
31
32 // chamfer
33 #define TSHAPE_ARG_H    7
34 #define TSHAPE_ARG_W    8
35
36 // fillet
37 #define TSHAPE_ARG_RF   9
38
39 // partition
40 #define TSHAPE_ARG_HEXMESH 10
41
42 // junction points
43 #define TSHAPE_ARG_P1 11
44 #define TSHAPE_ARG_P2 12
45 #define TSHAPE_ARG_P3 13
46
47 class GEOMImpl_IPipeTShape
48 {
49 public:
50   GEOMImpl_IPipeTShape(Handle(GEOM_Function) theFunction): _func(theFunction) {}
51
52   void SetR1(double theR1) { _func->SetReal(TSHAPE_ARG_R1, theR1); }
53   double GetR1() { return _func->GetReal(TSHAPE_ARG_R1); }
54
55   void SetW1(double theW1) { _func->SetReal(TSHAPE_ARG_W1, theW1); }
56   double GetW1() { return _func->GetReal(TSHAPE_ARG_W1); }
57
58   void SetL1(double theL1) { _func->SetReal(TSHAPE_ARG_L1, theL1); }
59   double GetL1() { return _func->GetReal(TSHAPE_ARG_L1); }
60
61   void SetR2(double theR2) { _func->SetReal(TSHAPE_ARG_R2, theR2); }
62   double GetR2() { return _func->GetReal(TSHAPE_ARG_R2); }
63
64   void SetW2(double theW2) { _func->SetReal(TSHAPE_ARG_W2, theW2); }
65   double GetW2() { return _func->GetReal(TSHAPE_ARG_W2); }
66
67   void SetL2(double theL2) { _func->SetReal(TSHAPE_ARG_L2, theL2); }
68   double GetL2() { return _func->GetReal(TSHAPE_ARG_L2); }
69
70   void SetH(double theH) { _func->SetReal(TSHAPE_ARG_H, theH); }
71   double GetH() { return _func->GetReal(TSHAPE_ARG_H); }
72
73   void SetW(double theW) { _func->SetReal(TSHAPE_ARG_W, theW); }
74   double GetW() { return _func->GetReal(TSHAPE_ARG_W); }
75
76   void SetRF(double theRF) { _func->SetReal(TSHAPE_ARG_RF, theRF); }
77   double GetRF() { return _func->GetReal(TSHAPE_ARG_RF); }
78
79   void SetHexMesh(int theHexMesh) { _func->SetInteger(TSHAPE_ARG_HEXMESH, theHexMesh); }
80   int GetHexMesh() { return _func->GetInteger(TSHAPE_ARG_HEXMESH); }
81
82   void SetP1(const Handle(GEOM_Function)& theP1){_func->SetReference(TSHAPE_ARG_P1, theP1); }
83   Handle(GEOM_Function) GetP1() { return _func->GetReference(TSHAPE_ARG_P1); }
84
85   void SetP2(const Handle(GEOM_Function)& theP2){_func->SetReference(TSHAPE_ARG_P2, theP2); }
86   Handle(GEOM_Function) GetP2() { return _func->GetReference(TSHAPE_ARG_P2); }
87
88   void SetP3(const Handle(GEOM_Function)& theP3){_func->SetReference(TSHAPE_ARG_P3, theP3); }
89   Handle(GEOM_Function) GetP3() { return _func->GetReference(TSHAPE_ARG_P3); }
90
91 private:
92   Handle(GEOM_Function) _func;
93 };
94
95 #endif // _GEOMImpl_IPipeTShape_HXX_