Flow123d  jenkins-Flow123d-windows32-release-multijob-28
point.h
Go to the documentation of this file.
1 #ifndef pointH
2 #define pointH
3 
4 #include <iostream>
5 //#include "system.h"
6 
7 #include "myvector.h"
8 
9 class TVector;
10 
11 class TPoint {
12 private:
13  static int numberInstance;
14  int id;
15 
16  double x;
17  double y;
18  double z;
19 
20  int generateId();
21 
22 public:
23  TPoint();
24  TPoint(double, double, double);
25  TPoint(const TPoint&);
26  ~TPoint();
27 
30  bool operator ==(TPoint*);
31 
32  TPoint & operator =(const TPoint&);
33  TPoint & operator =(const TVector&);
34  TVector operator -(const TPoint&) const;
35  TPoint operator +(const TPoint&) const;
36  bool operator ==(const TPoint&) const;
37  friend std::ostream & operator <<(std::ostream&, const TPoint&);
38 
39  void SetCoord(double, double, double);
40  void SetCoord(const TVector&);
41 
42  double X() const;
43  double Y() const;
44  double Z() const;
45 
46  double Get(int) const;
47 
48  static int getNumInstances() {
50  }
51 };
52 
53 #endif
double y
Definition: point.h:17
friend std::ostream & operator<<(std::ostream &, const TPoint &)
Definition: point.cpp:136
static int getNumInstances()
Definition: point.h:48
TPoint * operator+(TPoint *)
TPoint * operator=(TPoint *)
double X() const
Definition: point.cpp:110
Definition: point.h:11
int generateId()
Definition: point.cpp:11
double Y() const
Definition: point.cpp:114
void SetCoord(double, double, double)
Definition: point.cpp:98
TVector operator-(const TPoint &) const
Definition: point.cpp:72
double Z() const
Definition: point.cpp:118
double x
Definition: point.h:16
bool operator==(TPoint *)
TPoint()
Definition: point.cpp:15
double Get(int) const
Definition: point.cpp:122
static int numberInstance
Definition: point.h:13
double z
Definition: point.h:18
int id
Definition: point.h:14
~TPoint()
Definition: point.cpp:39