VTK
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
dox
Common
Core
vtkVersion.h
Go to the documentation of this file.
1
/*=========================================================================
2
3
Program: Visualization Toolkit
4
Module: vtkVersion.h
5
6
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7
All rights reserved.
8
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9
10
This software is distributed WITHOUT ANY WARRANTY; without even
11
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12
PURPOSE. See the above copyright notice for more information.
13
14
=========================================================================*/
26
#ifndef __vtkVersion_h
27
#define __vtkVersion_h
28
29
30
#include "vtkCommonCoreModule.h"
// For export macro
31
#include "
vtkObject.h
"
32
#include "vtkVersionMacros.h"
// For version macros
33
34
#define VTK_SOURCE_VERSION "vtk version " VTK_VERSION
35
36
class
VTKCOMMONCORE_EXPORT
vtkVersion
:
public
vtkObject
37
{
38
public
:
39
static
vtkVersion
*
New
();
40
vtkTypeMacro(
vtkVersion
,
vtkObject
);
41
43
46
static
const
char
*
GetVTKVersion
() {
return
VTK_VERSION; }
47
static
int
GetVTKMajorVersion
() {
return
VTK_MAJOR_VERSION; }
48
static
int
GetVTKMinorVersion
() {
return
VTK_MINOR_VERSION; }
49
static
int
GetVTKBuildVersion
() {
return
VTK_BUILD_VERSION; }
50
static
const
char
*
GetVTKSourceVersion
() {
return
VTK_SOURCE_VERSION
; }
52
53
protected
:
54
vtkVersion
() {};
//insure constructor/destructor protected
55
~vtkVersion
() {};
56
private
:
57
vtkVersion
(
const
vtkVersion
&);
// Not implemented.
58
void
operator=(
const
vtkVersion
&);
// Not implemented.
59
};
60
61
#endif
62
63
// VTK-HeaderTest-Exclude: vtkVersion.h
Generated on Thu May 24 2012 22:22:09 for VTK by
1.8.1