highres-cortex 6.0.4
yl::BooleanScalarField Class Reference

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

#include <highres-cortex/field.hh>

Inheritance diagram for yl::BooleanScalarField:
Collaboration diagram for yl::BooleanScalarField:

Public Member Functions

 BooleanScalarField (const carto::VolumeRef< int16_t > &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 boolean field stored in a volume.

The boolean field is using nearest neighbour interpolation, any non-zero value (including NaN) is returned as true (1.0f).

Definition at line 151 of file field.hh.

Constructor & Destructor Documentation

◆ BooleanScalarField()

yl::BooleanScalarField::BooleanScalarField ( const carto::VolumeRef< int16_t > & field_volume)
explicit

Member Function Documentation

◆ evaluate()

virtual float yl::BooleanScalarField::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: