HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
SIM_SFSImplementation Class Referenceabstract

#include <SIM_FieldSampler.h>

Public Member Functions

virtual ~SIM_SFSImplementation ()
 
virtual float getValue (int x, int y, int z)=0
 
virtual float getValue (float x, float y, float z)=0
 
virtual bool isTileConstant (int tx, int ty, int tz, const UT_VoxelTile< float > *tile, float &val)=0
 

Static Public Member Functions

template<typename FIELD_TYPE >
static SIM_API UT_UniquePtr
< SIM_SFSImplementation
createSampler (const FIELD_TYPE *target, const SIM_RawField *source)
 This static method creates an appropriate sampler for the given fields. More...
 
static SIM_API UT_UniquePtr
< SIM_SFSImplementation
createSampler (const SIM_VectorField *target, const SIM_RawField *source, SIM_FieldSample target_sample)
 

Protected Member Functions

 SIM_SFSImplementation ()
 

Protected Attributes

const UT_VoxelArrayFmySourceArray
 

Detailed Description

This internal abstract class implements sampling for scalar fields. Hidden concrete subclasses take care of actual probing. The createSampler static method should be used to instantiate a sampler.

Definition at line 37 of file SIM_FieldSampler.h.

Constructor & Destructor Documentation

SIM_SFSImplementation::SIM_SFSImplementation ( )
inlineprotected

Definition at line 40 of file SIM_FieldSampler.h.

virtual SIM_SFSImplementation::~SIM_SFSImplementation ( )
inlinevirtual

Definition at line 43 of file SIM_FieldSampler.h.

Member Function Documentation

template<typename FIELD_TYPE >
static SIM_API UT_UniquePtr<SIM_SFSImplementation> SIM_SFSImplementation::createSampler ( const FIELD_TYPE *  target,
const SIM_RawField source 
)
static

This static method creates an appropriate sampler for the given fields.

static SIM_API UT_UniquePtr<SIM_SFSImplementation> SIM_SFSImplementation::createSampler ( const SIM_VectorField target,
const SIM_RawField source,
SIM_FieldSample  target_sample 
)
static

This static method creates an appropriate sampler for reading the source field as cells of target are iterated at target_sample locations.

virtual float SIM_SFSImplementation::getValue ( int  x,
int  y,
int  z 
)
pure virtual
virtual float SIM_SFSImplementation::getValue ( float  x,
float  y,
float  z 
)
pure virtual
virtual bool SIM_SFSImplementation::isTileConstant ( int  tx,
int  ty,
int  tz,
const UT_VoxelTile< float > *  tile,
float val 
)
pure virtual

Member Data Documentation

const UT_VoxelArrayF* SIM_SFSImplementation::mySourceArray
protected

Definition at line 64 of file SIM_FieldSampler.h.


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