Flow123d  release_2.2.0-914-gf1a3a4f
plain.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 plain.h
15  * @brief
16  */
17 
18 #ifndef plainH
19 #define plainH
20 
21 #include "myvector.h"
22 #include "point.h"
23 
24 
25 namespace ngh {
26 
27 class TPlain {
28 private:
29  static int numberInstance;
30  int id;
31 
35 
36  double a;
37  double b;
38  double c;
39  double d;
40 
42 
43  int generateId();
44 
45  void Compute();
46 
47 public:
48  TPlain();
49  TPlain(const TVector&, const TVector&, const TPoint&);
50  TPlain(const TPoint&, const TPoint&, const TPoint&);
51  TPlain(const TPlain&);
52  ~TPlain();
53 
54  const TPoint &GetPoint() const;
55  TPoint GetPoint(double, double) const;
56  const TVector &GetNormal() const;
57  const TVector &GetU() const;
58  const TVector &GetV() const;
59  double GetA() const;
60  double GetB() const;
61  double GetC() const;
62  double GetD() const;
63  bool Belong(const TPoint&) const;
64  void SetPoints(const TPoint&, const TPoint&, const TPoint&);
65 
66  TPlain & operator =(const TPlain&);
67 
68  static int getNumInstances() {
70  }
71 };
72 
73 } // namespace ngh
74 
75 #endif
const TVector & GetNormal() const
Definition: plain.cpp:115
TVector * V
Definition: plain.h:33
TPoint * X
Definition: plain.h:41
double c
Definition: plain.h:38
double GetB() const
Definition: plain.cpp:103
TPlain & operator=(const TPlain &)
Definition: plain.cpp:143
Definition: abscissa.h:25
double GetC() const
Definition: plain.cpp:107
static int getNumInstances()
Definition: plain.h:68
static int numberInstance
Definition: plain.h:29
double b
Definition: plain.h:37
double GetA() const
Definition: plain.cpp:99
const TPoint & GetPoint() const
Definition: plain.cpp:127
TVector * N
Definition: plain.h:34
void Compute()
Definition: plain.cpp:83
int id
Definition: plain.h:30
double d
Definition: plain.h:39
const TVector & GetV() const
Definition: plain.cpp:123
TVector * U
Definition: plain.h:32
int generateId()
Definition: plain.cpp:27
bool Belong(const TPoint &) const
Definition: plain.cpp:137
void SetPoints(const TPoint &, const TPoint &, const TPoint &)
Definition: plain.cpp:155
double a
Definition: plain.h:36
const TVector & GetU() const
Definition: plain.cpp:119
double GetD() const
Definition: plain.cpp:111