HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
UT_VoxelVectorProbe< T, DoRead, DoWrite, TestForWrites > Class Template Reference

#include <UT_VoxelArray.h>

Public Member Functions

 UT_VoxelVectorProbe ()
 
 UT_VoxelVectorProbe (UT_VoxelArray< T > *vx, UT_VoxelArray< T > *vy, UT_VoxelArray< T > *vz)
 
 ~UT_VoxelVectorProbe ()
 
void setArray (UT_VoxelArray< T > *vx, UT_VoxelArray< T > *vy, UT_VoxelArray< T > *vz)
 
void setConstArray (const UT_VoxelArray< T > *vx, const UT_VoxelArray< T > *vy, const UT_VoxelArray< T > *vz)
 
UT_Vector3 getValue () const
 
T getValue (int axis) const
 
void setValue (const UT_Vector3 &v)
 
void setComponent (int axis, T val)
 
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)
 
void advanceX ()
 

Protected Attributes

UT_VoxelProbe< T, DoRead,
DoWrite, TestForWrites > 
myLines [3]
 

Detailed Description

template<typename T, bool DoRead, bool DoWrite, bool TestForWrites>
class UT_VoxelVectorProbe< T, DoRead, DoWrite, TestForWrites >

The vector probe is three normal probes into separate voxel arrays making it easier to read and write to aligned vector fields. If the vector field is face-centered, see the UT_VoxelProbeFace.

Definition at line 2323 of file UT_VoxelArray.h.

Constructor & Destructor Documentation

template<typename T , bool DoRead, bool DoWrite, bool TestForWrites>
UT_VoxelVectorProbe< T, DoRead, DoWrite, TestForWrites >::UT_VoxelVectorProbe ( )
inline

Definition at line 2326 of file UT_VoxelArray.h.

template<typename T , bool DoRead, bool DoWrite, bool TestForWrites>
UT_VoxelVectorProbe< T, DoRead, DoWrite, TestForWrites >::UT_VoxelVectorProbe ( UT_VoxelArray< T > *  vx,
UT_VoxelArray< T > *  vy,
UT_VoxelArray< T > *  vz 
)
inline

Definition at line 2328 of file UT_VoxelArray.h.

template<typename T , bool DoRead, bool DoWrite, bool TestForWrites>
UT_VoxelVectorProbe< T, DoRead, DoWrite, TestForWrites >::~UT_VoxelVectorProbe ( )
inline

Definition at line 2330 of file UT_VoxelArray.h.

Member Function Documentation

template<typename T , bool DoRead, bool DoWrite, bool TestForWrites>
void UT_VoxelVectorProbe< T, DoRead, DoWrite, TestForWrites >::advanceX ( )
inline

Definition at line 2390 of file UT_VoxelArray.h.

template<typename T , bool DoRead, bool DoWrite, bool TestForWrites>
UT_Vector3 UT_VoxelVectorProbe< T, DoRead, DoWrite, TestForWrites >::getValue ( ) const
inline

Definition at line 2345 of file UT_VoxelArray.h.

template<typename T , bool DoRead, bool DoWrite, bool TestForWrites>
T UT_VoxelVectorProbe< T, DoRead, DoWrite, TestForWrites >::getValue ( int  axis) const
inline

Definition at line 2349 of file UT_VoxelArray.h.

template<typename T , bool DoRead, bool DoWrite, bool TestForWrites>
void UT_VoxelVectorProbe< T, DoRead, DoWrite, TestForWrites >::setArray ( UT_VoxelArray< T > *  vx,
UT_VoxelArray< T > *  vy,
UT_VoxelArray< T > *  vz 
)
inline

Definition at line 2333 of file UT_VoxelArray.h.

template<typename T , bool DoRead, bool DoWrite, bool TestForWrites>
void UT_VoxelVectorProbe< T, DoRead, DoWrite, TestForWrites >::setComponent ( int  axis,
T  val 
)
inline

Definition at line 2361 of file UT_VoxelArray.h.

template<typename T , bool DoRead, bool DoWrite, bool TestForWrites>
void UT_VoxelVectorProbe< T, DoRead, DoWrite, TestForWrites >::setConstArray ( const UT_VoxelArray< T > *  vx,
const UT_VoxelArray< T > *  vy,
const UT_VoxelArray< T > *  vz 
)
inline

Definition at line 2339 of file UT_VoxelArray.h.

template<typename T , bool DoRead, bool DoWrite, bool TestForWrites>
template<typename S >
bool UT_VoxelVectorProbe< T, DoRead, DoWrite, TestForWrites >::setIndex ( UT_VoxelArrayIterator< S > &  vit)
inline

Resets where we currently point to. Returns true if we had to reset our cache line. If we didn't, and you have multiple probes acting in-step, you can just advanceX() the other probes

Definition at line 2371 of file UT_VoxelArray.h.

template<typename T , bool DoRead, bool DoWrite, bool TestForWrites>
template<typename S >
bool UT_VoxelVectorProbe< T, DoRead, DoWrite, TestForWrites >::setIndex ( UT_VoxelTileIterator< S > &  vit)
inline

Definition at line 2374 of file UT_VoxelArray.h.

template<typename T , bool DoRead, bool DoWrite, bool TestForWrites>
bool UT_VoxelVectorProbe< T, DoRead, DoWrite, TestForWrites >::setIndex ( int  x,
int  y,
int  z 
)
inline

Definition at line 2377 of file UT_VoxelArray.h.

template<typename T , bool DoRead, bool DoWrite, bool TestForWrites>
void UT_VoxelVectorProbe< T, DoRead, DoWrite, TestForWrites >::setValue ( const UT_Vector3 v)
inline

Definition at line 2354 of file UT_VoxelArray.h.

Member Data Documentation

template<typename T , bool DoRead, bool DoWrite, bool TestForWrites>
UT_VoxelProbe<T, DoRead, DoWrite, TestForWrites> UT_VoxelVectorProbe< T, DoRead, DoWrite, TestForWrites >::myLines[3]
protected

Definition at line 2394 of file UT_VoxelArray.h.


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