Version: 9.16.0
AdvancedEngine_IPipeTShape.hxx
Go to the documentation of this file.
1// Copyright (C) 2007-2026 CEA, EDF, 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, or (at your option) any later version.
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 _AdvancedEngine_IPipeTShape_HXX_
21#define _AdvancedEngine_IPipeTShape_HXX_
22
23#include "GEOM_Function.hxx"
24
25#include <TColStd_HArray1OfReal.hxx>
26
28{
29public:
30 AdvancedEngine_IPipeTShape(Handle(GEOM_Function) theFunction): _func(theFunction) {}
31
32 void SetR1(double theR1) { _func->SetReal(TSHAPE_ARG_R1, theR1); }
33 double GetR1() { return _func->GetReal(TSHAPE_ARG_R1); }
34
35 void SetW1(double theW1) { _func->SetReal(TSHAPE_ARG_W1, theW1); }
36 double GetW1() { return _func->GetReal(TSHAPE_ARG_W1); }
37
38 void SetL1(double theL1) { _func->SetReal(TSHAPE_ARG_L1, theL1); }
39 double GetL1() { return _func->GetReal(TSHAPE_ARG_L1); }
40
41 void SetR2(double theR2) { _func->SetReal(TSHAPE_ARG_R2, theR2); }
42 double GetR2() { return _func->GetReal(TSHAPE_ARG_R2); }
43
44 void SetW2(double theW2) { _func->SetReal(TSHAPE_ARG_W2, theW2); }
45 double GetW2() { return _func->GetReal(TSHAPE_ARG_W2); }
46
47 void SetL2(double theL2) { _func->SetReal(TSHAPE_ARG_L2, theL2); }
48 double GetL2() { return _func->GetReal(TSHAPE_ARG_L2); }
49
50 void SetH(double theH) { _func->SetReal(TSHAPE_ARG_H, theH); }
51 double GetH() { return _func->GetReal(TSHAPE_ARG_H); }
52
53 void SetW(double theW) { _func->SetReal(TSHAPE_ARG_W, theW); }
54 double GetW() { return _func->GetReal(TSHAPE_ARG_W); }
55
56 void SetRF(double theRF) { _func->SetReal(TSHAPE_ARG_RF, theRF); }
57 double GetRF() { return _func->GetReal(TSHAPE_ARG_RF); }
58
59 void SetHexMesh(int theHexMesh) { _func->SetInteger(TSHAPE_ARG_HEXMESH, theHexMesh); }
60 int GetHexMesh() { return _func->GetInteger(TSHAPE_ARG_HEXMESH); }
61
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); }
64
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); }
67
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); }
70
71private:
72 enum {
73 // main pipe
77
78 // incident pipe
82
83 // chamfer
86
87 // fillet
89
90 // partition
92
93 // junction points
96 TSHAPE_ARG_P3 = 13
97 };
98
99private:
100 Handle(GEOM_Function) _func;
101};
102
103#endif // _AdvancedEngine_IPipeTShape_HXX_
Definition: AdvancedEngine_IPipeTShape.hxx:28
void SetP1(const Handle(GEOM_Function)&theP1)
Definition: AdvancedEngine_IPipeTShape.hxx:62
void SetL2(double theL2)
Definition: AdvancedEngine_IPipeTShape.hxx:47
void SetL1(double theL1)
Definition: AdvancedEngine_IPipeTShape.hxx:38
void SetP3(const Handle(GEOM_Function)&theP3)
Definition: AdvancedEngine_IPipeTShape.hxx:68
Handle(GEOM_Function) GetP3()
Definition: AdvancedEngine_IPipeTShape.hxx:69
void SetW(double theW)
Definition: AdvancedEngine_IPipeTShape.hxx:53
double GetH()
Definition: AdvancedEngine_IPipeTShape.hxx:51
double GetW()
Definition: AdvancedEngine_IPipeTShape.hxx:54
void SetRF(double theRF)
Definition: AdvancedEngine_IPipeTShape.hxx:56
double GetW1()
Definition: AdvancedEngine_IPipeTShape.hxx:36
void SetR2(double theR2)
Definition: AdvancedEngine_IPipeTShape.hxx:41
void SetH(double theH)
Definition: AdvancedEngine_IPipeTShape.hxx:50
Handle(GEOM_Function) GetP2()
Definition: AdvancedEngine_IPipeTShape.hxx:66
void SetHexMesh(int theHexMesh)
Definition: AdvancedEngine_IPipeTShape.hxx:59
void SetW2(double theW2)
Definition: AdvancedEngine_IPipeTShape.hxx:44
@ TSHAPE_ARG_W
Definition: AdvancedEngine_IPipeTShape.hxx:85
@ TSHAPE_ARG_P2
Definition: AdvancedEngine_IPipeTShape.hxx:95
@ TSHAPE_ARG_HEXMESH
Definition: AdvancedEngine_IPipeTShape.hxx:91
@ TSHAPE_ARG_H
Definition: AdvancedEngine_IPipeTShape.hxx:84
@ TSHAPE_ARG_R1
Definition: AdvancedEngine_IPipeTShape.hxx:74
@ TSHAPE_ARG_P1
Definition: AdvancedEngine_IPipeTShape.hxx:94
@ TSHAPE_ARG_L2
Definition: AdvancedEngine_IPipeTShape.hxx:81
@ TSHAPE_ARG_R2
Definition: AdvancedEngine_IPipeTShape.hxx:79
@ TSHAPE_ARG_RF
Definition: AdvancedEngine_IPipeTShape.hxx:88
@ TSHAPE_ARG_L1
Definition: AdvancedEngine_IPipeTShape.hxx:76
@ TSHAPE_ARG_P3
Definition: AdvancedEngine_IPipeTShape.hxx:96
@ TSHAPE_ARG_W1
Definition: AdvancedEngine_IPipeTShape.hxx:75
@ TSHAPE_ARG_W2
Definition: AdvancedEngine_IPipeTShape.hxx:80
double GetR2()
Definition: AdvancedEngine_IPipeTShape.hxx:42
void SetR1(double theR1)
Definition: AdvancedEngine_IPipeTShape.hxx:32
double GetW2()
Definition: AdvancedEngine_IPipeTShape.hxx:45
double GetRF()
Definition: AdvancedEngine_IPipeTShape.hxx:57
Handle(GEOM_Function) _func
Handle(GEOM_Function) GetP1()
Definition: AdvancedEngine_IPipeTShape.hxx:63
double GetL1()
Definition: AdvancedEngine_IPipeTShape.hxx:39
void SetP2(const Handle(GEOM_Function)&theP2)
Definition: AdvancedEngine_IPipeTShape.hxx:65
AdvancedEngine_IPipeTShape(Handle(GEOM_Function) theFunction)
Definition: AdvancedEngine_IPipeTShape.hxx:30
double GetL2()
Definition: AdvancedEngine_IPipeTShape.hxx:48
void SetW1(double theW1)
Definition: AdvancedEngine_IPipeTShape.hxx:35
double GetR1()
Definition: AdvancedEngine_IPipeTShape.hxx:33
int GetHexMesh()
Definition: AdvancedEngine_IPipeTShape.hxx:60