Flow123d
triangle.h
Go to the documentation of this file.
1 #ifndef triangleH
2 #define triangleH
3 
4 #include "point.h"
5 #include "plain.h"
6 #include "abscissa.h"
7 #include "mesh/bounding_box.hh"
8 #include "mesh/elements.h"
9 
10 class TTriangle {
11 private:
12  static int numberInstance;
13  int id;
14 
18 
22 
24 
26 
27  double area;
28 
29  int generateId();
30 
31  void ComputeArea();
32 
33 public:
34  TTriangle();
35  TTriangle(const TTriangle&);
36  TTriangle(const TPoint&, const TPoint&, const TPoint&);
37  TTriangle(const Element&);
38  void update();
39 
40  ~TTriangle();
41 
42  TTriangle & operator =(const TTriangle &t);
43 
44  const TPlain &GetPlain() const;
45  const TAbscissa &GetAbscissa(int) const;
46  const TPoint &GetPoint(int) const;
47 
48  void SetPoints(const TPoint&, const TPoint&, const TPoint&);
49 
50  double GetMin(int) const;
51  double GetMax(int) const;
52 
53  double GetArea();
55 
56  bool IsInner(const TPoint&) const;
57 
58  static int getNumInstances() {
60  }
61 };
62 
63 #endif
64