35#include "MeshKernel/AveragingInterpolation.hpp"
36#include "MeshKernel/AveragingStrategies/AveragingStrategy.hpp"
37#include "MeshKernel/AveragingStrategies/AveragingStrategyFactory.hpp"
38#include "MeshKernel/Constants.hpp"
39#include "MeshKernel/Definitions.hpp"
40#include "MeshKernel/Entities.hpp"
41#include "MeshKernel/Exceptions.hpp"
42#include "MeshKernel/Mesh2D.hpp"
43#include "MeshKernel/MeshTriangulation.hpp"
44#include "MeshKernel/Operations.hpp"
45#include "MeshKernel/Point.hpp"
46#include "MeshKernel/Utilities/RTreeFactory.hpp"
59 void SetData(
const int propertyId,
const std::span<const double> sampleData);
65 bool Contains(
const int propertyId)
const;
68 virtual void Interpolate(
const int propertyId,
const std::span<const Point> iterpolationNodes, std::span<double> result)
const = 0;
85 std::map<int, std::vector<double>> m_sampleData;
92 return m_sampleData.contains(propertyId);
A class derived from Mesh, which describes unstructures 2d meshes.
Definition Mesh2D.hpp:58
A struct describing a point in a two-dimensional space.
Definition Point.hpp:41
Interface for sample interpolation.
Definition SampleInterpolator.hpp:53
virtual double InterpolateValue(const int propertyId, const Point &evaluationPoint) const =0
Interpolate the sample data set at a single interpolation point.
virtual void Interpolate(const int propertyId, const Mesh2D &mesh, const Location location, std::span< double > result) const =0
Interpolate the sample data.
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.
void SetData(const int propertyId, const std::span< const double > sampleData)
Set sample data.
const std::vector< double > & GetSampleData(const int propertyId) const
Get the sample property data for the id.
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.
Definition SampleInterpolator.hpp:90
virtual ~SampleInterpolator()=default
Destructor.
Contains the logic of the C++ static library.
Definition AveragingInterpolation.hpp:37
Location
Mesh locations enumeration.
Definition Definitions.hpp:76
std::uint32_t UInt
Integer type used when indexing mesh graph entities.
Definition Definitions.hpp:39