HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
UT_VoxelArray.h File Reference
#include "UT_API.h"
#include "UT_BoundingBox.h"
#include "UT_Vector2.h"
#include "UT_Vector3.h"
#include "UT_Vector4.h"
#include "UT_IntArray.h"
#include "UT_ValArray.h"
#include "UT_Array.h"
#include "UT_FilterType.h"
#include "UT_COW.h"
#include "UT_ThreadedAlgorithm.h"
#include "UT_Interrupt.h"
#include <VM/VM_SIMD.h>
#include <SYS/SYS_SharedMemory.h>
#include <SYS/SYS_StaticAssert.h>
#include <SYS/SYS_Types.h>
#include "UT_VoxelArray.C"
+ Include dependency graph for UT_VoxelArray.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  UT_VoxelTile< T >
 
class  UT_VoxelArray< T >
 
class  UT_VoxelProbe< T, DoRead, DoWrite, TestForWrite >
 
class  UT_VoxelProbeCube< T >
 
class  UT_VoxelProbeFace< T >
 
struct  UT_VoxelArrayTileDataDescr
 
class  UT_VoxelCompressOptions
 
class  UT_VoxelTileCompress< T >
 
class  UT_VoxelTile< T >
 
class  UT_VoxelArray< T >
 
class  UT_VoxelMipMap< T >
 
class  UT_VoxelArrayIterator< T >
 
class  UT_VoxelTileIterator< T >
 
class  UT_VoxelProbe< T, DoRead, DoWrite, TestForWrite >
 
class  UT_VoxelVectorProbe< T, DoRead, DoWrite, TestForWrites >
 
class  UT_VoxelProbeCube< T >
 
class  UT_VoxelProbeConstant< T >
 
class  UT_VoxelProbeAverage< T, XStep, YStep, ZStep >
 
class  UT_VoxelProbeFace< T >
 

Macros

#define UT_VOXEL_ALLOC(x)   SYSamalloc((x), 128)
 
#define UT_VOXEL_FREE(x)   SYSafree(x)
 
#define DEFINE_STD_FUNC(TYPE)
 

Typedefs

typedef UT_VoxelArray< fpreal32UT_VoxelArrayF
 
typedef UT_VoxelArray< int64UT_VoxelArrayI
 
typedef UT_VoxelArray< UT_Vector4UT_VoxelArrayV4
 
typedef UT_VoxelMipMap< fpreal32UT_VoxelMipMapF
 
typedef UT_VoxelArrayIterator
< fpreal32
UT_VoxelArrayIteratorF
 
typedef UT_VoxelArrayIterator
< int64
UT_VoxelArrayIteratorI
 
typedef UT_VoxelTileIterator
< fpreal32
UT_VoxelTileIteratorF
 
typedef UT_VoxelTileIterator
< int64
UT_VoxelTileIteratorI
 
typedef UT_VoxelArrayIterator
< UT_Vector4
UT_VoxelArrayIteratorV4
 
typedef UT_VoxelTileIterator
< UT_Vector4
UT_VoxelTileIteratorV4
 
typedef UT_VoxelProbe
< fpreal32, true, false, false > 
UT_VoxelProbeF
 
typedef UT_VoxelVectorProbe
< fpreal32, true, false, false > 
UT_VoxelVectorProbeF
 
typedef UT_VoxelProbe
< UT_Vector4, true, false,
false > 
UT_VoxelProbeV4
 
typedef UT_VoxelProbe
< fpreal32, false, true, false > 
UT_VoxelWOProbeF
 
typedef UT_VoxelVectorProbe
< fpreal32, false, true, false > 
UT_VoxelVectorWOProbeF
 
typedef UT_VoxelProbe
< UT_Vector4, false, true,
false > 
UT_VoxelWOProbeV4
 
typedef UT_VoxelProbe
< fpreal32, true, true, false > 
UT_VoxelRWProbeF
 
typedef UT_VoxelVectorProbe
< fpreal32, true, true, false > 
UT_VoxelVectorRWProbeF
 
typedef UT_VoxelProbe
< UT_Vector4, true, true,
false > 
UT_VoxelRWProbeV4
 
typedef UT_VoxelProbe
< fpreal32, true, true, true > 
UT_VoxelRWTProbeF
 
typedef UT_VoxelVectorProbe
< fpreal32, true, true, true > 
UT_VoxelVectorRWTProbeF
 
typedef UT_VoxelProbe
< UT_Vector4, true, true, true > 
UT_VoxelRWTProbeV4
 
typedef UT_VoxelProbeCube
< fpreal32
UT_VoxelROProbeCubeF
 
typedef UT_COWHandle
< UT_VoxelArray< fpreal32 > > 
UT_VoxelArrayHandleF
 
typedef UT_COWReadHandle
< UT_VoxelArray< fpreal32 > > 
UT_VoxelArrayReadHandleF
 
typedef UT_COWWriteHandle
< UT_VoxelArray< fpreal32 > > 
UT_VoxelArrayWriteHandleF
 
typedef UT_COWHandle
< UT_VoxelArray< UT_Vector4 > > 
UT_VoxelArrayHandleV4
 
typedef UT_COWReadHandle
< UT_VoxelArray< UT_Vector4 > > 
UT_VoxelArrayReadHandleV4
 
typedef UT_COWWriteHandle
< UT_VoxelArray< UT_Vector4 > > 
UT_VoxelArrayWriteHandleV4
 

Enumerations

enum  UT_VoxelBorderType { UT_VOXELBORDER_CONSTANT, UT_VOXELBORDER_REPEAT, UT_VOXELBORDER_STREAK, UT_VOXELBORDER_EXTRAP }
 

Functions

UT_API UT_ValArray
< UT_VoxelTileCompress
< fpreal16 > * > & 
UTvoxelTileGetCompressionEngines (fpreal16 *dummy)
 
UT_API UT_ValArray
< UT_VoxelTileCompress
< fpreal32 > * > & 
UTvoxelTileGetCompressionEngines (fpreal32 *dummy)
 
UT_API UT_ValArray
< UT_VoxelTileCompress
< fpreal64 > * > & 
UTvoxelTileGetCompressionEngines (fpreal64 *dummy)
 
UT_API UT_ValArray
< UT_VoxelTileCompress< uint8 > * > & 
UTvoxelTileGetCompressionEngines (uint8 *dummy)
 
UT_API UT_ValArray
< UT_VoxelTileCompress< int8 > * > & 
UTvoxelTileGetCompressionEngines (int8 *dummy)
 
UT_API UT_ValArray
< UT_VoxelTileCompress< int16 > * > & 
UTvoxelTileGetCompressionEngines (int16 *dummy)
 
UT_API UT_ValArray
< UT_VoxelTileCompress< int32 > * > & 
UTvoxelTileGetCompressionEngines (int32 *dummy)
 
UT_API UT_ValArray
< UT_VoxelTileCompress< int64 > * > & 
UTvoxelTileGetCompressionEngines (int64 *dummy)
 
UT_API UT_ValArray
< UT_VoxelTileCompress
< UT_Vector2 > * > & 
UTvoxelTileGetCompressionEngines (UT_Vector2 *dummy)
 
UT_API UT_ValArray
< UT_VoxelTileCompress
< UT_Vector3 > * > & 
UTvoxelTileGetCompressionEngines (UT_Vector3 *dummy)
 
UT_API UT_ValArray
< UT_VoxelTileCompress
< UT_Vector4 > * > & 
UTvoxelTileGetCompressionEngines (UT_Vector4 *dummy)
 
void UTvoxelTileExpandMinMax (UT_Vector2 v, UT_Vector2 &min, UT_Vector2 &max)
 
void UTvoxelTileExpandMinMax (UT_Vector3 v, UT_Vector3 &min, UT_Vector3 &max)
 
void UTvoxelTileExpandMinMax (UT_Vector4 v, UT_Vector4 &min, UT_Vector4 &max)
 
fpreal UTvoxelTileDist (const UT_Vector2 &a, const UT_Vector2 &b)
 
fpreal UTvoxelTileDist (const UT_Vector3 &a, const UT_Vector3 &b)
 
fpreal UTvoxelTileDist (const UT_Vector4 &a, const UT_Vector4 &b)
 

Macro Definition Documentation

#define DEFINE_STD_FUNC (   TYPE)
Value:
inline void \
UTvoxelTileExpandMinMax(TYPE v, TYPE &min, TYPE &max) \
{ \
if (v < min) \
min = v; \
else if (v > max) \
max = v; \
} \
\
inline fpreal \
UTvoxelTileDist(TYPE a, TYPE b) \
{ \
return (fpreal) SYSabs(a - b); \
}
vint4 max(const vint4 &a, const vint4 &b)
Definition: simd.h:4703
GLboolean GLboolean GLboolean GLboolean a
Definition: glew.h:9477
#define SYSabs(a)
Definition: SYS_Math.h:1523
fpreal UTvoxelTileDist(const UT_Vector2 &a, const UT_Vector2 &b)
const GLdouble * v
Definition: glew.h:1391
void UTvoxelTileExpandMinMax(UT_Vector2 v, UT_Vector2 &min, UT_Vector2 &max)
GLdouble GLdouble GLdouble b
Definition: glew.h:9122
fpreal64 fpreal
Definition: SYS_Types.h:277
if(rank==1) return rank
vint4 min(const vint4 &a, const vint4 &b)
Definition: simd.h:4694

Definition at line 192 of file UT_VoxelArray.h.

#define UT_VOXEL_ALLOC (   x)    SYSamalloc((x), 128)

Definition at line 51 of file UT_VoxelArray.h.

#define UT_VOXEL_FREE (   x)    SYSafree(x)

Definition at line 52 of file UT_VoxelArray.h.

Typedef Documentation

Definition at line 2411 of file UT_VoxelArray.h.

Definition at line 2412 of file UT_VoxelArray.h.

Definition at line 2413 of file UT_VoxelArray.h.

Definition at line 2415 of file UT_VoxelArray.h.

typedef UT_VoxelProbe<fpreal32, true, false, false> UT_VoxelProbeF

Definition at line 2423 of file UT_VoxelArray.h.

typedef UT_VoxelProbe<UT_Vector4, true, false, false> UT_VoxelProbeV4

Definition at line 2425 of file UT_VoxelArray.h.

Definition at line 2440 of file UT_VoxelArray.h.

typedef UT_VoxelProbe<fpreal32, true, true, false> UT_VoxelRWProbeF

Definition at line 2431 of file UT_VoxelArray.h.

typedef UT_VoxelProbe<UT_Vector4, true, true, false> UT_VoxelRWProbeV4

Definition at line 2433 of file UT_VoxelArray.h.

typedef UT_VoxelProbe<fpreal32, true, true, true> UT_VoxelRWTProbeF

Definition at line 2435 of file UT_VoxelArray.h.

typedef UT_VoxelProbe<UT_Vector4, true, true, true> UT_VoxelRWTProbeV4

Definition at line 2437 of file UT_VoxelArray.h.

typedef UT_VoxelVectorProbe<fpreal32, true, false, false> UT_VoxelVectorProbeF

Definition at line 2424 of file UT_VoxelArray.h.

Definition at line 2432 of file UT_VoxelArray.h.

Definition at line 2436 of file UT_VoxelArray.h.

typedef UT_VoxelVectorProbe<fpreal32, false, true, false> UT_VoxelVectorWOProbeF

Definition at line 2428 of file UT_VoxelArray.h.

typedef UT_VoxelProbe<fpreal32, false, true, false> UT_VoxelWOProbeF

Definition at line 2427 of file UT_VoxelArray.h.

typedef UT_VoxelProbe<UT_Vector4, false, true, false> UT_VoxelWOProbeV4

Definition at line 2429 of file UT_VoxelArray.h.

Enumeration Type Documentation

Behaviour of out of bound reads.

Enumerator
UT_VOXELBORDER_CONSTANT 
UT_VOXELBORDER_REPEAT 
UT_VOXELBORDER_STREAK 
UT_VOXELBORDER_EXTRAP 

Definition at line 67 of file UT_VoxelArray.h.

Function Documentation

fpreal UTvoxelTileDist ( const UT_Vector2 a,
const UT_Vector2 b 
)
inline

Definition at line 259 of file UT_VoxelArray.h.

fpreal UTvoxelTileDist ( const UT_Vector3 a,
const UT_Vector3 b 
)
inline

Definition at line 265 of file UT_VoxelArray.h.

fpreal UTvoxelTileDist ( const UT_Vector4 a,
const UT_Vector4 b 
)
inline

Definition at line 272 of file UT_VoxelArray.h.

void UTvoxelTileExpandMinMax ( UT_Vector2  v,
UT_Vector2 min,
UT_Vector2 max 
)
inline

Definition at line 220 of file UT_VoxelArray.h.

void UTvoxelTileExpandMinMax ( UT_Vector3  v,
UT_Vector3 min,
UT_Vector3 max 
)
inline

Definition at line 230 of file UT_VoxelArray.h.

void UTvoxelTileExpandMinMax ( UT_Vector4  v,
UT_Vector4 min,
UT_Vector4 max 
)
inline

Definition at line 243 of file UT_VoxelArray.h.

UT_API UT_ValArray<UT_VoxelTileCompress<fpreal16> *>& UTvoxelTileGetCompressionEngines ( fpreal16 dummy)
UT_API UT_ValArray<UT_VoxelTileCompress<fpreal32> *>& UTvoxelTileGetCompressionEngines ( fpreal32 dummy)
UT_API UT_ValArray<UT_VoxelTileCompress<fpreal64> *>& UTvoxelTileGetCompressionEngines ( fpreal64 dummy)
UT_API UT_ValArray<UT_VoxelTileCompress<uint8> *>& UTvoxelTileGetCompressionEngines ( uint8 dummy)
UT_API UT_ValArray<UT_VoxelTileCompress<int8> *>& UTvoxelTileGetCompressionEngines ( int8 dummy)
UT_API UT_ValArray<UT_VoxelTileCompress<int16> *>& UTvoxelTileGetCompressionEngines ( int16 dummy)
UT_API UT_ValArray<UT_VoxelTileCompress<int32> *>& UTvoxelTileGetCompressionEngines ( int32 dummy)
UT_API UT_ValArray<UT_VoxelTileCompress<int64> *>& UTvoxelTileGetCompressionEngines ( int64 dummy)
UT_API UT_ValArray<UT_VoxelTileCompress<UT_Vector2> *>& UTvoxelTileGetCompressionEngines ( UT_Vector2 dummy)
UT_API UT_ValArray<UT_VoxelTileCompress<UT_Vector3> *>& UTvoxelTileGetCompressionEngines ( UT_Vector3 dummy)
UT_API UT_ValArray<UT_VoxelTileCompress<UT_Vector4> *>& UTvoxelTileGetCompressionEngines ( UT_Vector4 dummy)