vtkVersion.h 3.29 KB
Newer Older
Jim Miller's avatar
Jim Miller committed
1
2
3
4
5
6
7
8
9
/*=========================================================================

  Program:   Visualization Toolkit
  Module:    vtkVersion.h
  Language:  C++
  Date:      $Date$
  Version:   $Revision$


Bill Lorensen's avatar
Bill Lorensen committed
10
Copyright (c) 1993-1999 Ken Martin, Will Schroeder, Bill Lorensen.
Jim Miller's avatar
Jim Miller committed
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46

This software is copyrighted by Ken Martin, Will Schroeder and Bill Lorensen.
The following terms apply to all files associated with the software unless
explicitly disclaimed in individual files. This copyright specifically does
not apply to the related textbook "The Visualization Toolkit" ISBN
013199837-4 published by Prentice Hall which is covered by its own copyright.

The authors hereby grant permission to use, copy, and distribute this
software and its documentation for any purpose, provided that existing
copyright notices are retained in all copies and that this notice is included
verbatim in any distributions. Additionally, the authors grant permission to
modify this software and its documentation for any purpose, provided that
such modifications are not distributed without the explicit consent of the
authors and that existing copyright notices are retained in all copies. Some
of the algorithms implemented by this software are patented, observe all
applicable patent law.

IN NO EVENT SHALL THE AUTHORS OR DISTRIBUTORS BE LIABLE TO ANY PARTY FOR
DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES ARISING OUT
OF THE USE OF THIS SOFTWARE, ITS DOCUMENTATION, OR ANY DERIVATIVES THEREOF,
EVEN IF THE AUTHORS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

THE AUTHORS AND DISTRIBUTORS SPECIFICALLY DISCLAIM ANY WARRANTIES, INCLUDING,
BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
PARTICULAR PURPOSE, AND NON-INFRINGEMENT.  THIS SOFTWARE IS PROVIDED ON AN
"AS IS" BASIS, AND THE AUTHORS AND DISTRIBUTORS HAVE NO OBLIGATION TO PROVIDE
MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.


=========================================================================*/
// .NAME vtkVersion - Versioning class for vtk
// .SECTION Description
// Holds methods for defining/determining the current vtk version
// (major, minor, build).

// .SECTION Caveats
Jim Miller's avatar
Jim Miller committed
47
48
// This file will change frequently to update the VTKSourceVersion which
// timestamps a particular source release.
Jim Miller's avatar
Jim Miller committed
49
50
51
52
53
54
55
56


#ifndef __vtkVersion_h
#define __vtkVersion_h


#include "vtkObject.h"

Ken Martin's avatar
Ken Martin committed
57
#define VTK_VERSION "2.4.0"
Jim Miller's avatar
Jim Miller committed
58
#define VTK_MAJOR_VERSION 2
Ken Martin's avatar
Ken Martin committed
59
#define VTK_MINOR_VERSION 4
Ken Martin's avatar
Ken Martin committed
60
#define VTK_BUILD_VERSION 0
61
#define VTK_SOURCE_VERSION "vtk version " VTK_VERSION ", vtk source $Revision: 1.257 $, $Date: 1999-08-29 00:05:40 $ (GMT)"
Jim Miller's avatar
Jim Miller committed
62
63
64
65
66
67
68
69
70


class VTK_EXPORT vtkVersion : public vtkObject {
 public:
  static vtkVersion *New() {return new vtkVersion;};
  const char *GetClassName() {return "vtkVersion";};

  // Description: 
  // Return the version of vtk this object is a part of.
Jim Miller's avatar
Jim Miller committed
71
  // A variety of methods are included. GetVTKSourceVersion returns a string
72
  // with an identifier which timestamps a particular source tree. 
Jim Miller's avatar
Jim Miller committed
73
74
75
76
  static const char *GetVTKVersion() { return VTK_VERSION; };
  static int GetVTKMajorVersion() { return VTK_MAJOR_VERSION; };
  static int GetVTKMinorVersion() { return VTK_MINOR_VERSION; };
  static int GetVTKBuildVersion() { return VTK_BUILD_VERSION; };
Jim Miller's avatar
Jim Miller committed
77
  static const char *GetVTKSourceVersion() { return VTK_SOURCE_VERSION; };
Jim Miller's avatar
Jim Miller committed
78
79
80
81
82
83
  
 protected:

};

#endif