Flow123d  release_2.2.1-10-gb9fad4d
tetrahedron.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 tetrahedron.h
15  * @brief
16  */
17 
18 #ifndef tetrahedronH
19 #define tetrahedronH
20 
21 #include "point.h"
22 #include "triangle.h"
23 
24 class TTetrahedron {
25 private:
26  static int numberInstance;
27  int id;
28 
33 
38 
45 
46  double volume;
47 
48  int generateId();
49  void ComputeVolume();
50 
51 public:
52  TTetrahedron();
53  TTetrahedron(const TPoint&, const TPoint&, const TPoint&, const TPoint&);
54  ~TTetrahedron();
55 
56  const TTriangle &GetTriangle(int) const;
57  const TAbscissa &GetAbscissa(int) const;
58  const TPoint &GetPoint(int) const;
59 
60  double GetMin(int) const;
61  double GetMax(int) const;
62 
63  double GetVolume();
64 
65  void SetPoints(const TPoint& P1, const TPoint& P2, const TPoint& P3, const TPoint& P4);
66  bool IsInner(const TPoint&) const;
67 
68  static int getNumInstances() {
70  }
71 };
72 #endif
void ComputeVolume()
void SetPoints(const TPoint &P1, const TPoint &P2, const TPoint &P3, const TPoint &P4)
TAbscissa * A1
Definition: tetrahedron.h:39
double GetMin(int) const
const TPoint & GetPoint(int) const
double GetMax(int) const
TTriangle T2
Definition: tetrahedron.h:35
TTriangle T4
Definition: tetrahedron.h:37
static int numberInstance
Definition: tetrahedron.h:26
TAbscissa * A4
Definition: tetrahedron.h:42
const TTriangle & GetTriangle(int) const
Definition: tetrahedron.cpp:77
static int getNumInstances()
Definition: tetrahedron.h:68
TAbscissa * A2
Definition: tetrahedron.h:40
Definition: point.h:27
double volume
Definition: tetrahedron.h:46
const TAbscissa & GetAbscissa(int) const
Definition: tetrahedron.cpp:91
TAbscissa * A6
Definition: tetrahedron.h:44
TTriangle T3
Definition: tetrahedron.h:36
TTriangle T1
Definition: tetrahedron.h:34
double GetVolume()
TAbscissa * A3
Definition: tetrahedron.h:41
int generateId()
Definition: tetrahedron.cpp:27
TAbscissa * A5
Definition: tetrahedron.h:43
bool IsInner(const TPoint &) const