MeshKernel
|
Interpolator for sample data on a triangulated grid. More...
#include <SampleTriangulationInterpolator.hpp>
Public Member Functions | |
SampleTriangulationInterpolator (const std::span< const double > xNodes, const std::span< const double > yNodes, const Projection projection) | |
Constructor. | |
SampleTriangulationInterpolator (const std::span< const Point > nodes, const Projection projection) | |
Constructor. | |
UInt | Size () const override |
Get the number of nodes of size of the sample data. | |
void | Interpolate (const int propertyId, const Mesh2D &mesh, const Location location, std::span< double > result) const override |
Interpolate the sample data at the points for the location (nodes, edges, faces) | |
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. | |
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 on a triangulated grid.
The triangulation does not have to match any mesh.
|
overridevirtual |
Interpolate the sample data at the points for the location (nodes, edges, faces)
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.