00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00026 #ifndef __vtkVersion_h
00027 #define __vtkVersion_h
00028
00029
00030 #include "vtkObject.h"
00031
00032 #if VTK_MINOR_VERSION & 1
00033 # include <vtksys/DateStamp.h>
00034 # define VTK_SOURCE_VERSION "vtk version " VTK_VERSION ", Date: " vtksys_DATE_STAMP_STRING
00035 #else
00036 # define VTK_SOURCE_VERSION "vtk version " VTK_VERSION
00037 #endif
00038
00039
00040 class VTK_COMMON_EXPORT vtkVersion : public vtkObject
00041 {
00042 public:
00043 static vtkVersion *New();
00044 vtkTypeMacro(vtkVersion,vtkObject);
00045
00047
00050 static const char *GetVTKVersion() { return VTK_VERSION; }
00051 static int GetVTKMajorVersion() { return VTK_MAJOR_VERSION; }
00052 static int GetVTKMinorVersion() { return VTK_MINOR_VERSION; }
00053 static int GetVTKBuildVersion() { return VTK_BUILD_VERSION; }
00054 static const char *GetVTKSourceVersion() { return VTK_SOURCE_VERSION; }
00056
00057 protected:
00058 vtkVersion() {};
00059 ~vtkVersion() {};
00060 private:
00061 vtkVersion(const vtkVersion&);
00062 void operator=(const vtkVersion&);
00063 };
00064
00065 #endif
00066