Flow123d
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
flow123d
src
mesh
ngh
include
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
28
TPoint
*
operator =
(
TPoint
*);
29
TPoint
*
operator +
(
TPoint
*);
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
() {
49
return
TPoint::numberInstance
;
50
}
51
};
52
53
#endif
Generated on Thu May 29 2014 23:14:49 for Flow123d by
1.8.4