Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Christian Butz
VTK
Commits
c71791bd
Commit
c71791bd
authored
Nov 13, 1998
by
Jim Miller
Browse files
new class
parent
451cfe1b
Changes
1
Show whitespace changes
Inline
Side-by-side
common/vtkVersion.h
0 → 100644
View file @
c71791bd
/*=========================================================================
Program: Visualization Toolkit
Module: vtkVersion.h
Language: C++
Date: $Date$
Version: $Revision$
Copyright (c) 1993-1998 Ken Martin, Will Schroeder, Bill Lorensen.
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
// The cxx file for this class will change frequently.
#ifndef __vtkVersion_h
#define __vtkVersion_h
#include
"vtkObject.h"
#define VTK_VERSION "2.2.2"
#define VTK_MAJOR_VERSION 2
#define VTK_MINOR_VERSION 2
#define VTK_BUILD_VERSION 2
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.
// A variety of methods are included.
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
;
};
protected:
};
#endif
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment