Flow123d  release_2.2.0-914-gf1a3a4f
abscissa.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 abscissa.h
15  * @brief
16  */
17 
18 #ifndef abscissaH
19 #define abscissaH
20 
21 #include "bisector.h"
22 #include "point.h"
23 #include "mesh/bounding_box.hh"
24 
25 namespace ngh {
26 
27 
28 class TAbscissa : public TBisector {
29 private:
30  static int numberInstance;
31  int id;
32 
34 
35  double length;
36 
37  int generateId();
38  void ComputeLength();
39 
40 public:
41  TAbscissa();
42  TAbscissa(const TPoint&, const TPoint&);
43  TAbscissa(const Element&);
44  ~TAbscissa();
45 
46  TAbscissa & operator =(const TAbscissa&);
47 
48  double Length();
50 
51  void SetPoints(const TPoint&, const TPoint&);
52 
53  double GetMin(int) const;
54  double GetMax(int) const;
55 
56  bool IsInner(const TPoint&) const;
57 
58  static int getNumInstances() {
60  }
61 };
62 
63 } // namespace ngh
64 
65 #endif
Bounding box in 3d ambient space.
Definition: bounding_box.hh:45
double GetMax(int) const
Definition: abscissa.cpp:105
bool IsInner(const TPoint &) const
Definition: abscissa.cpp:113
TAbscissa & operator=(const TAbscissa &)
Definition: abscissa.cpp:55
Definition: abscissa.h:25
double Length()
Definition: abscissa.cpp:78
void SetPoints(const TPoint &, const TPoint &)
Definition: abscissa.cpp:68
BoundingBox & get_bounding_box()
Definition: abscissa.cpp:82
static int getNumInstances()
Definition: abscissa.h:58
BoundingBox boundingBox
Definition: abscissa.h:33
void ComputeLength()
Definition: abscissa.cpp:73
int generateId()
Definition: abscissa.cpp:28
double length
Definition: abscissa.h:35
static int numberInstance
Definition: abscissa.h:30
double GetMin(int) const
Definition: abscissa.cpp:96