1 // Copyright (C) 2007-2015 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, or (at your option) any later version.
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 _AdvancedEngine_IPipeTShape_HXX_
21 #define _AdvancedEngine_IPipeTShape_HXX_
23 #include "GEOM_Function.hxx"
25 #include <TColStd_HArray1OfReal.hxx>
27 class AdvancedEngine_IPipeTShape
30 AdvancedEngine_IPipeTShape(Handle(GEOM_Function) theFunction): _func(theFunction) {}
32 void SetR1(double theR1) { _func->SetReal(TSHAPE_ARG_R1, theR1); }
33 double GetR1() { return _func->GetReal(TSHAPE_ARG_R1); }
35 void SetW1(double theW1) { _func->SetReal(TSHAPE_ARG_W1, theW1); }
36 double GetW1() { return _func->GetReal(TSHAPE_ARG_W1); }
38 void SetL1(double theL1) { _func->SetReal(TSHAPE_ARG_L1, theL1); }
39 double GetL1() { return _func->GetReal(TSHAPE_ARG_L1); }
41 void SetR2(double theR2) { _func->SetReal(TSHAPE_ARG_R2, theR2); }
42 double GetR2() { return _func->GetReal(TSHAPE_ARG_R2); }
44 void SetW2(double theW2) { _func->SetReal(TSHAPE_ARG_W2, theW2); }
45 double GetW2() { return _func->GetReal(TSHAPE_ARG_W2); }
47 void SetL2(double theL2) { _func->SetReal(TSHAPE_ARG_L2, theL2); }
48 double GetL2() { return _func->GetReal(TSHAPE_ARG_L2); }
50 void SetH(double theH) { _func->SetReal(TSHAPE_ARG_H, theH); }
51 double GetH() { return _func->GetReal(TSHAPE_ARG_H); }
53 void SetW(double theW) { _func->SetReal(TSHAPE_ARG_W, theW); }
54 double GetW() { return _func->GetReal(TSHAPE_ARG_W); }
56 void SetRF(double theRF) { _func->SetReal(TSHAPE_ARG_RF, theRF); }
57 double GetRF() { return _func->GetReal(TSHAPE_ARG_RF); }
59 void SetHexMesh(int theHexMesh) { _func->SetInteger(TSHAPE_ARG_HEXMESH, theHexMesh); }
60 int GetHexMesh() { return _func->GetInteger(TSHAPE_ARG_HEXMESH); }
62 void SetP1(const Handle(GEOM_Function)& theP1){_func->SetReference(TSHAPE_ARG_P1, theP1); }
63 Handle(GEOM_Function) GetP1() { return _func->GetReference(TSHAPE_ARG_P1); }
65 void SetP2(const Handle(GEOM_Function)& theP2){_func->SetReference(TSHAPE_ARG_P2, theP2); }
66 Handle(GEOM_Function) GetP2() { return _func->GetReference(TSHAPE_ARG_P2); }
68 void SetP3(const Handle(GEOM_Function)& theP3){_func->SetReference(TSHAPE_ARG_P3, theP3); }
69 Handle(GEOM_Function) GetP3() { return _func->GetReference(TSHAPE_ARG_P3); }
91 TSHAPE_ARG_HEXMESH = 10,
100 Handle(GEOM_Function) _func;
103 #endif // _AdvancedEngine_IPipeTShape_HXX_