Specialized version of TimeVaryingVolumetricGridLookupField
for in-memory lookup. It loads the whole dataset into memory.
More...
#include <TimeVaryingVolumetricGridLookupField.hh>
Detailed Description
class gz::math::TimeVaryingVolumetricGridLookupField< T, V, InMemorySession< T, V > >
Specialized version of TimeVaryingVolumetricGridLookupField
for in-memory lookup. It loads the whole dataset into memory.
Constructor & Destructor Documentation
◆ TimeVaryingVolumetricGridLookupField()
|
inline |
Default constructor.
Member Function Documentation
◆ AddVolumetricGridField()
|
inline |
Documentation inherited.
◆ Bounds()
|
inline |
Get the bounds of this grid field.
- Returns
- A pair of vectors. All zeros if session is invalid.
◆ CreateSession() [1/2]
|
inline |
Documentation inherited.
◆ CreateSession() [2/2]
|
inline |
Documentation inherited.
◆ EstimateQuadrilinear()
|
inline |
Uses quadrilinear interpolation to estimate value of current point. Returns nullopt if query is out of range.
- Parameters
-
[in] _session - The session [in] _interpolators - The interpolation points retrieved from LookUp()
[in] _values1 - Value array at timestep 1. [in] _values2 - Value array at timestep 2. [in] _position - The position to be queried. [in] _default - Value used if there is a hole in the data.
- Returns
- The estimated value for the point. Nullopt if we are outside the field. Default value if in the field but no value is in the index.
Got nothing to interpolate. Out of bounds.
Only one of the two time-slices has data. Use that slice to guess.
Default case where both time-slices has interpolation
References std::next().
◆ IsValid()
|
inline |
In memory session.
◆ LookUp()
|
inline |
Documentation inherited.
◆ StepTo()
|
inline |
Documentation inherited.
References std::next().
The documentation for this class was generated from the following file: