casa  $Rev:20696$
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
3DPoint.h
Go to the documentation of this file.
00001 
00002 #ifndef DP3_H
00003 #define DP3_H
00004 
00005 #include <graphics/X11/X_enter.h>
00006 
00007 #include <graphics/X11/X_exit.h>
00008 
00009 
00010 namespace casa {
00011 
00012 class DisplayPoint3
00013 {
00014 
00015 public:
00016     DisplayPoint3(int a, int b, int c, int d = 0) {
00017       xx = a;
00018       yy = b;
00019       zz = c;
00020       vv = d;
00021     }
00022     DisplayPoint3(): xx(0), yy(0), zz(0), vv(0){}
00023     ~DisplayPoint3(){}
00024 
00025     void setX(int a) {xx = a;}
00026     void setY(int a) {yy = a;}
00027     void setZ(int a) {zz = a;}
00028     void setV(int a) {vv = a;}
00029     int x() {return xx;}
00030     int y() {return yy;}
00031     int z() {return zz;}
00032     int v() {return vv;}
00033 
00034 private:
00035     //all use int, can be faster
00036     int xx;
00037     int yy;
00038     int zz;
00039     //use positive for color and negative for grey
00040     int vv;
00041 
00042 };
00043 
00044 }
00045 #endif