Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
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
00033 #define TSHAPE_ARG_H 7
00034 #define TSHAPE_ARG_W 8
00035
00036
00037 #define TSHAPE_ARG_RF 9
00038
00039
00040 #define TSHAPE_ARG_HEXMESH 10
00041
00042
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_