30#include "ApiCache/MeshBoundariesAsPolygonCache.hpp"
34#include "MeshKernel/Contacts.hpp"
35#include "MeshKernel/CurvilinearGrid/CurvilinearGridFromSplines.hpp"
36#include "MeshKernel/CurvilinearGrid/CurvilinearGridLineShift.hpp"
37#include "MeshKernel/CurvilinearGrid/CurvilinearGridOrthogonalization.hpp"
38#include "MeshKernel/CurvilinearGrid/CurvilinearGridSmoothing.hpp"
39#include "MeshKernel/Mesh1D.hpp"
40#include "MeshKernel/Mesh2D.hpp"
41#include "MeshKernel/OrthogonalizationAndSmoothing.hpp"
43#include "MeshKernelApi/ApiCache/CurvilinearBoundariesAsPolygonCache.hpp"
44#include "MeshKernelApi/ApiCache/FacePolygonPropertyCache.hpp"
45#include "MeshKernelApi/ApiCache/HangingEdgeCache.hpp"
46#include "MeshKernelApi/ApiCache/NodeInPolygonCache.hpp"
47#include "MeshKernelApi/ApiCache/ObtuseTriangleCentreCache.hpp"
48#include "MeshKernelApi/ApiCache/PolygonRefinementCache.hpp"
49#include "MeshKernelApi/ApiCache/SmallFlowEdgeCentreCache.hpp"
64 m_mesh1d = std::make_shared<meshkernel::Mesh1D>(projection);
65 m_mesh2d = std::make_shared<meshkernel::Mesh2D>(projection);
66 m_network1d = std::make_shared<meshkernel::Network1D>(projection);
83 std::unordered_map<meshkernel::UInt, std::pair<meshkernel::Point, meshkernel::Point>>
m_frozenLines;
Projection
Enumerator describing the supported projections.
Definition Definitions.hpp:43
std::uint32_t UInt
Integer type used when indexing mesh graph entities.
Definition Definitions.hpp:39
Contains all structs and functions exposed at the API level.
Definition BoundingBox.hpp:33
The class holding the state of the C API library.
Definition State.hpp:56
meshkernel::UInt m_frozenLinesCounter
An increasing counter for returning the id of frozen lines to the client.
Definition State.hpp:84
std::shared_ptr< SmallFlowEdgeCentreCache > m_smallFlowEdgeCentreCache
small flow edge centres cache
Definition State.hpp:95
std::shared_ptr< CurvilinearBoundariesAsPolygonCache > m_boundariesAsPolygonCache
boundaries as polygon cache
Definition State.hpp:91
std::shared_ptr< meshkernel::Network1D > m_network1d
Shared pointer to meshkernel::Network1D instance.
Definition State.hpp:74
std::shared_ptr< NodeInPolygonCache > m_nodeInPolygonCache
node in polygon cache
Definition State.hpp:94
std::shared_ptr< meshkernel::Mesh1D > m_mesh1d
Shared pointer to meshkernel::Mesh1D instance.
Definition State.hpp:73
std::shared_ptr< meshkernel::CurvilinearGridFromSplines > m_curvilinearGridFromSplines
Shared pointer to meshkernel::CurvilinearGridFromSplines instance.
Definition State.hpp:81
MeshKernelState()=default
Default constructor.
meshkernel::Projection m_projection
Projection used by the meshes.
Definition State.hpp:87
std::shared_ptr< meshkernel::OrthogonalizationAndSmoothing > m_meshOrthogonalization
Shared pointer to meshkernel::OrthogonalizationAndSmoothing instance.
Definition State.hpp:80
std::shared_ptr< HangingEdgeCache > m_hangingEdgeCache
hanging edge id cache
Definition State.hpp:96
std::shared_ptr< ObtuseTriangleCentreCache > m_obtuseTriangleCentreCache
centre of obtuse triangles cache
Definition State.hpp:97
MeshKernelState(meshkernel::Projection projection)
Simple constructor.
Definition State.hpp:62
std::shared_ptr< meshkernel::CurvilinearGrid > m_curvilinearGrid
Shared pointer to meshkernel::CurvilinearGrid instance.
Definition State.hpp:77
std::shared_ptr< meshkernel::Mesh2D > m_mesh2d
Shared pointer to meshkernel::Mesh2D instance.
Definition State.hpp:75
std::shared_ptr< meshkernel::Contacts > m_contacts
Shared pointer to meshkernel::Contacts instance.
Definition State.hpp:76
std::shared_ptr< PolygonRefinementCache > m_polygonRefinementCache
polygon refinement cache
Definition State.hpp:93
std::shared_ptr< meshkernel::CurvilinearGridLineShift > m_curvilinearGridLineShift
Shared pointer to meshkernel::CurvilinearGridLineShift instance.
Definition State.hpp:82
std::unordered_map< meshkernel::UInt, std::pair< meshkernel::Point, meshkernel::Point > > m_frozenLines
Map for string the frozen lines.
Definition State.hpp:83
std::shared_ptr< FacePolygonPropertyCache > m_facePropertyCache
face property cache
Definition State.hpp:90
std::shared_ptr< MeshBoundariesAsPolygonCache > m_meshBoundariesAsPolygonCache
boundaries as polygon cache
Definition State.hpp:92