ParMooN
 All Classes Functions Variables Friends Pages
BoundPart.h
1 // =======================================================================
2 // @(#)BoundPart.h 1.1 10/30/98
3 //
4 // Class: TBoundPart
5 // Purpose: a closed part of boundary
6 //
7 // Author: Volker Behns 18.06.97
8 //
9 // =======================================================================
10 
11 #ifndef __BOUNDPART__
12 #define __BOUNDPART__
13 
14 #ifdef __2D__
15  #include <BoundComp2D.h>
16 #else
17  #include <BoundComp3D.h>
18 #endif
19 
22 {
23  protected:
25  int N_BdComps;
27 #ifdef __2D__
29 #else
31 #endif
32 
33  public:
34  // Constuctor
36  TBoundPart(int n_comps);
37 
38  // Methods
41  { return N_BdComps; }
42 
43 #ifdef __2D__
44 
45  void SetBdComp(int i, TBoundComp2D *bdcomp)
46  { BdComps[i] = bdcomp; }
47 
50  { return BdComps[i]; }
51 #else
52 
53  void SetBdComp(int i, TBoundComp3D *bdcomp)
54  { BdComps[i] = bdcomp; }
55 
58  { return BdComps[i]; }
59 #endif
60 
61  #ifndef __3D__
62 
63  int GetXYofT(int comp, double T, double &X, double &Y)
64  { return BdComps[comp]->GetXYofT(T, X, Y); }
66  int GetTofXY(int comp, double X, double Y, double &T)
67  { return BdComps[comp]->GetTofXY(X, Y, T); }
68  #else
69 
70  int GetXYZofTS(int comp, double T, double S,
71  double &X, double &Y, double &Z)
72  { return BdComps[comp]->GetXYZofTS(T, S, X, Y, Z); }
73  #endif
74 };
75 
76 #endif
TBoundPart(int n_comps)
Definition: BoundPart.C:15
virtual int GetTofXY(double X, double Y, double &T)=0
TBoundComp2D * GetBdComp(int i)
Definition: BoundPart.h:49
virtual int GetXYofT(double T, double &X, double &Y)=0
void SetBdComp(int i, TBoundComp2D *bdcomp)
Definition: BoundPart.h:45
int GetXYofT(int comp, double T, double &X, double &Y)
Definition: BoundPart.h:63
Definition: BoundComp3D.h:17
Definition: BoundComp2D.h:17
Definition: BoundPart.h:21
TBoundComp2D ** BdComps
Definition: BoundPart.h:28
TBoundComp3D * GetBdComp(int i)
Definition: BoundPart.h:57
int GetTofXY(int comp, double X, double Y, double &T)
Definition: BoundPart.h:66
int GetXYZofTS(int comp, double T, double S, double &X, double &Y, double &Z)
Definition: BoundPart.h:70
int N_BdComps
Definition: BoundPart.h:25
int GetN_BdComps()
Definition: BoundPart.h:40
void SetBdComp(int i, TBoundComp3D *bdcomp)
Definition: BoundPart.h:53