00001
00002
00004 #ifndef _DATPNT_H_
00005 #define _DATPNT_H_
00006
00007 #include "Util.h"
00008 #include "Material.h"
00009
00010 namespace ns_vu1112112 {
00011 using namespace ns_vu1112112;
00012
00013 class vu1112112;
00014
00018 class DatPnt
00019 {
00020 public:
00021 enum Flags {Invisible=0, Visible=1, SkipCell=2};
00022
00024 void shade(vu1112112 &r);
00026 void classify(vu1112112 &r);
00028 void reset();
00030 DatPnt();
00032 ~DatPnt();
00033
00035 void setFlag(Flags vflag) { flag=(char)vflag;};
00037 Flags getFlag() { return (Flags)flag; }
00038
00039
00043 unsigned char data;
00045 char flag;
00048 unsigned char length;
00050 signed char grad[3];
00051 #ifndef DO_POST_CLASSIFICATION
00052 float density[MAT_NUM_MATERIALS];
00053 #endif
00054 float illum;
00055
00056 };
00057
00058 }
00059 #endif