00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023 #ifndef VVIZ_STRUCTURE_H
00024 #define VVIZ_STRUCTURE_H
00025
00033 vec3 VVizGetVolumeDimensions(in VVizDataSetId dataset);
00034
00042 vec3 VVizGetTileDimensions(in VVizDataSetId dataset);
00043
00051 vec3 VVizGetVoxelDimensions(in VVizDataSetId dataset);
00052
00059 #define VVizTileInfo vec4
00060
00068 int VVizGetTileResolution(in VVizTileInfo tileInfo);
00069
00078 VVizTileInfo VVizGetTileInfo(in VVizDataSetId dataset, in vec3 dataCoord);
00079
00089 void VVizGetTileIJKBox(in VVizDataSetId dataset, in vec3 dataCoord, out vec3 tileIJKMin, out vec3 tileIJKMax);
00090
00095 VVizDataSetId VVizGetDefaultDataSet();
00096
00097
00107 vec4 VVizTextureToObject(in VVizDataSetId dataset, in vec4 texCoord);
00108
00119 vec3 VVizTextureToObjectVec(in VVizDataSetId dataset, in vec3 texCoord);
00120
00131 vec3 VVizTextureToObjectDir(in VVizDataSetId dataset, in vec3 texCoord);
00132
00133
00143 vec4 VVizObjectToTexture(in VVizDataSetId dataset, in vec4 objectCoord);
00144
00155 vec3 VVizObjectToTextureVec(in VVizDataSetId dataset, in vec3 objectCoord);
00156
00167 vec3 VVizObjectToTextureDir(in VVizDataSetId dataset, in vec3 objectCoord);
00168
00169
00178 vec4 VVizTextureToWorld(in VVizDataSetId dataset, in vec4 texCoord);
00179
00189 vec3 VVizTextureToWorldVec(in VVizDataSetId dataset, in vec3 texCoord);
00190
00200 vec3 VVizTextureToWorldDir(in VVizDataSetId dataset, in vec3 texCoord);
00201
00202
00211 vec4 VVizWorldToTexture(in VVizDataSetId dataset, in vec4 worldCoord);
00212
00222 vec3 VVizWorldToTextureVec(in VVizDataSetId dataset, in vec3 worldCoord);
00223
00233 vec3 VVizWorldToTextureDir(in VVizDataSetId dataset, in vec3 worldCoord);
00234
00235
00245 vec4 VVizTextureToTexture(in VVizDataSetId datasetSrc, in VVizDataSetId datasetDst, in vec4 texCoord);
00246
00257 vec3 VVizTextureToTextureVec(in VVizDataSetId datasetSrc, in VVizDataSetId datasetDst, in vec3 texCoord);
00258
00269 vec3 VVizTextureToTextureDir(in VVizDataSetId datasetSrc, in VVizDataSetId datasetDst, in vec3 texCoord);
00270
00275 struct VVizVoxelInfo
00276 {
00280 vec3 texCoord;
00285 VVIZ_DATATYPE value;
00286
00287
00288
00289 vec3 texCoordPhys;
00290
00291
00292
00293 VVizTileInfo tileInfo;
00294
00295
00296
00297 vec4 nprData;
00298
00299
00300
00301
00302
00303
00304 vec3 sampleCoord;
00305 };
00306
00307
00316 struct VVizNeighborsGeneral
00317 {
00318 vec3 texCoords[8];
00319 VVIZ_DATATYPE values[8];
00320
00321 vec3 coeffs;
00322 };
00323
00324 #endif
00325