00001 #ifndef CVERTEXINFO_H
00002 #define CVERTEXINFO_H
00003
00004
00005 #include <MDSTk/Base/mdsSetup.h>
00006 #include <MDSTk/Base/mdsObject.h>
00007 #include <MDSTk/Base/mdsFactory.h>
00008
00009
00010 #include <VectorEntity/mctris.h>
00011
00012
00013 #include <osg/Geometry>
00014 #include <osg/Geode>
00015
00016
00021 class CVertexInfo : public mds::base::CObject
00022 {
00023 protected :
00024
00026 vctl::MCVertex * pVertex;
00027
00028 public :
00029
00031 CVertexInfo( vctl::MCVertex * vertex );
00032
00034 virtual ~CVertexInfo();
00035
00037 vctl::MCVertex * getVertex();
00038
00040 virtual osg::Vec4 getColour();
00041
00043 virtual void normalize();
00044
00046 double getDMax()
00047 {
00048 return dMax;
00049 }
00050
00051 protected :
00052
00054 static double dMax;
00055
00056 public :
00057
00059 static void tryNewMax( double new_max );
00060
00062 static void clearMax();
00063
00065 static double getMax();
00066 };
00067
00068 #endif // CVERTEXINFO_H