1 // Copyright (C) 2007-2010 CEA/DEN, EDF R&D, OPEN CASCADE
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.
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.
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
17 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
20 #ifndef _GEOMImpl_IPipeTShape_HXX_
21 #define _GEOMImpl_IPipeTShape_HXX_
23 #include "GEOM_Function.hxx"
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
33 #define TSHAPE_ARG_H 7
34 #define TSHAPE_ARG_W 8
37 #define TSHAPE_ARG_RF 9
40 #define TSHAPE_ARG_HEXMESH 10
43 #define TSHAPE_ARG_P1 11
44 #define TSHAPE_ARG_P2 12
45 #define TSHAPE_ARG_P3 13
47 class GEOMImpl_IPipeTShape
50 GEOMImpl_IPipeTShape(Handle(GEOM_Function) theFunction): _func(theFunction) {}
52 void SetR1(double theR1) { _func->SetReal(TSHAPE_ARG_R1, theR1); }
53 double GetR1() { return _func->GetReal(TSHAPE_ARG_R1); }
55 void SetW1(double theW1) { _func->SetReal(TSHAPE_ARG_W1, theW1); }
56 double GetW1() { return _func->GetReal(TSHAPE_ARG_W1); }
58 void SetL1(double theL1) { _func->SetReal(TSHAPE_ARG_L1, theL1); }
59 double GetL1() { return _func->GetReal(TSHAPE_ARG_L1); }
61 void SetR2(double theR2) { _func->SetReal(TSHAPE_ARG_R2, theR2); }
62 double GetR2() { return _func->GetReal(TSHAPE_ARG_R2); }
64 void SetW2(double theW2) { _func->SetReal(TSHAPE_ARG_W2, theW2); }
65 double GetW2() { return _func->GetReal(TSHAPE_ARG_W2); }
67 void SetL2(double theL2) { _func->SetReal(TSHAPE_ARG_L2, theL2); }
68 double GetL2() { return _func->GetReal(TSHAPE_ARG_L2); }
70 void SetH(double theH) { _func->SetReal(TSHAPE_ARG_H, theH); }
71 double GetH() { return _func->GetReal(TSHAPE_ARG_H); }
73 void SetW(double theW) { _func->SetReal(TSHAPE_ARG_W, theW); }
74 double GetW() { return _func->GetReal(TSHAPE_ARG_W); }
76 void SetRF(double theRF) { _func->SetReal(TSHAPE_ARG_RF, theRF); }
77 double GetRF() { return _func->GetReal(TSHAPE_ARG_RF); }
79 void SetHexMesh(int theHexMesh) { _func->SetInteger(TSHAPE_ARG_HEXMESH, theHexMesh); }
80 int GetHexMesh() { return _func->GetInteger(TSHAPE_ARG_HEXMESH); }
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); }
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); }
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); }
92 Handle(GEOM_Function) _func;
95 #endif // _GEOMImpl_IPipeTShape_HXX_