Flow123d  release_2.2.0-914-gf1a3a4f
bisector.h
Go to the documentation of this file.
1 /*!
2  *
3  * Copyright (C) 2015 Technical University of Liberec. All rights reserved.
4  *
5  * This program is free software; you can redistribute it and/or modify it under
6  * the terms of the GNU General Public License version 3 as published by the
7  * Free Software Foundation. (http://www.gnu.org/licenses/gpl-3.0.en.html)
8  *
9  * This program is distributed in the hope that it will be useful, but WITHOUT
10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11  * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
12  *
13  *
14  * @file bisector.h
15  * @brief
16  */
17 
18 #ifndef bisectorH
19 #define bisectorH
20 
21 #include <iostream>
22 
23 #include "system/global_defs.h"
24 #include "mesh/mesh_types.hh"
25 
26 #include "point.h"
27 #include "myvector.h"
28 
29 namespace ngh {
30 
31 class TBisector {
32 protected:
33  static int numberInstance;
34  int id;
35 
38 
39  int generateId();
40 
41 public:
42  TBisector();
43  TBisector(const TPoint&, const TVector&);
44  TBisector(const TPoint&, const TPoint&);
45  TBisector(const TBisector &);
46  TBisector(const Element &);
47  ~TBisector();
48 
49  TBisector & operator =(const TBisector&);
50  friend std::ostream & operator <<(std::ostream&, const TBisector&);
51 
52  void SetPoints(const TPoint&, const TPoint&);
53  bool Belong(const TPoint&) const;
54 
55  void SetPoint(const TPoint&);
56  const TPoint &GetPoint() const;
57  TPoint GetPoint(double) const;
58  void GetParameter(const TPoint&, double &, bool &) const;
59 
60  void SetVector(const TVector&);
61  const TVector &GetVector() const;
62 
63  static int getNumInstances() {
65  }
66 };
67 
68 } // namespace ngh
69 
70 #endif
const TPoint & GetPoint() const
Definition: bisector.cpp:110
TVector * U
Definition: bisector.h:37
TBisector & operator=(const TBisector &)
Definition: bisector.cpp:78
Definition: abscissa.h:25
const TVector & GetVector() const
Definition: bisector.cpp:105
Global macros to enhance readability and debugging, general constants.
void GetParameter(const TPoint &, double &, bool &) const
Definition: bisector.cpp:124
static int getNumInstances()
Definition: bisector.h:63
bool Belong(const TPoint &) const
Definition: bisector.cpp:129
void SetPoint(const TPoint &)
Definition: bisector.cpp:92
static int numberInstance
Definition: bisector.h:33
int generateId()
Definition: bisector.cpp:32
TPoint * X0
Definition: bisector.h:36
void SetVector(const TVector &)
Definition: bisector.cpp:96
friend std::ostream & operator<<(std::ostream &, const TBisector &)
Definition: bisector.cpp:85
void SetPoints(const TPoint &, const TPoint &)
Definition: bisector.cpp:100