00001 /*======================================================================= 00002 *** THE CONTENT OF THIS WORK IS PROPRIETARY TO FEI S.A.S, (FEI S.A.S.), *** 00003 *** AND IS DISTRIBUTED UNDER A LICENSE AGREEMENT. *** 00004 *** *** 00005 *** REPRODUCTION, DISCLOSURE, OR USE, IN WHOLE OR IN PART, OTHER THAN AS *** 00006 *** SPECIFIED IN THE LICENSE ARE NOT TO BE UNDERTAKEN EXCEPT WITH PRIOR *** 00007 *** WRITTEN AUTHORIZATION OF FEI S.A.S. *** 00008 *** *** 00009 *** RESTRICTED RIGHTS LEGEND *** 00010 *** USE, DUPLICATION, OR DISCLOSURE BY THE GOVERNMENT OF THE CONTENT OF THIS *** 00011 *** WORK OR RELATED DOCUMENTATION IS SUBJECT TO RESTRICTIONS AS SET FORTH IN *** 00012 *** SUBPARAGRAPH (C)(1) OF THE COMMERCIAL COMPUTER SOFTWARE RESTRICTED RIGHT *** 00013 *** CLAUSE AT FAR 52.227-19 OR SUBPARAGRAPH (C)(1)(II) OF THE RIGHTS IN *** 00014 *** TECHNICAL DATA AND COMPUTER SOFTWARE CLAUSE AT DFARS 52.227-7013. *** 00015 *** *** 00016 *** COPYRIGHT (C) 1996-2020 BY FEI S.A.S, *** 00017 *** BORDEAUX, FRANCE *** 00018 *** ALL RIGHTS RESERVED *** 00019 **=======================================================================*/ 00020 /*======================================================================= 00021 ** Author : VSG (MMM YYYY) 00022 **=======================================================================*/ 00023 #ifndef VVIZ_STRUCTURE_H 00024 #define VVIZ_STRUCTURE_H 00025 00038 vec3 VVizGetVolumeDimensions(in VVizDataSetId dataset); 00039 00046 vec3 VVizGetTileDimensions(in VVizDataSetId dataset); 00047 00054 vec3 VVizGetVoxelDimensions(in VVizDataSetId dataset); 00055 00061 #define VVizTileInfo vec4 00062 00069 int VVizGetTileResolution(in VVizTileInfo tileInfo); 00070 00078 VVizTileInfo VVizGetTileInfo(in VVizDataSetId dataset, in vec3 dataCoord); 00079 00088 void VVizGetTileIJKBox(in VVizDataSetId dataset, in vec3 dataCoord, out vec3 tileIJKMin, out vec3 tileIJKMax); 00089 00093 struct VVizVoxelInfo 00094 { 00098 vec3 texCoord; 00103 VVIZ_DATATYPE value; 00104 00105 // PRIVATE members 00106 // Texture coordinate in Physical Space 00107 vec3 texCoordPhys; 00108 // Physical tile information 00109 // - tileInfo.xyz = tile's origin coordinate 00110 // - tileInfo.w = tile's ldm resolution 00111 VVizTileInfo tileInfo; 00112 //Used by VVizEdgeImageSpace and accumulated along the ray 00113 // - nprData.x = viewspace Z 00114 // - nprData.y = normal factor 00115 vec4 nprData; 00116 00117 // coordinates of sample in volume space. 00118 // most of the time, equal to texCoord but may be different in case of projection 00119 // or in voxelized rendering. 00120 // Difference with texCoord is that texCoord represent where we will access data whereas 00121 // sample coord represent where is the current sample of raycast. 00122 vec3 sampleCoord; 00123 }; 00124 00125 00134 struct VVizNeighborsGeneral 00135 { 00136 vec3 texCoords[8]; 00137 VVIZ_DATATYPE values[8]; 00138 // Coeffs used for linear interpolation (ie: fractionnal part of texcoords) 00139 vec3 coeffs; 00140 }; 00141 00142 #endif 00143