Field3D
FieldInterp< Data_T > Class Template Referenceabstract

Base class for interpolators. More...

#include <FieldInterp.h>

Inheritance diagram for FieldInterp< Data_T >:
RefBase CubicFieldInterp< Data_T > LinearFieldInterp< Data_T >

Public Types

typedef FieldInterp class_type
 
typedef boost::intrusive_ptr< FieldInterpPtr
 
typedef Data_T value_type
 
- Public Types inherited from RefBase
typedef boost::intrusive_ptr< RefBasePtr
 
typedef boost::weak_ptr< RefBaseWeakPtr
 

Public Member Functions

virtual Data_T sample (const Field< Data_T > &data, const V3d &vsP) const =0
 
virtual ~FieldInterp ()
 
- Public Member Functions inherited from RefBase
void ref () const
 Used by boost::intrusive_pointer. More...
 
size_t refcnt ()
 Used by boost::intrusive_pointer. More...
 
void unref () const
 Used by boost::intrusive_pointer. More...
 
WeakPtr weakPtr () const
 
 RefBase ()
 
 RefBase (const RefBase &)
 Copy constructor. More...
 
RefBaseoperator= (const RefBase &)
 Assignment operator. More...
 
virtual ~RefBase ()
 Destructor. More...
 
virtual bool checkRTTI (const char *typenameStr)=0
 This function is only implemented by concrete classes and triggers the actual RTTI check through matchRTTI();. More...
 
bool matchRTTI (const char *typenameStr)
 Performs a check to see if the given typename string matches this class' This needs to be implemented in -all- subclasses, even abstract ones. More...
 

Static Public Member Functions

static const char * staticClassName ()
 
static const char * staticClassType ()
 
- Static Public Member Functions inherited from RefBase
static const char * staticClassType ()
 

Public Attributes

 DEFINE_FIELD_RTTI_ABSTRACT_CLASS
 

Private Types

typedef RefBase base
 Convenience typedef for referring to base class. More...
 

Static Private Attributes

static TemplatedFieldType< FieldInterp< Data_T > > ms_classType
 

Detailed Description

template<class Data_T>
class FieldInterp< Data_T >

Base class for interpolators.

Note
An interpolator always interpolates in voxel space.

Definition at line 72 of file FieldInterp.h.

Member Typedef Documentation

◆ value_type

template<class Data_T >
typedef Data_T FieldInterp< Data_T >::value_type

Definition at line 78 of file FieldInterp.h.

◆ Ptr

template<class Data_T >
typedef boost::intrusive_ptr<FieldInterp> FieldInterp< Data_T >::Ptr

Definition at line 79 of file FieldInterp.h.

◆ class_type

template<class Data_T >
typedef FieldInterp FieldInterp< Data_T >::class_type

Definition at line 83 of file FieldInterp.h.

◆ base

template<class Data_T >
typedef RefBase FieldInterp< Data_T >::base
private

Convenience typedef for referring to base class.

Definition at line 114 of file FieldInterp.h.

Constructor & Destructor Documentation

◆ ~FieldInterp()

template<class Data_T >
virtual FieldInterp< Data_T >::~FieldInterp ( )
inlinevirtual

Definition at line 98 of file FieldInterp.h.

99  { }

Member Function Documentation

◆ staticClassName()

template<class Data_T >
static const char* FieldInterp< Data_T >::staticClassName ( )
inlinestatic

Definition at line 86 of file FieldInterp.h.

87  {
88  return "FieldInterp";
89  }

◆ staticClassType()

template<class Data_T >
static const char* FieldInterp< Data_T >::staticClassType ( )
inlinestatic

Definition at line 91 of file FieldInterp.h.

92  {
93  return ms_classType.name();
94  }

References FieldInterp< Data_T >::ms_classType, and TemplatedFieldType< Field_T >::name().

◆ sample()

template<class Data_T >
virtual Data_T FieldInterp< Data_T >::sample ( const Field< Data_T > &  data,
const V3d vsP 
) const
pure virtual

Member Data Documentation

◆ DEFINE_FIELD_RTTI_ABSTRACT_CLASS

template<class Data_T >
FieldInterp< Data_T >::DEFINE_FIELD_RTTI_ABSTRACT_CLASS

Definition at line 84 of file FieldInterp.h.

◆ ms_classType

template<class Data_T >
TemplatedFieldType<FieldInterp<Data_T> > FieldInterp< Data_T >::ms_classType
staticprivate

Definition at line 109 of file FieldInterp.h.

Referenced by FieldInterp< Data_T >::staticClassType().


The documentation for this class was generated from the following file:
TemplatedFieldType::name
const char * name()
Definition: Traits.h:284
FieldInterp::ms_classType
static TemplatedFieldType< FieldInterp< Data_T > > ms_classType
Definition: FieldInterp.h:109