|
MeshKernel
|
Interface for sample interpolation. More...
#include <SampleInterpolator.hpp>
Public Member Functions | |
| virtual | ~SampleInterpolator ()=default |
| Destructor. | |
| void | SetData (const int propertyId, const std::span< const double > sampleData) |
| Set sample data. | |
| virtual UInt | Size () const =0 |
| Get the number of sample points. | |
| bool | Contains (const int propertyId) const |
| Determine if the SampleInterpolator already has this sample set. | |
| virtual void | Interpolate (const int propertyId, const std::span< const Point > iterpolationNodes, std::span< double > result) const =0 |
| Interpolate the sample data set at the interpolation nodes. | |
| virtual void | Interpolate (const int propertyId, const Mesh2D &mesh, const Location location, std::span< double > result) const =0 |
| Interpolate the sample data. | |
| virtual double | InterpolateValue (const int propertyId, const Point &evaluationPoint) const =0 |
| Interpolate the sample data set at a single interpolation point. | |
Protected Member Functions | |
| const std::vector< double > & | GetSampleData (const int propertyId) const |
| Get the sample property data for the id. | |
Interface for sample interpolation.
|
pure virtual |
Interpolate the sample data.
Implemented in meshkernel::SampleAveragingInterpolator, and meshkernel::SampleTriangulationInterpolator.
|
pure virtual |
Interpolate the sample data set at the interpolation nodes.
Implemented in meshkernel::SampleAveragingInterpolator, and meshkernel::SampleTriangulationInterpolator.
|
pure virtual |
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.
Implemented in meshkernel::SampleAveragingInterpolator, and meshkernel::SampleTriangulationInterpolator.
|
pure virtual |
Get the number of sample points.
Implemented in meshkernel::SampleAveragingInterpolator, and meshkernel::SampleTriangulationInterpolator.