VMTK
Loading...
Searching...
No Matches
vtkvmtkITKVersion.h
Go to the documentation of this file.
1/*=========================================================================
2
3Program: VMTK
4
5 Copyright (c) Kurt Sansom, Luca Antiga, David Steinman. All rights reserved.
6 See LICENSE file for details.
7
8 Portions of this code are covered under the VTK copyright.
9 See VTKCopyright.txt or http://www.kitware.com/VTKCopyright.htm
10 for details.
11
12 This software is distributed WITHOUT ANY WARRANTY; without even
13 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
14 PURPOSE. See the above copyright notices for more information.
15
16=========================================================================*/
17
18#ifndef __vtkvmtkITKVersion_h
19#define __vtkvmtkITKVersion_h
20
21#include "vtkvmtkITK.h"
22#include "vtkCommonCoreModule.h" // For export macro
23#include "vtkObject.h"
24#include "itkVersion.h" // For export macro
25
26
36class VTK_VMTK_ITK_EXPORT vtkvmtkITKVersion : public vtkObject
37{
38public:
40 vtkTypeMacro(vtkvmtkITKVersion, vtkObject);
41 void PrintSelf(std::ostream& os, vtkIndent indent) override;
42
44
49 static const char* GetITKVersion() { return itk::Version::GetITKVersion(); }
50 static int GetITKMajorVersion() { return itk::Version::GetITKMajorVersion(); }
51 static int GetITKMinorVersion() { return itk::Version::GetITKMinorVersion(); }
52 static int GetITKBuildVersion() { return itk::Version::GetITKBuildVersion(); }
53 static const char* GetITKSourceVersion() { return itk::Version::GetITKSourceVersion(); }
55
56protected:
57 vtkvmtkITKVersion() = default; // ensure constructor/destructor protected
58 ~vtkvmtkITKVersion() override = default;
59
60private:
61 vtkvmtkITKVersion(const vtkvmtkITKVersion&) = delete;
62 void operator=(const vtkvmtkITKVersion&) = delete;
63};
64
65#endif
static const char * GetITKVersion()
static int GetITKBuildVersion()
vtkvmtkITKVersion()=default
static int GetITKMinorVersion()
static vtkvmtkITKVersion * New()
static const char * GetITKSourceVersion()
void PrintSelf(std::ostream &os, vtkIndent indent) override
~vtkvmtkITKVersion() override=default
static int GetITKMajorVersion()
Common include pulling in the Utilities/vtkvmtkITK module's Windows export-macro header; included by ...