MeshKernel
|
Interpolator for sample data using an averaging scheme. More...
#include <SampleAveragingInterpolator.hpp>
Public Member Functions | |
SampleAveragingInterpolator (const std::span< const double > xNodes, const std::span< const double > yNodes, const Projection projection, const InterpolationParameters &interpolationParameters) | |
Constructor. | |
SampleAveragingInterpolator (const std::span< const Point > nodes, const Projection projection, const InterpolationParameters &interpolationParameters) | |
Constructor. | |
UInt | Size () const override |
Get the number of nodes of size of the sample data. | |
void | Interpolate (const int propertyId, const std::span< const Point > iterpolationNodes, std::span< double > result) const override |
Interpolate the sample data set at the interpolation nodes. | |
void | Interpolate (const int propertyId, const Mesh2D &mesh, const Location location, std::span< double > result) const override |
Interpolate the sample data set at the locationd defined. | |
double | InterpolateValue (const int propertyId, const Point &evaluationPoint) const override |
Interpolate the sample data set at a single interpolation point. | |
![]() | |
virtual | ~SampleInterpolator ()=default |
Destructor. | |
void | SetData (const int propertyId, const std::span< const double > sampleData) |
Set sample data. | |
bool | Contains (const int propertyId) const |
Determine if the SampleInterpolator already has this sample set. | |
Additional Inherited Members | |
![]() | |
const std::vector< double > & | GetSampleData (const int propertyId) const |
Get the sample property data for the id. | |
Interpolator for sample data using an averaging scheme.
|
overridevirtual |
Interpolate the sample data set at the locationd defined.
Implements meshkernel::SampleInterpolator.
|
overridevirtual |
Interpolate the sample data set at the interpolation nodes.
Implements meshkernel::SampleInterpolator.
|
overridevirtual |
Interpolate the sample data set at a single interpolation point.
If interpolation at multiple points is required then better performance can be obtained using the Interpolate function above.
Implements meshkernel::SampleInterpolator.
|
inlineoverridevirtual |
Get the number of nodes of size of the sample data.
Implements meshkernel::SampleInterpolator.