Flow123d
bisector.h
Go to the documentation of this file.
1 #ifndef bisectorH
2 #define bisectorH
3 
4 #include <iostream>
5 
6 #include "system/global_defs.h"
7 #include "mesh/elements.h"
8 
9 #include "point.h"
10 #include "myvector.h"
11 
12 class TBisector {
13 protected:
14  static int numberInstance;
15  int id;
16 
19 
20  int generateId();
21 
22 public:
23  TBisector();
24  TBisector(const TPoint&, const TVector&);
25  TBisector(const TPoint&, const TPoint&);
26  TBisector(const TBisector &);
27  TBisector(const Element &);
28  ~TBisector();
29 
30  TBisector & operator =(const TBisector&);
31  friend std::ostream & operator <<(std::ostream&, const TBisector&);
32 
33  void SetPoints(const TPoint&, const TPoint&);
34  bool Belong(const TPoint&) const;
35 
36  void SetPoint(const TPoint&);
37  const TPoint &GetPoint() const;
38  TPoint GetPoint(double) const;
39  void GetParameter(const TPoint&, double &, bool &) const;
40 
41  void SetVector(const TVector&);
42  const TVector &GetVector() const;
43 
44  static int getNumInstances() {
46  }
47 };
48 
49 #endif