Flow123d  release_2.2.0-26-ge868538
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 class TBisector {
30 protected:
31  static int numberInstance;
32  int id;
33 
36 
37  int generateId();
38 
39 public:
40  TBisector();
41  TBisector(const TPoint&, const TVector&);
42  TBisector(const TPoint&, const TPoint&);
43  TBisector(const TBisector &);
44  TBisector(const Element &);
45  ~TBisector();
46 
47  TBisector & operator =(const TBisector&);
48  friend std::ostream & operator <<(std::ostream&, const TBisector&);
49 
50  void SetPoints(const TPoint&, const TPoint&);
51  bool Belong(const TPoint&) const;
52 
53  void SetPoint(const TPoint&);
54  const TPoint &GetPoint() const;
55  TPoint GetPoint(double) const;
56  void GetParameter(const TPoint&, double &, bool &) const;
57 
58  void SetVector(const TVector&);
59  const TVector &GetVector() const;
60 
61  static int getNumInstances() {
63  }
64 };
65 
66 #endif
void SetVector(const TVector &)
Definition: bisector.cpp:95
const TVector & GetVector() const
Definition: bisector.cpp:104
static int numberInstance
Definition: bisector.h:31
static int getNumInstances()
Definition: bisector.h:61
friend std::ostream & operator<<(std::ostream &, const TBisector &)
Definition: bisector.cpp:84
const TPoint & GetPoint() const
Definition: bisector.cpp:109
void SetPoint(const TPoint &)
Definition: bisector.cpp:91
TPoint * X0
Definition: bisector.h:34
Global macros to enhance readability and debugging, general constants.
~TBisector()
Definition: bisector.cpp:72
Definition: point.h:27
int generateId()
Definition: bisector.cpp:31
void GetParameter(const TPoint &, double &, bool &) const
Definition: bisector.cpp:123
void SetPoints(const TPoint &, const TPoint &)
Definition: bisector.cpp:99
int id
Definition: bisector.h:32
bool Belong(const TPoint &) const
Definition: bisector.cpp:128
TBisector & operator=(const TBisector &)
Definition: bisector.cpp:77
TVector * U
Definition: bisector.h:35