Flow123d  release_2.2.0-23-g01927c6
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 
26 class TAbscissa : public TBisector {
27 private:
28  static int numberInstance;
29  int id;
30 
32 
33  double length;
34 
35  int generateId();
36  void ComputeLength();
37 
38 public:
39  TAbscissa();
40  TAbscissa(const TPoint&, const TPoint&);
41  TAbscissa(const Element&);
42  ~TAbscissa();
43 
44  TAbscissa & operator =(const TAbscissa&);
45 
46  double Length();
48 
49  void SetPoints(const TPoint&, const TPoint&);
50 
51  double GetMin(int) const;
52  double GetMax(int) const;
53 
54  static int getNumInstances() {
56  }
57 };
58 
59 #endif
double Length()
Definition: abscissa.cpp:75
Bounding box in 3d ambient space.
Definition: bounding_box.hh:45
int id
Definition: abscissa.h:29
BoundingBox boundingBox
Definition: abscissa.h:31
static int getNumInstances()
Definition: abscissa.h:54
void SetPoints(const TPoint &, const TPoint &)
Definition: abscissa.cpp:65
double GetMax(int) const
Definition: abscissa.cpp:102
static int numberInstance
Definition: abscissa.h:28
double length
Definition: abscissa.h:33
Definition: point.h:27
void ComputeLength()
Definition: abscissa.cpp:70
BoundingBox & get_bounding_box()
Definition: abscissa.cpp:79
int generateId()
Definition: abscissa.cpp:25
TAbscissa & operator=(const TAbscissa &)
Definition: abscissa.cpp:52
double GetMin(int) const
Definition: abscissa.cpp:93
~TAbscissa()
Definition: abscissa.cpp:62