1 #ifndef __@prj_NAME@__h__
2 #define __@prj_NAME@__h__
4 #define ITK_MANUAL_INSTANTIATION
5 #include <@prj_NAME@_Export.h>
9 * =========================================================================
11 * =========================================================================
14 #define @prj_NAME@_LIB_PREFIX "@prj_NAME_LIB_PREFIX@"
15 #define @prj_NAME@_LIB_EXT "@prj_NAME_LIB_EXT@"
16 #define @prj_NAME@_ENV_SEPARATOR "@prj_NAME_ENV_SEPARATOR@"
17 #define @prj_NAME@_PATH_SEPARATOR "@prj_NAME_PATH_SEPARATOR@"
19 #ifdef @prj_NAME@_OS_Windows
20 # ifndef WIN32_LEAN_AND_MEAN
21 # define WIN32_LEAN_AND_MEAN
26 #endif // @prj_NAME@_OS_Windows
29 * =========================================================================
31 * =========================================================================
34 #define @prj_NAME@_PATHS "@prj_NAME@_PATHS"
35 #define @prj_NAME@_CONFIG "@prj_NAME@_Libraries.config"
36 #define @prj_NAME@_QT4_USED @QT4_FOUND@
37 #if @prj_NAME@_QT4_USED == 1
38 # define @prj_NAME@_QT4
39 # define @prj_NAME@_QVTKWidget @cpPlugins_Qt4_VTKWidget@
40 # include <@cpPlugins_Qt4_VTKWidget@.h>
41 #else // @prj_NAME@_QT4_USED == 1
42 # undef @prj_NAME@_QT4
43 #endif // @prj_NAME@_QT4_USED == 1
46 * =========================================================================
47 * Version numbers and strings
48 * =========================================================================
51 #define @prj_NAME@_MAJOR_VERSION @prj_MAJ_VER@
52 #define @prj_NAME@_MINOR_VERSION @prj_MIN_VER@
53 #define @prj_NAME@_RELEASE_VERSION @prj_REL_VER@
54 #define @prj_NAME@_VERSION "@prj_VERSION@"
55 #define @prj_NAME@_SHORT_VERSION "@prj_SHORT_VERSION@"
56 #define @prj_NAME@_OpenGL_BackEnd_@VTK_RENDERING_BACKEND@
59 * =========================================================================
60 * Language related macros
61 * =========================================================================
64 #if __cplusplus >= 201103L
65 # define @prj_NAME@_OVERRIDE override
66 # define @prj_NAME@_DELETE_FUNCTION =delete
67 # define @prj_NAME@_NULLPTR nullptr
68 # define @prj_NAME@_NOEXCEPT noexcept
69 # define @prj_NAME@_HAS_CXX11_STATIC_ASSERT
70 # define @prj_NAME@_HAS_CXX11_RVREF
71 #else // __cplusplus >= 201103L
72 # define @prj_NAME@_OVERRIDE
73 # define @prj_NAME@_DELETE_FUNCTION
74 # define @prj_NAME@_NULLPTR NULL
75 # define @prj_NAME@_NOEXCEPT throw()
76 #endif // __cplusplus >= 201103L
79 * =========================================================================
81 * =========================================================================
84 #define @prj_NAME@_Id_Macro( _class, _category ) \
86 virtual const char* GetClassName( ) const @prj_NAME@_OVERRIDE \
87 { return( #_class ); } \
88 virtual const char* GetClassCategory( ) const @prj_NAME@_OVERRIDE \
89 { return( #_category ); }
91 #define @prj_NAME@Object( _cls, _scls, _cat ) \
94 typedef _scls Superclass; \
95 typedef itk::SmartPointer< Self > Pointer; \
96 typedef itk::SmartPointer< const Self > ConstPointer; \
98 itkNewMacro( Self ); \
99 itkTypeMacro( _cls, _scls ); \
101 virtual const char* GetClassName( ) const @prj_NAME@_OVERRIDE \
102 { return( #_cls ); } \
103 virtual const char* GetClassCategory( ) const @prj_NAME@_OVERRIDE \
104 { return( #_cat ); } \
108 virtual void _GenerateData( ) @prj_NAME@_OVERRIDE; \
110 _cls( const Self& ); \
111 Self& operator=( const Self& )
113 #define @prj_NAME@_Compatibility_Macro \
114 virtual bool IsCompatible( \
115 const DataObject* other \
116 ) const @prj_NAME@_OVERRIDE \
118 return( dynamic_cast< const Self* >( other ) != NULL ); \
121 #endif // __@prj_NAME@__h__