HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
UT_VoxelProbeAverage< T, XStep, YStep, ZStep > Class Template Reference

#include <UT_VoxelArray.h>

Public Member Functions

 UT_VoxelProbeAverage ()
 
 ~UT_VoxelProbeAverage ()
 
void setArray (const UT_VoxelArray< T > *vox)
 
template<typename S >
bool setIndex (UT_VoxelArrayIterator< S > &vit)
 
template<typename S >
bool setIndex (UT_VoxelTileIterator< S > &vit)
 
bool setIndex (int x, int y, int z)
 
T getValue () const
 

Protected Member Functions

T valueZ (int z) const
 
T valueYZ (int y, int z) const
 

Protected Attributes

UT_VoxelProbe< T, true, false,
false > 
myLines [2][2]
 

Detailed Description

template<typename T, int XStep, int YStep, int ZStep>
class UT_VoxelProbeAverage< T, XStep, YStep, ZStep >

UT_VoxelProbeAverage

When working with MAC grids one often has slightly misalgined fields. Ie, one field is at the half-grid spacing of another field. The step values are 0 if the dimension is algined, -1 for half a step back (ie, (val(-1)+val(0))/2) and 1 for half a step forward (ie, (val(0)+val(1))/2)

Definition at line 2516 of file UT_VoxelArray.h.

Constructor & Destructor Documentation

template<typename T , int XStep, int YStep, int ZStep>
UT_VoxelProbeAverage< T, XStep, YStep, ZStep >::UT_VoxelProbeAverage ( )
inline

Definition at line 2520 of file UT_VoxelArray.h.

template<typename T , int XStep, int YStep, int ZStep>
UT_VoxelProbeAverage< T, XStep, YStep, ZStep >::~UT_VoxelProbeAverage ( )
inline

Definition at line 2521 of file UT_VoxelArray.h.

Member Function Documentation

template<typename T , int XStep, int YStep, int ZStep>
T UT_VoxelProbeAverage< T, XStep, YStep, ZStep >::getValue ( ) const
inline

Returns the velocity centered at this index, thus an average of the values in each of our internal probes.

Definition at line 2535 of file UT_VoxelArray.h.

template<typename T , int XStep, int YStep, int ZStep>
void UT_VoxelProbeAverage< T, XStep, YStep, ZStep >::setArray ( const UT_VoxelArray< T > *  vox)

VoxelProbeAverage methods

Definition at line 9077 of file UT_VoxelArray.C.

template<typename T , int XStep, int YStep, int ZStep>
template<typename S >
bool UT_VoxelProbeAverage< T, XStep, YStep, ZStep >::setIndex ( UT_VoxelArrayIterator< S > &  vit)
inline

Definition at line 2526 of file UT_VoxelArray.h.

template<typename T , int XStep, int YStep, int ZStep>
template<typename S >
bool UT_VoxelProbeAverage< T, XStep, YStep, ZStep >::setIndex ( UT_VoxelTileIterator< S > &  vit)
inline

Definition at line 2529 of file UT_VoxelArray.h.

template<typename T , int XStep, int YStep, int ZStep>
bool UT_VoxelProbeAverage< T, XStep, YStep, ZStep >::setIndex ( int  x,
int  y,
int  z 
)

Definition at line 9097 of file UT_VoxelArray.C.

template<typename T , int XStep, int YStep, int ZStep>
T UT_VoxelProbeAverage< T, XStep, YStep, ZStep >::valueYZ ( int  y,
int  z 
) const
inlineprotected

Definition at line 2550 of file UT_VoxelArray.h.

template<typename T , int XStep, int YStep, int ZStep>
T UT_VoxelProbeAverage< T, XStep, YStep, ZStep >::valueZ ( int  z) const
inlineprotected

Definition at line 2543 of file UT_VoxelArray.h.

Member Data Documentation

template<typename T , int XStep, int YStep, int ZStep>
UT_VoxelProbe<T, true, false, false> UT_VoxelProbeAverage< T, XStep, YStep, ZStep >::myLines[2][2]
protected

Definition at line 2560 of file UT_VoxelArray.h.


The documentation for this class was generated from the following files: