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