载入中...
搜索中...
未找到
OceanWaterView.h
浏览该文件的文档.
1#pragma once
2
3#include "common/Export.h"
4
6
7#include <functional>
8#include <optional>
9
10namespace eve::fluids {
11class OceanWake;
18public:
22 OceanWaterView(const OceanSpectrumFrame& spectrum, const OceanWake& wake) : spectrum_(spectrum), wake_(wake) {}
24 double time() const { return spectrum_.get().time(); }
33
34private:
35 std::reference_wrapper<const OceanSpectrumFrame> spectrum_;
36 std::optional<std::reference_wrapper<const OceanWake>> wake_;
37};
38} // namespace eve::fluids
#define EVENGINE_API_DOMAINS
Definition Export.h:110
std::array< float, 3 > position
ssq::Object wake
std::string geometry
Move-only operation result carrying either a value or Status.
Definition Result.h:176
Immutable spatial projection at one simulation timestamp, independent of its spectrum owner....
Caller-owned wave field with finite-depth gravity dispersion and absorbing boundaries....
Definition OceanWake.h:53
Synchronous borrowed composition of the spectral sea and an optional local wake. Both owners must out...
double time() const
Shared injected simulation timestamp.
OceanWaterView(const OceanSpectrumFrame &spectrum)
Borrow a spectral frame for the current synchronous operation.
EVENGINE_API_DOMAINS Result< OceanSurfaceSample > sample(glm::dvec2 worldXZ) const
Query combined water in world coordinates; errors propagate without changing either owner.
OceanWaterView(const OceanSpectrumFrame &spectrum, const OceanWake &wake)
Borrow synchronized spectral and wake fields; queries reject mismatching timestamps.
GLSL compute kernels for the GPU surface-flow solver.
Definition FluidTarget.h:12