Flow123d  jenkins-Flow123d-windows-release-multijob-285
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/element_impls.hh"
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
void SetVector(const TVector &)
Definition: bisector.cpp:78
const TVector & GetVector() const
Definition: bisector.cpp:87
static int numberInstance
Definition: bisector.h:14
static int getNumInstances()
Definition: bisector.h:44
friend std::ostream & operator<<(std::ostream &, const TBisector &)
Definition: bisector.cpp:67
const TPoint & GetPoint() const
Definition: bisector.cpp:92
void SetPoint(const TPoint &)
Definition: bisector.cpp:74
TPoint * X0
Definition: bisector.h:17
Global macros to enhance readability and debugging, general constants.
~TBisector()
Definition: bisector.cpp:55
Definition: point.h:10
int generateId()
Definition: bisector.cpp:14
void GetParameter(const TPoint &, double &, bool &) const
Definition: bisector.cpp:106
void SetPoints(const TPoint &, const TPoint &)
Definition: bisector.cpp:82
int id
Definition: bisector.h:15
bool Belong(const TPoint &) const
Definition: bisector.cpp:111
TBisector & operator=(const TBisector &)
Definition: bisector.cpp:60
TVector * U
Definition: bisector.h:18