ParMooN
 All Classes Functions Variables Friends Pages
BdPolygon.h
1 // =======================================================================
2 // @(#)BdPolygon.h 1.1 08/12/99
3 //
4 // Class: TBdPolygon
5 // Superclass: TBoundComp
6 // Purpose: component is polygon
7 //
8 // Author: Gunar Matthies 04.08.1999
9 //
10 // =======================================================================
11 
12 #ifndef __BdPolygon__
13 #define __BdPolygon__
14 
15 #include <BoundComp2D.h>
16 
18 class TBdPolygon : public TBoundComp2D
19 {
20  protected:
22  int N_Points;
24  double *Coords;
25 
26  public:
27  // Constuctor
29  TBdPolygon (int id, int n_points);
30 
31  // Methods
33  void SetParams (int n_points, double *coords);
34 
36  int GetN_Points();
37 
39  virtual int GetXYofT(double T, double &X, double &Y);
40 
42  virtual int GetTofXY(double X, double Y, double &T);
43 
45  virtual int ReadIn(std::ifstream &dat);
46 
48  virtual int GetN_InitVerts()
49  { return 2; }
50 
51  virtual int GenInitVerts(double *&points, int I_points,
52  int *&edges, int I_edges)
53  { return 0; }
54 };
55 
56 #endif
virtual int GetN_InitVerts()
Definition: BdPolygon.h:48
virtual int ReadIn(std::ifstream &dat)
Definition: BdPolygon.C:109
int N_Points
Definition: BdPolygon.h:22
TBdPolygon(int id, int n_points)
Definition: BdPolygon.C:19
virtual int GetTofXY(double X, double Y, double &T)
Definition: BdPolygon.C:60
double * Coords
Definition: BdPolygon.h:24
Definition: BdPolygon.h:18
Definition: BoundComp2D.h:17
int GetN_Points()
virtual int GetXYofT(double T, double &X, double &Y)
Definition: BdPolygon.C:34
void SetParams(int n_points, double *coords)
Definition: BdPolygon.C:28