Flow123d  release_2.2.0-19-g1279b7e
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 class TPlain {
25 private:
26  static int numberInstance;
27  int id;
28 
32 
33  double a;
34  double b;
35  double c;
36  double d;
37 
39 
40  int generateId();
41 
42  void Compute();
43 
44 public:
45  TPlain();
46  TPlain(const TVector&, const TVector&, const TPoint&);
47  TPlain(const TPoint&, const TPoint&, const TPoint&);
48  TPlain(const TPlain&);
49  ~TPlain();
50 
51  const TPoint &GetPoint() const;
52  TPoint GetPoint(double, double) const;
53  const TVector &GetNormal() const;
54  const TVector &GetU() const;
55  const TVector &GetV() const;
56  double GetA() const;
57  double GetB() const;
58  double GetC() const;
59  double GetD() const;
60  bool Belong(const TPoint&) const;
61  void SetPoints(const TPoint&, const TPoint&, const TPoint&);
62 
63  TPlain & operator =(const TPlain&);
64 
65  static int getNumInstances() {
67  }
68 };
69 
70 #endif
double GetA() const
Definition: plain.cpp:98
static int numberInstance
Definition: plain.h:26
double a
Definition: plain.h:33
const TPoint & GetPoint() const
Definition: plain.cpp:126
double b
Definition: plain.h:34
double d
Definition: plain.h:36
double GetC() const
Definition: plain.cpp:106
void SetPoints(const TPoint &, const TPoint &, const TPoint &)
Definition: plain.cpp:154
TPoint * X
Definition: plain.h:38
Definition: plain.h:24
int generateId()
Definition: plain.cpp:26
TVector * V
Definition: plain.h:30
static int getNumInstances()
Definition: plain.h:65
TPlain()
Definition: plain.cpp:30
const TVector & GetU() const
Definition: plain.cpp:118
Definition: point.h:27
double c
Definition: plain.h:35
double GetB() const
Definition: plain.cpp:102
const TVector & GetV() const
Definition: plain.cpp:122
void Compute()
Definition: plain.cpp:82
bool Belong(const TPoint &) const
Definition: plain.cpp:136
TVector * U
Definition: plain.h:29
int id
Definition: plain.h:27
TVector * N
Definition: plain.h:31
TPlain & operator=(const TPlain &)
Definition: plain.cpp:142
const TVector & GetNormal() const
Definition: plain.cpp:114
double GetD() const
Definition: plain.cpp:110
~TPlain()
Definition: plain.cpp:91