casa  5.7.0-16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
3DPoint.h
Go to the documentation of this file.
1 
2 #ifndef DP3_H
3 #define DP3_H
4 
5 #include <graphics/X11/X_enter.h>
6 
7 #include <graphics/X11/X_exit.h>
8 
9 
10 namespace casa {
11 
13 {
14 
15 public:
16  DisplayPoint3(int a, int b, int c, int d = 0) {
17  xx = a;
18  yy = b;
19  zz = c;
20  vv = d;
21  }
22  DisplayPoint3(): xx(0), yy(0), zz(0), vv(0){}
24 
25  void setX(int a) {xx = a;}
26  void setY(int a) {yy = a;}
27  void setZ(int a) {zz = a;}
28  void setV(int a) {vv = a;}
29  int x() {return xx;}
30  int y() {return yy;}
31  int z() {return zz;}
32  int v() {return vv;}
33 
34 private:
35  //all use int, can be faster
36  int xx;
37  int yy;
38  int zz;
39  //use positive for color and negative for grey
40  int vv;
41 
42 };
43 
44 }
45 #endif
void setZ(int a)
Definition: 3DPoint.h:27
void setX(int a)
Definition: 3DPoint.h:25
DisplayPoint3(int a, int b, int c, int d=0)
Definition: 3DPoint.h:16
int vv
use positive for color and negative for grey
Definition: 3DPoint.h:40
void setY(int a)
Definition: 3DPoint.h:26
const Double c
Fundamental physical constants (SI units):
int xx
all use int, can be faster
Definition: 3DPoint.h:36
void setV(int a)
Definition: 3DPoint.h:28