vtkToolkits.h.in 4.78 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 64
/*--------------------------------------------------------------------------*/
/* Wrapping Configuration                                                   */

#cmakedefine VTK_WRAP_TCL
#cmakedefine VTK_WRAP_PYTHON
#cmakedefine VTK_WRAP_JAVA

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

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

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

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

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

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

87 88
/* Should VTK use ODBC?  */
#cmakedefine VTK_USE_ODBC
89 90 91 92 93
#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
94

95 96 97 98 99 100 101 102 103 104 105 106 107 108
/* 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

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

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

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

127 128 129
/* Whether FFMPEG is found or not  */
#cmakedefine VTK_USE_FFMPEG_ENCODER

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

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

136 137 138
/* Whether the user has built the MetaIO library or not  */
#cmakedefine VTK_USE_METAIO

139 140 141 142 143
/* Options for GPUInfo */
#cmakedefine VTK_USE_DIRECTX
#cmakedefine VTK_USE_CORE_GRAPHICS
#cmakedefine VTK_USE_NVCONTROL

144 145 146 147 148 149 150 151 152 153 154
/*--------------------------------------------------------------------------*/
/* Setup VTK based on platform features and configuration.                  */

/* OGLR */
#if ((defined(VTK_USE_OPENGL_LIBRARY) && !defined(_WIN32)) || \
     (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

155 156 157 158 159
#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

160
#endif