30#include "MeshKernel/Definitions.hpp"
31#include "MeshKernel/SampleInterpolator.hpp"
33#include "MeshKernelApi/GeometryList.hpp"
34#include "MeshKernelApi/State.hpp"
97 const int interpolationType,
98 const int propertyId);
113 std::unique_ptr<meshkernel::SampleInterpolator> m_sampleInterpolator;
119 int m_propertyId = -1;
Calculator for the edge lengths for a mesh.
Definition PropertyCalculator.hpp:74
virtual bool IsValid(const MeshKernelState &state, const meshkernel::Location location) const override
Determine is the calculator can compute the desired results correctly.
int Size(const MeshKernelState &state, const meshkernel::Location location) const override
Determine the size of the edge-length vector required.
void Calculate(const MeshKernelState &state, const meshkernel::Location location, const GeometryList &geometryList) const override
Calculate the edge-length for a mesh.
Interpolate the depths at the mesh node points.
Definition PropertyCalculator.hpp:92
InterpolatedSamplePropertyCalculator(const GeometryList &sampleData, const meshkernel::Projection projection, const int interpolationType, const int propertyId)
Constructor.
void Calculate(const MeshKernelState &state, const meshkernel::Location location, const GeometryList &geometryList) const override
Calculate the edge-length for a mesh.
bool IsValid(const MeshKernelState &state, const meshkernel::Location location) const override
Determine is the calculator can interpolate depth values correctly.
int Size(const MeshKernelState &state, const meshkernel::Location location) const override
Determine the size of the edge-length vector required.
Calculator for orthogonality of a mesh.
Definition PropertyCalculator.hpp:58
void Calculate(const MeshKernelState &state, const meshkernel::Location location, const GeometryList &geometryList) const override
Calculate the orthogonality for a mesh.
virtual bool IsValid(const MeshKernelState &state, const meshkernel::Location location) const override
Determine is the calculator can compute the desired results correctly.
int Size(const MeshKernelState &state, const meshkernel::Location location) const override
Determine the size of the orthogonality vector required.
Base class for calculating properties for a mesh.
Definition PropertyCalculator.hpp:41
virtual bool IsValid(const MeshKernelState &state, const meshkernel::Location location) const =0
Determine is the calculator can compute the desired results correctly.
virtual int Size(const MeshKernelState &state, const meshkernel::Location location) const =0
Determine the size of the vector required to store the calculated properties.
virtual ~PropertyCalculator()=default
Destructor.
virtual void Calculate(const MeshKernelState &state, const meshkernel::Location location, const GeometryList &geometryList) const =0
Calculate the property.
Projection
Enumerator describing the supported projections.
Definition Definitions.hpp:43
Location
Mesh locations enumeration.
Definition Definitions.hpp:76
Contains all structs and functions exposed at the API level.
Definition BoundingBox.hpp:33
A struct used to describe a list of geometries in a C-compatible manner.
Definition GeometryList.hpp:34
The class holding the state of the C API library.
Definition State.hpp:56