VTK  9.2.6
Types.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include <stdint.h>
4 #include <sys/types.h>
5 
6 typedef enum : uint32_t
7 {
15 } RTWError;
16 
17 typedef enum : uint32_t
18 {
19  RTW_FB_NONE, //< framebuffer will not be mapped by application
20  RTW_FB_RGBA8, //< one dword per pixel: rgb+alpha, each one byte
21  RTW_FB_SRGBA, //< one dword per pixel: rgb (in sRGB space) + alpha, each one byte
22  RTW_FB_RGBA32F, //< one float4 per pixel: rgb+alpha, each one float
24 
25 typedef enum : uint32_t
26 {
27  RTW_FB_COLOR = (1 << 0),
28  RTW_FB_DEPTH = (1 << 1),
29  RTW_FB_ACCUM = (1 << 2),
30  RTW_FB_VARIANCE = (1 << 3),
31  RTW_FB_NORMAL = (1 << 4),
32  RTW_FB_ALBEDO = (1 << 5),
34 
35 // OSPRay events which can be waited on via ospWait()
36 typedef enum : uint32_t
37 {
43 } RTWSyncEvent;
44 
45 // OSPRay cell types definition for unstructured volumes, values are set to match VTK
46 typedef enum : uint8_t
47 {
50  RTW_WEDGE = 13,
54 
55 // OSPRay PerspectiveCamera stereo image modes
56 typedef enum : uint8_t
57 {
64 
65 // OSPRay Curves geometry types
66 typedef enum : uint8_t
67 {
72 } RTWCurveType;
73 
74 // OSPRay Curves geometry bases
75 typedef enum : uint8_t
76 {
84 
85 // AMR Volume rendering methods
86 typedef enum : uint8_t
87 {
91 } RTWAMRMethod;
92 
93 typedef enum : uint32_t
94 {
112 
113 typedef enum :uint32_t
114 {
118 
119 typedef enum : uint32_t
120 {
121  // Object reference type.
122  RTW_DEVICE = 100,
123 
124  // Void pointer type.
126 
127  // Booleans, same size as RTW_INT.
128  RTW_BOOL = 250,
129 
130  // highest bit to represent objects/handles
131  RTW_OBJECT = 0x8000000,
132 
133  // object subtypes
134  RTW_DATA = 0x8000000 + 100,
151 
152  // Pointer to a C-style NULL-terminated character string.
153  RTW_STRING = 1500,
154 
155  // Character scalar type.
156  RTW_CHAR = 2000,
157 
158  // Unsigned character scalar and vector types.
160  RTW_BYTE = 2500, //XXX RTW_UCHAR, ISPC issue #1246
161  RTW_RAW = 2500, //XXX RTW_UCHAR, ISPC issue #1246
162 
163  // Signed 16-bit integer scalar.
164  RTW_SHORT = 3000,
165 
166  // Unsigned 16-bit integer scalar.
167  RTW_USHORT = 3500,
168 
169  // Signed 32-bit integer scalar and vector types.
171 
172  // Unsigned 32-bit integer scalar and vector types.
174 
175  // Signed 64-bit integer scalar and vector types.
177 
178  // Unsigned 64-bit integer scalar and vector types.
180 
181  // Single precision floating point scalar and vector types.
183 
184  // Double precision floating point scalar type.
185  RTW_DOUBLE = 7000,
186 
187  // Signed 32-bit integer N-dimensional box types
189 
190  // Single precision floating point N-dimensional box types
192 
193  // Transformation types
195 
196  // Guard value.
197  RTW_UNKNOWN = 9999999
198 } RTWDataType;
199 
200 typedef enum : uint32_t
201 {
205 
206 namespace rtw
207 {
208  struct vec2f { float x, y; };
209  struct vec2i { int x, y; };
210  struct vec3i { int x, y, z; };
211  struct vec3ui { unsigned int x, y, z; };
212  struct vec3f { float x, y, z; };
213  struct vec4f { float x, y, z, w; };
214  struct box3i { vec3i lower, upper; };
215  struct box3f { vec3f lower, upper; };
216  struct linear3f { vec3f vx, vy, vz; };
217  struct affine3f { linear3f l; vec3f p; };
218 }
219 
220 typedef struct RTWHandle
222 *RTWRenderer,
223 *RTWCamera,
224 *RTWGroup,
225 *RTWInstance,
228 *RTWWorld,
229 *RTWData,
230 *RTWGeometry,
231 *RTWMaterial,
232 *RTWLight,
233 *RTWVolume,
235 *RTWTexture,
236 *RTWObject;
237 
238 typedef RTWTexture RTWTexture2D;
239 
240 typedef enum : uint32_t
241 {
248 } RTWFeature;
struct RTWHandle * RTWObject
Definition: Types.h:220
int y
Definition: Types.h:210
RTWTexture RTWTexture2D
Definition: Types.h:238
RTWAMRMethod
Definition: Types.h:86
float y
Definition: Types.h:213
unsigned int z
Definition: Types.h:211
unsigned int y
Definition: Types.h:211
int z
Definition: Types.h:210
float z
Definition: Types.h:212
RTWCurveBasis
Definition: Types.h:75
RTWTextureFilter
Definition: Types.h:113
RTWCurveType
Definition: Types.h:66
struct RTWHandle * RTWInstance
Definition: Types.h:220
struct RTWHandle * RTWRenderer
Definition: Types.h:220
float y
Definition: Types.h:208
struct RTWHandle * RTWVolumetricModel
Definition: Types.h:220
vec3i upper
Definition: Types.h:214
Definition: Types.h:170
Definition: Types.h:161
float x
Definition: Types.h:213
struct RTWHandle * RTWCamera
Definition: Types.h:220
RTWFrameBufferChannel
Definition: Types.h:25
struct RTWHandle * RTWGeometry
Definition: Types.h:220
vec3f vy
Definition: Types.h:216
RTWFrameBufferFormat
Definition: Types.h:17
struct RTWHandle * RTWData
Definition: Types.h:220
RTWTextureFormat
Definition: Types.h:93
RTWFeature
Definition: Types.h:240
int x
Definition: Types.h:210
float y
Definition: Types.h:212
linear3f l
Definition: Types.h:217
RTWStereoMode
Definition: Types.h:56
vec3f lower
Definition: Types.h:215
struct RTWHandle * RTWGeometricModel
Definition: Types.h:220
struct RTWHandle * RTWFrameBuffer
Definition: Types.h:220
float w
Definition: Types.h:213
vec3f p
Definition: Types.h:217
RTWDataType
Definition: Types.h:119
Definition: Types.h:206
Definition: Types.h:69
RTWBackendType
Definition: Types.h:200
int y
Definition: Types.h:209
struct RTWHandle * RTWWorld
Definition: Types.h:220
int x
Definition: Types.h:209
struct RTWHandle * RTWGroup
Definition: Types.h:220
RTWSyncEvent
Definition: Types.h:36
struct RTWHandle * RTWTransferFunction
Definition: Types.h:220
vec3i lower
Definition: Types.h:214
struct RTWHandle * RTWMaterial
Definition: Types.h:220
struct RTWHandle * RTWTexture
Definition: Types.h:220
float x
Definition: Types.h:212
vec3f upper
Definition: Types.h:215
float z
Definition: Types.h:213
RTWUnstructuredCellType
Definition: Types.h:46
struct RTWHandle * RTWVolume
Definition: Types.h:220
unsigned int x
Definition: Types.h:211
struct RTWHandle * RTWLight
Definition: Types.h:220
float x
Definition: Types.h:208
vec3f vx
Definition: Types.h:216
RTWError
Definition: Types.h:6
vec3f vz
Definition: Types.h:216