Back to index

salome-geom  6.5.0
GEOMImpl_IPipeTShape.hxx
Go to the documentation of this file.
00001 // Copyright (C) 2007-2012  CEA/DEN, EDF R&D, OPEN CASCADE
00002 //
00003 // This library is free software; you can redistribute it and/or
00004 // modify it under the terms of the GNU Lesser General Public
00005 // License as published by the Free Software Foundation; either
00006 // version 2.1 of the License.
00007 //
00008 // This library is distributed in the hope that it will be useful,
00009 // but WITHOUT ANY WARRANTY; without even the implied warranty of
00010 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00011 // Lesser General Public License for more details.
00012 //
00013 // You should have received a copy of the GNU Lesser General Public
00014 // License along with this library; if not, write to the Free Software
00015 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
00016 //
00017 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
00018 //
00019 
00020 #ifndef _GEOMImpl_IPipeTShape_HXX_
00021 #define _GEOMImpl_IPipeTShape_HXX_
00022 
00023 #include "GEOM_Function.hxx"
00024 
00025 #define TSHAPE_ARG_R1   1
00026 #define TSHAPE_ARG_W1   2
00027 #define TSHAPE_ARG_L1   3
00028 #define TSHAPE_ARG_R2   4
00029 #define TSHAPE_ARG_W2   5
00030 #define TSHAPE_ARG_L2   6
00031 
00032 // chamfer
00033 #define TSHAPE_ARG_H    7
00034 #define TSHAPE_ARG_W    8
00035 
00036 // fillet
00037 #define TSHAPE_ARG_RF   9
00038 
00039 // partition
00040 #define TSHAPE_ARG_HEXMESH 10
00041 
00042 // junction points
00043 #define TSHAPE_ARG_P1 11
00044 #define TSHAPE_ARG_P2 12
00045 #define TSHAPE_ARG_P3 13
00046 
00047 class GEOMImpl_IPipeTShape
00048 {
00049 public:
00050   GEOMImpl_IPipeTShape(Handle(GEOM_Function) theFunction): _func(theFunction) {}
00051 
00052   void SetR1(double theR1) { _func->SetReal(TSHAPE_ARG_R1, theR1); }
00053   double GetR1() { return _func->GetReal(TSHAPE_ARG_R1); }
00054 
00055   void SetW1(double theW1) { _func->SetReal(TSHAPE_ARG_W1, theW1); }
00056   double GetW1() { return _func->GetReal(TSHAPE_ARG_W1); }
00057 
00058   void SetL1(double theL1) { _func->SetReal(TSHAPE_ARG_L1, theL1); }
00059   double GetL1() { return _func->GetReal(TSHAPE_ARG_L1); }
00060 
00061   void SetR2(double theR2) { _func->SetReal(TSHAPE_ARG_R2, theR2); }
00062   double GetR2() { return _func->GetReal(TSHAPE_ARG_R2); }
00063 
00064   void SetW2(double theW2) { _func->SetReal(TSHAPE_ARG_W2, theW2); }
00065   double GetW2() { return _func->GetReal(TSHAPE_ARG_W2); }
00066 
00067   void SetL2(double theL2) { _func->SetReal(TSHAPE_ARG_L2, theL2); }
00068   double GetL2() { return _func->GetReal(TSHAPE_ARG_L2); }
00069 
00070   void SetH(double theH) { _func->SetReal(TSHAPE_ARG_H, theH); }
00071   double GetH() { return _func->GetReal(TSHAPE_ARG_H); }
00072 
00073   void SetW(double theW) { _func->SetReal(TSHAPE_ARG_W, theW); }
00074   double GetW() { return _func->GetReal(TSHAPE_ARG_W); }
00075 
00076   void SetRF(double theRF) { _func->SetReal(TSHAPE_ARG_RF, theRF); }
00077   double GetRF() { return _func->GetReal(TSHAPE_ARG_RF); }
00078 
00079   void SetHexMesh(int theHexMesh) { _func->SetInteger(TSHAPE_ARG_HEXMESH, theHexMesh); }
00080   int GetHexMesh() { return _func->GetInteger(TSHAPE_ARG_HEXMESH); }
00081 
00082   void SetP1(const Handle(GEOM_Function)& theP1){_func->SetReference(TSHAPE_ARG_P1, theP1); }
00083   Handle(GEOM_Function) GetP1() { return _func->GetReference(TSHAPE_ARG_P1); }
00084 
00085   void SetP2(const Handle(GEOM_Function)& theP2){_func->SetReference(TSHAPE_ARG_P2, theP2); }
00086   Handle(GEOM_Function) GetP2() { return _func->GetReference(TSHAPE_ARG_P2); }
00087 
00088   void SetP3(const Handle(GEOM_Function)& theP3){_func->SetReference(TSHAPE_ARG_P3, theP3); }
00089   Handle(GEOM_Function) GetP3() { return _func->GetReference(TSHAPE_ARG_P3); }
00090 
00091 private:
00092   Handle(GEOM_Function) _func;
00093 };
00094 
00095 #endif // _GEOMImpl_IPipeTShape_HXX_