highres-cortex 6.0.4
yl::LinearlyInterpolatedScalarField Class Reference

Access a scalar field stored in a volume. More...

#include <highres-cortex/field.hh>

Inheritance diagram for yl::LinearlyInterpolatedScalarField:
Collaboration diagram for yl::LinearlyInterpolatedScalarField:

Public Member Functions

 LinearlyInterpolatedScalarField (const carto::VolumeRef< float > &field_volume)
 
virtual float evaluate (const Point3df &pos) const
 Evaluate the field's value at possibly non-integer coordinates.
 
- Public Member Functions inherited from yl::ScalarField
 ~ScalarField ()
 

Detailed Description

Access a scalar field stored in a volume.

The field's value is linearly interpolated between integer coordinates.

Definition at line 136 of file field.hh.

Constructor & Destructor Documentation

◆ LinearlyInterpolatedScalarField()

yl::LinearlyInterpolatedScalarField::LinearlyInterpolatedScalarField ( const carto::VolumeRef< float > & field_volume)
explicit

Member Function Documentation

◆ evaluate()

virtual float yl::LinearlyInterpolatedScalarField::evaluate ( const Point3df & pos) const
virtual

Evaluate the field's value at possibly non-integer coordinates.

Exceptions
UndefinedFieldif the field cannot be evaluated at the given position.

Implements yl::ScalarField.


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