VTK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
vtkSystemIncludes.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkSystemIncludes.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
23 #ifndef __vtkSystemIncludes_h
24 #define __vtkSystemIncludes_h
25 
26 /* first include the local configuration for this machine */
27 #define __VTK_SYSTEM_INCLUDES__INSIDE
28 #include "vtkWin32Header.h"
29 #undef __VTK_SYSTEM_INCLUDES__INSIDE
30 
31 // The language wrapper files do not need the real streams. They
32 // define VTK_STREAMS_FWD_ONLY so that the streams are only
33 // forward-declared. This significantly improves compile time on some
34 // platforms.
35 #if defined(VTK_STREAMS_FWD_ONLY)
36 # include "vtkIOStreamFwd.h" // Forward-declare the C++ streams.
37 #else
38 # include "vtkIOStream.h" // Include the real C++ streams.
39 #endif
40 
41 // Setup the basic types to be used by VTK.
42 #include "vtkType.h"
43 
44 // this should be removed at some point
45 #define VTK_USE_EXECUTIVES
46 
47 #define __VTK_SYSTEM_INCLUDES__INSIDE
48 #include "vtkOStreamWrapper.h" // Include the ostream wrapper.
49 #include "vtkOStrStreamWrapper.h" // Include the ostrstream wrapper.
50 #undef __VTK_SYSTEM_INCLUDES__INSIDE
51 
52 // Include generic stuff.
53 #include <stdio.h>
54 #include <stdlib.h>
55 #include <string.h>
56 
57 // Borland C++ defines several of the stdlib.h and string.h symbols in
58 // sub-headers search.h and mem.h. These sub-headers have using
59 // declarations to pull functions from the std namespace to the global
60 // namespace, but they are defined only if the header was not included
61 // through the C++-style cstdlib or cstring header. These outer
62 // headers are included by the streams library in C++-style and
63 // include blockers are put in place that prevent including the
64 // C-style versions from ever including the sub-headers. Therefore we
65 // have to include the sub-headers here to get the using declarations.
66 #if defined(__BORLANDC__)
67 # include <mem.h> /* mem... functions from string.h */
68 # include <search.h> /* search functions from stdlib.h */
69 #endif
70 
71 // These types define error codes for vtk functions
72 #define VTK_OK 1
73 #define VTK_ERROR 2
74 
75 // These types define different text properties
76 #define VTK_ARIAL 0
77 #define VTK_COURIER 1
78 #define VTK_TIMES 2
79 #define VTK_UNKNOWN_FONT 3
80 #define VTK_FONT_FILE 4
81 
82 #define VTK_TEXT_LEFT 0
83 #define VTK_TEXT_CENTERED 1
84 #define VTK_TEXT_RIGHT 2
85 
86 #define VTK_TEXT_BOTTOM 0
87 #define VTK_TEXT_TOP 2
88 
89 #define VTK_TEXT_GLOBAL_ANTIALIASING_SOME 0
90 #define VTK_TEXT_GLOBAL_ANTIALIASING_NONE 1
91 #define VTK_TEXT_GLOBAL_ANTIALIASING_ALL 2
92 
93 #define VTK_LUMINANCE 1
94 #define VTK_LUMINANCE_ALPHA 2
95 #define VTK_RGB 3
96 #define VTK_RGBA 4
97 
98 #define VTK_COLOR_MODE_DEFAULT 0
99 #define VTK_COLOR_MODE_MAP_SCALARS 1
100 
101 // Constants for InterpolationType
102 #define VTK_NEAREST_INTERPOLATION 0
103 #define VTK_LINEAR_INTERPOLATION 1
104 #define VTK_CUBIC_INTERPOLATION 2
105 
106 // Constants for SlabType
107 #define VTK_IMAGE_SLAB_MIN 0
108 #define VTK_IMAGE_SLAB_MAX 1
109 #define VTK_IMAGE_SLAB_MEAN 2
110 #define VTK_IMAGE_SLAB_SUM 3
111 
112 // For volume rendering
113 #define VTK_MAX_VRCOMP 4
114 
115 // If VTK_USE_PTHREADS is defined, then the multithreaded
116 // function is of type void *, and returns NULL
117 // Otherwise the type is void which is correct for WIN32
118 // and SPROC
119 #ifdef VTK_USE_PTHREADS
120 #define VTK_THREAD_RETURN_VALUE NULL
121 #define VTK_THREAD_RETURN_TYPE void *
122 #endif
123 
124 #ifdef VTK_USE_WIN32_THREADS
125 #define VTK_THREAD_RETURN_VALUE 0
126 #define VTK_THREAD_RETURN_TYPE vtkWindowsDWORD __stdcall
127 #endif
128 
129 #if !defined(VTK_USE_PTHREADS) && !defined(VTK_USE_WIN32_THREADS)
130 #define VTK_THREAD_RETURN_VALUE
131 #define VTK_THREAD_RETURN_TYPE void
132 #endif
133 
134 // For encoding
135 
136 #define VTK_ENCODING_NONE 0 // to specify that no encoding should occur
137 #define VTK_ENCODING_US_ASCII 1
138 #define VTK_ENCODING_UNICODE 2
139 #define VTK_ENCODING_UTF_8 3
140 #define VTK_ENCODING_ISO_8859_1 4
141 #define VTK_ENCODING_ISO_8859_2 5
142 #define VTK_ENCODING_ISO_8859_3 6
143 #define VTK_ENCODING_ISO_8859_4 7
144 #define VTK_ENCODING_ISO_8859_5 8
145 #define VTK_ENCODING_ISO_8859_6 9
146 #define VTK_ENCODING_ISO_8859_7 10
147 #define VTK_ENCODING_ISO_8859_8 11
148 #define VTK_ENCODING_ISO_8859_9 12
149 #define VTK_ENCODING_ISO_8859_10 13
150 #define VTK_ENCODING_ISO_8859_11 14
151 #define VTK_ENCODING_ISO_8859_12 15
152 #define VTK_ENCODING_ISO_8859_13 16
153 #define VTK_ENCODING_ISO_8859_14 17
154 #define VTK_ENCODING_ISO_8859_15 18
155 #define VTK_ENCODING_ISO_8859_16 19
156 #define VTK_ENCODING_UNKNOWN 20 // leave this one at the end
157 
158 #endif
159 // VTK-HeaderTest-Exclude: vtkSystemIncludes.h