VTK  9.1.0
Types.h
Go to the documentation of this file.
1#pragma once
2
3#include <stdint.h>
4#include <sys/types.h>
5
6typedef enum : uint32_t
7{
15} RTWError;
16
17typedef 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
25typedef 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()
36typedef enum : uint32_t
37{
42 RTW_TASK_FINISHED = 100000
44
45// OSPRay cell types definition for unstructured volumes, values are set to match VTK
46typedef enum : uint8_t
47{
54
55// OSPRay PerspectiveCamera stereo image modes
56typedef enum : uint8_t
57{
64
65// OSPRay Curves geometry types
66typedef enum : uint8_t
67{
73
74// OSPRay Curves geometry bases
75typedef enum : uint8_t
76{
84
85// AMR Volume rendering methods
86typedef enum : uint8_t
87{
92
93typedef enum : uint32_t
94{
112
113typedef enum :uint32_t
114{
118
119typedef enum : uint32_t
120{
121 // Object reference type.
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.
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.
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.
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
199
200typedef enum : uint32_t
201{
205
206namespace 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
220typedef struct RTWHandle
237
239
240typedef enum : uint32_t
241{
248} RTWFeature;
struct RTWHandle * RTWData
Definition: Types.h:229
RTWCurveBasis
Definition: Types.h:76
@ RTW_BSPLINE
Definition: Types.h:79
@ RTW_LINEAR
Definition: Types.h:77
@ RTW_UNKNOWN_CURVE_BASIS
Definition: Types.h:82
@ RTW_CATMULL_ROM
Definition: Types.h:81
@ RTW_HERMITE
Definition: Types.h:80
@ RTW_BEZIER
Definition: Types.h:78
struct RTWHandle * RTWCamera
Definition: Types.h:223
RTWFrameBufferFormat
Definition: Types.h:18
@ RTW_FB_RGBA8
Definition: Types.h:20
@ RTW_FB_SRGBA
Definition: Types.h:21
@ RTW_FB_NONE
Definition: Types.h:19
@ RTW_FB_RGBA32F
Definition: Types.h:22
struct RTWHandle * RTWObject
Definition: Types.h:236
struct RTWHandle * RTWTexture
Definition: Types.h:235
RTWTextureFormat
Definition: Types.h:94
@ RTW_TEXTURE_L8
Definition: Types.h:103
@ RTW_TEXTURE_FORMAT_INVALID
Definition: Types.h:110
@ RTW_TEXTURE_R32F
Definition: Types.h:102
@ RTW_TEXTURE_RGBA32F
Definition: Types.h:97
@ RTW_TEXTURE_RA16
Definition: Types.h:108
@ RTW_TEXTURE_R16
Definition: Types.h:109
@ RTW_TEXTURE_LA8
Definition: Types.h:105
@ RTW_TEXTURE_RA8
Definition: Types.h:104
@ RTW_TEXTURE_SRGB
Definition: Types.h:99
@ RTW_TEXTURE_RGBA16
Definition: Types.h:106
@ RTW_TEXTURE_RGB8
Definition: Types.h:98
@ RTW_TEXTURE_R8
Definition: Types.h:101
@ RTW_TEXTURE_RGBA8
Definition: Types.h:95
@ RTW_TEXTURE_RGB32F
Definition: Types.h:100
@ RTW_TEXTURE_SRGBA
Definition: Types.h:96
@ RTW_TEXTURE_RGB16
Definition: Types.h:107
RTWSyncEvent
Definition: Types.h:37
@ RTW_FRAME_FINISHED
Definition: Types.h:41
@ RTW_NONE_FINISHED
Definition: Types.h:38
@ RTW_WORLD_RENDERED
Definition: Types.h:39
@ RTW_WORLD_COMMITTED
Definition: Types.h:40
@ RTW_TASK_FINISHED
Definition: Types.h:42
RTWStereoMode
Definition: Types.h:57
@ RTW_STEREO_LEFT
Definition: Types.h:59
@ RTW_STEREO_SIDE_BY_SIDE
Definition: Types.h:61
@ RTW_STEREO_UNKNOWN
Definition: Types.h:62
@ RTW_STEREO_RIGHT
Definition: Types.h:60
@ RTW_STEREO_NONE
Definition: Types.h:58
struct RTWHandle * RTWTransferFunction
Definition: Types.h:234
RTWFeature
Definition: Types.h:241
@ RTW_DEPTH_COMPOSITING
Definition: Types.h:247
@ RTW_INSTANCING
Definition: Types.h:245
@ RTW_DENOISER
Definition: Types.h:246
@ RTW_DEPTH_NORMALIZATION
Definition: Types.h:242
@ RTW_OPENGL_INTEROP
Definition: Types.h:243
@ RTW_ANIMATED_PARAMETERIZATION
Definition: Types.h:244
struct RTWHandle * RTWFrameBuffer
Definition: Types.h:220
RTWTexture RTWTexture2D
Definition: Types.h:238
struct RTWHandle * RTWGroup
Definition: Types.h:224
struct RTWHandle * RTWGeometry
Definition: Types.h:230
RTWAMRMethod
Definition: Types.h:87
@ RTW_AMR_OCTANT
Definition: Types.h:90
@ RTW_AMR_CURRENT
Definition: Types.h:88
@ RTW_AMR_FINEST
Definition: Types.h:89
struct RTWHandle * RTWVolume
Definition: Types.h:233
RTWCurveType
Definition: Types.h:67
@ RTW_RIBBON
Definition: Types.h:70
@ RTW_UNKNOWN_CURVE_TYPE
Definition: Types.h:71
@ RTW_FLAT
Definition: Types.h:69
@ RTW_ROUND
Definition: Types.h:68
RTWError
Definition: Types.h:7
@ RTW_UNKNOWN_ERROR
Definition: Types.h:9
@ RTW_VERSION_MISMATCH
Definition: Types.h:14
@ RTW_NO_ERROR
Definition: Types.h:8
@ RTW_OUT_OF_MEMORY
Definition: Types.h:12
@ RTW_INVALID_OPERATION
Definition: Types.h:11
@ RTW_UNSUPPORTED_DEVICE
Definition: Types.h:13
@ RTW_INVALID_ARGUMENT
Definition: Types.h:10
RTWTextureFilter
Definition: Types.h:114
@ RTW_TEXTURE_FILTER_NEAREST
Definition: Types.h:116
@ RTW_TEXTURE_FILTER_BILINEAR
Definition: Types.h:115
struct RTWHandle * RTWVolumetricModel
Definition: Types.h:227
RTWDataType
Definition: Types.h:120
@ RTW_BOX1I
Definition: Types.h:188
@ RTW_VEC3F
Definition: Types.h:182
@ RTW_BYTE
Definition: Types.h:160
@ RTW_FLOAT
Definition: Types.h:182
@ RTW_UINT
Definition: Types.h:173
@ RTW_MATERIAL
Definition: Types.h:144
@ RTW_VEC4F
Definition: Types.h:182
@ RTW_VEC4UL
Definition: Types.h:179
@ RTW_FRAMEBUFFER
Definition: Types.h:136
@ RTW_BOX2I
Definition: Types.h:188
@ RTW_VEC2I
Definition: Types.h:170
@ RTW_UNKNOWN
Definition: Types.h:197
@ RTW_WORLD
Definition: Types.h:150
@ RTW_BOX3F
Definition: Types.h:191
@ RTW_CAMERA
Definition: Types.h:135
@ RTW_VEC4L
Definition: Types.h:176
@ RTW_BOX4F
Definition: Types.h:191
@ RTW_AFFINE3F
Definition: Types.h:194
@ RTW_BOX4I
Definition: Types.h:188
@ RTW_ULONG
Definition: Types.h:179
@ RTW_TRANSFER_FUNCTION
Definition: Types.h:147
@ RTW_LONG
Definition: Types.h:176
@ RTW_LINEAR3F
Definition: Types.h:194
@ RTW_INT
Definition: Types.h:170
@ RTW_VEC3UL
Definition: Types.h:179
@ RTW_GROUP
Definition: Types.h:140
@ RTW_VEC2L
Definition: Types.h:176
@ RTW_FUTURE
Definition: Types.h:137
@ RTW_VEC2UL
Definition: Types.h:179
@ RTW_VOLUMETRIC_MODEL
Definition: Types.h:149
@ RTW_USHORT
Definition: Types.h:167
@ RTW_VEC2UC
Definition: Types.h:159
@ RTW_GEOMETRIC_MODEL
Definition: Types.h:138
@ RTW_DEVICE
Definition: Types.h:122
@ RTW_STRING
Definition: Types.h:153
@ RTW_VEC3I
Definition: Types.h:170
@ RTW_LINEAR2F
Definition: Types.h:194
@ RTW_VEC3UI
Definition: Types.h:173
@ RTW_IMAGE_OPERATION
Definition: Types.h:141
@ RTW_VEC3L
Definition: Types.h:176
@ RTW_RAW
Definition: Types.h:161
@ RTW_VEC2F
Definition: Types.h:182
@ RTW_VOID_PTR
Definition: Types.h:125
@ RTW_VEC4UC
Definition: Types.h:159
@ RTW_BOX2F
Definition: Types.h:191
@ RTW_VEC3UC
Definition: Types.h:159
@ RTW_BOX3I
Definition: Types.h:188
@ RTW_GEOMETRY
Definition: Types.h:139
@ RTW_UCHAR
Definition: Types.h:159
@ RTW_INSTANCE
Definition: Types.h:142
@ RTW_RENDERER
Definition: Types.h:145
@ RTW_VOLUME
Definition: Types.h:148
@ RTW_SHORT
Definition: Types.h:164
@ RTW_VEC4I
Definition: Types.h:170
@ RTW_VEC2UI
Definition: Types.h:173
@ RTW_LIGHT
Definition: Types.h:143
@ RTW_DOUBLE
Definition: Types.h:185
@ RTW_TEXTURE
Definition: Types.h:146
@ RTW_OBJECT
Definition: Types.h:131
@ RTW_BOX1F
Definition: Types.h:191
@ RTW_VEC4UI
Definition: Types.h:173
@ RTW_BOOL
Definition: Types.h:128
@ RTW_CHAR
Definition: Types.h:156
@ RTW_AFFINE2F
Definition: Types.h:194
@ RTW_DATA
Definition: Types.h:134
struct RTWHandle * RTWMaterial
Definition: Types.h:231
struct RTWHandle * RTWRenderer
Definition: Types.h:222
struct RTWHandle * RTWLight
Definition: Types.h:232
struct RTWHandle * RTWInstance
Definition: Types.h:225
RTWFrameBufferChannel
Definition: Types.h:26
@ RTW_FB_ALBEDO
Definition: Types.h:32
@ RTW_FB_VARIANCE
Definition: Types.h:30
@ RTW_FB_ACCUM
Definition: Types.h:29
@ RTW_FB_NORMAL
Definition: Types.h:31
@ RTW_FB_COLOR
Definition: Types.h:27
@ RTW_FB_DEPTH
Definition: Types.h:28
struct RTWHandle * RTWWorld
Definition: Types.h:228
RTWUnstructuredCellType
Definition: Types.h:47
@ RTW_TETRAHEDRON
Definition: Types.h:48
@ RTW_HEXAHEDRON
Definition: Types.h:49
@ RTW_WEDGE
Definition: Types.h:50
@ RTW_UNKNOWN_CELL_TYPE
Definition: Types.h:52
@ RTW_PYRAMID
Definition: Types.h:51
RTWBackendType
Definition: Types.h:201
@ RTW_BACKEND_OSPRAY
Definition: Types.h:202
@ RTW_BACKEND_VISRTX
Definition: Types.h:203
struct RTWHandle * RTWGeometricModel
Definition: Types.h:226
Definition: Types.h:207
vec3f p
Definition: Types.h:217
linear3f l
Definition: Types.h:217
vec3f lower
Definition: Types.h:215
vec3f upper
Definition: Types.h:215
vec3i lower
Definition: Types.h:214
vec3i upper
Definition: Types.h:214
vec3f vx
Definition: Types.h:216
vec3f vz
Definition: Types.h:216
vec3f vy
Definition: Types.h:216
float x
Definition: Types.h:208
float y
Definition: Types.h:208
int x
Definition: Types.h:209
int y
Definition: Types.h:209
float z
Definition: Types.h:212
float y
Definition: Types.h:212
float x
Definition: Types.h:212
int y
Definition: Types.h:210
int x
Definition: Types.h:210
int z
Definition: Types.h:210
unsigned int z
Definition: Types.h:211
unsigned int x
Definition: Types.h:211
unsigned int y
Definition: Types.h:211
float w
Definition: Types.h:213
float x
Definition: Types.h:213
float y
Definition: Types.h:213
float z
Definition: Types.h:213