ParMooN
 All Classes Functions Variables Friends Pages
BoundComp.h
1 // =======================================================================
2 // @(#)BoundComp.h 1.5 08/12/99
3 //
4 // Class: TBoundComp
5 // Purpose: components of boundary faces
6 //
7 // Author: Volker Behns 18.06.97
8 //
9 // =======================================================================
10 
11 #ifndef __BOUNDCOMP__
12 #define __BOUNDCOMP__
13 
14 #include <Constants.h>
15 #include <fstream>
16 
17 #define TOL_SECANT_BOUND 1.01
18 #define MAXVERTS 20
19 #define RECURS_DEPTH 8
20 
21 enum BoundTypes {Line = 1, Circle, Spline2D, Polygon, NonUniformSpline2D,
22  Plane = 10, Sphere, Cylinder,
23  Wall = 100,
24  NoPRM = 4711 };
25 
28 {
29  protected:
31  int ID;
33  BoundTypes Type;
36 
38  int refID;
39 
40  public:
41  // Constructor
42  TBoundComp(int id, int ref = -1);
43 
44  // Methods
46  virtual int ReadIn(std::ifstream &dat) = 0;
47 
49  int GetID() const
50  { return ID; }
51 
53  BoundTypes GetType() const
54  { return Type; }
55 
57  bool IsFreeBoundary() const
58  { return FreeBoundaryStatus; }
59 
61  void SetFreeBoundaryStatus(bool status)
62  { FreeBoundaryStatus = status; }
63 
64  void ChangeType(BoundTypes New_Type)
65  { Type = New_Type; }
66 
68  void SetRefID(int _ref)
69  { refID=_ref; }
70 
72  int GetRefID() const
73  { return refID; }
74 
75 };
76 
77 #endif
virtual int ReadIn(std::ifstream &dat)=0
int GetRefID() const
Definition: BoundComp.h:72
BoundTypes GetType() const
Definition: BoundComp.h:53
bool FreeBoundaryStatus
Definition: BoundComp.h:35
void SetFreeBoundaryStatus(bool status)
Definition: BoundComp.h:61
BoundTypes Type
Definition: BoundComp.h:33
bool IsFreeBoundary() const
Definition: BoundComp.h:57
int GetID() const
Definition: BoundComp.h:49
int ID
Definition: BoundComp.h:31
int refID
Definition: BoundComp.h:38
Definition: BoundComp.h:27
void SetRefID(int _ref)
Definition: BoundComp.h:68