vtkToolkits.h.in 4.97 KB
Newer Older
1
2
3
4
5
/*=========================================================================

  Program:   Visualization Toolkit
  Module:    vtkToolkits.h.in

6
  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7
8
9
  All rights reserved.
  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.

10
11
     This software is distributed WITHOUT ANY WARRANTY; without even
     the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12
13
14
     PURPOSE.  See the above copyright notice for more information.

=========================================================================*/
15
16
#ifndef __vtkToolkits_h
#define __vtkToolkits_h
Ken Martin's avatar
fixes    
Ken Martin committed
17

18
19
20
21
22
/* This header is configured by VTK's build process.  */

/*--------------------------------------------------------------------------*/
/* Selected VTK Toolkits                                                    */

23
#cmakedefine VTK_USE_VIEWS
Ken Martin's avatar
Ken Martin committed
24
#cmakedefine VTK_USE_GEOVIS
25
#cmakedefine VTK_USE_INFOVIS
26
#cmakedefine VTK_USE_TEXT_ANALYSIS
27
#cmakedefine VTK_USE_N_WAY_ARRAYS
Ken Martin's avatar
fixes    
Ken Martin committed
28
#cmakedefine VTK_USE_PARALLEL
Ken Martin's avatar
Ken Martin committed
29
#cmakedefine VTK_USE_RENDERING
30
#cmakedefine VTK_USE_GL2PS
Ken Martin's avatar
fixes    
Ken Martin committed
31

32
33
34
35
36
37
/* The Hybrid and VolumeRendering kits are now switched with Rendering.  */
#ifdef VTK_USE_RENDERING
# define VTK_USE_HYBRID
# define VTK_USE_VOLUMERENDERING
#endif

38
39
/*--------------------------------------------------------------------------*/
/* Rendering Configuration                                                  */
Berk Geveci's avatar
Berk Geveci committed
40

41
#cmakedefine VTK_USE_X
42
43
#cmakedefine VTK_USE_MANGLED_MESA
#cmakedefine VTK_USE_OPENGL_LIBRARY
44
#cmakedefine VTK_OPENGL_HAS_OSMESA
45
#cmakedefine VTK_USE_OFFSCREEN
46

47
48
49
#cmakedefine VTK_USE_CG_SHADERS
#cmakedefine VTK_USE_GLSL_SHADERS

50
51
52
53
#cmakedefine VTK_MATERIALS_DIRS
#ifdef VTK_MATERIALS_DIRS
#  undef VTK_MATERIALS_DIRS
#  define VTK_MATERIALS_DIRS "@VTK_MATERIALS_DIRS@"
54
#endif
55

56
57
#cmakedefine VTK_USE_VOLUMEPRO_1000

58
59
60
61
62
63
/*--------------------------------------------------------------------------*/
/* Wrapping Configuration                                                   */

#cmakedefine VTK_WRAP_TCL
#cmakedefine VTK_WRAP_PYTHON
#cmakedefine VTK_WRAP_JAVA
64
#cmakedefine VTK_WRAP_PYTHON_SIP
65

66
67
/*--------------------------------------------------------------------------*/
/* Other Configuration Options                                              */
Ken Martin's avatar
fixes    
Ken Martin committed
68

69
/* Whether we are building MPI support.  */
Ken Martin's avatar
fixes    
Ken Martin committed
70
#cmakedefine VTK_USE_MPI
Ken Martin's avatar
Ken Martin committed
71

72
73
74
/* Should VTK use the display?  */
#cmakedefine VTK_USE_DISPLAY

75
/* Is VTK_DATA_ROOT defined? */
76
77
78
79
80
81
#cmakedefine VTK_DATA_ROOT
#ifdef VTK_DATA_ROOT
#  undef VTK_DATA_ROOT
#  define VTK_DATA_ROOT "@VTK_DATA_ROOT@"
#endif

82
/* Should VTK use PostgreSQL?  */
83
#cmakedefine VTK_USE_POSTGRES
84
85
86
87

/* Should VTK use MySQL?  */
#cmakedefine VTK_USE_MYSQL

88
89
/* Should VTK use ODBC?  */
#cmakedefine VTK_USE_ODBC
90
91
92
93
94
#cmakedefine VTK_ODBC_TEST_DSN
#ifdef VTK_ODBC_TEST_DSN
#  undef VTK_ODBC_TEST_DSN
#  define VTK_ODBC_TEST_DSN "@VTK_ODBC_TEST_DSN@"
#endif
95

96
97
98
99
100
101
102
103
104
105
106
107
108
109
/* Is a test PostgreSQL database URL defined? */
#cmakedefine VTK_PSQL_TEST_URL
#ifdef VTK_PSQL_TEST_URL
#  undef VTK_PSQL_TEST_URL
#  define VTK_PSQL_TEST_URL "@VTK_PSQL_TEST_URL@"
#endif

/* Is a test MySQL database URL defined? */
#cmakedefine VTK_MYSQL_TEST_URL
#ifdef VTK_MYSQL_TEST_URL
#  undef VTK_MYSQL_TEST_URL
#  define VTK_MYSQL_TEST_URL "@VTK_MYSQL_TEST_URL@"
#endif

110
111
112
/* Debug leaks support.  */
#cmakedefine VTK_DEBUG_LEAKS

113
114
115
/* Whether VTK is using its own utility libraries.  */
#cmakedefine VTK_USE_SYSTEM_PNG
#cmakedefine VTK_USE_SYSTEM_ZLIB
116
#cmakedefine VTK_USE_SYSTEM_HDF5
117
118
119
#cmakedefine VTK_USE_SYSTEM_JPEG
#cmakedefine VTK_USE_SYSTEM_TIFF
#cmakedefine VTK_USE_SYSTEM_EXPAT
120
#cmakedefine VTK_USE_SYSTEM_FREETYPE
121
#cmakedefine VTK_USE_SYSTEM_LIBXML2
122
#cmakedefine VTK_USE_SYSTEM_LIBPROJ4
123
#cmakedefine VTK_USE_SYSTEM_OGGTHEORA
124

125
126
127
128
/* Whether VTK is using vfw32 and if it supports video capture */
#cmakedefine VTK_USE_VIDEO_FOR_WINDOWS
#cmakedefine VTK_VFW_SUPPORTS_CAPTURE

129
130
131
/* Whether FFMPEG is found or not  */
#cmakedefine VTK_USE_FFMPEG_ENCODER

132
133
134
/* Whether the user has linked in the MPEG2 library or not  */
#cmakedefine VTK_USE_MPEG2_ENCODER

135
136
137
/* Whether the user wants to use the Ogg/Theora encoder or not */
#cmakedefine VTK_USE_OGGTHEORA_ENCODER

138
139
140
/* Whether the user has built the MetaIO library or not  */
#cmakedefine VTK_USE_METAIO

141
142
143
144
145
/* Options for GPUInfo */
#cmakedefine VTK_USE_DIRECTX
#cmakedefine VTK_USE_CORE_GRAPHICS
#cmakedefine VTK_USE_NVCONTROL

146
147
148
149
/*--------------------------------------------------------------------------*/
/* Setup VTK based on platform features and configuration.                  */

/* OGLR */
150
151
152
/* OGLR is for GLX. It can be on Unix, Mac or Windows */
#if ((defined(VTK_USE_OPENGL_LIBRARY) && defined(VTK_USE_X) && \
      !defined(_WIN32)) ||                                     \
153
154
155
156
157
158
     (defined(VTK_USE_X) && defined(_WIN32)) || \
     (defined(VTK_USE_MANGLED_MESA) && !defined(_WIN32))) && \
     !(defined (VTK_USE_CARBON) || defined(VTK_USE_COCOA))
# define VTK_USE_OGLR
#endif

Alexander Neundorf's avatar
   
Alexander Neundorf committed
159
160
161
162
163
#if (defined(VTK_OPENGL_HAS_OSMESA) && !defined(VTK_USE_OGLR) &&  \
    !defined(_WIN32) && !defined(VTK_USE_CARBON) && !defined(VTK_USE_COCOA))
# define VTK_USE_OSMESA
#endif

164
#endif