Synchronous borrowed composition of the spectral sea and an optional local wake. Both owners must outlive this view and remain unmodified throughout its use. Do not store across simulation steps, owner moves or asynchronous work. The view owns no mutable state. 更多...
#include <OceanWaterView.h>
Public 成员函数 | |
| OceanWaterView (const OceanSpectrumFrame &spectrum) | |
| Borrow a spectral frame for the current synchronous operation. | |
| OceanWaterView (const OceanSpectrumFrame &spectrum, const OceanWake &wake) | |
| Borrow synchronized spectral and wake fields; queries reject mismatching timestamps. | |
| double | time () const |
| Shared injected simulation timestamp. | |
| EVENGINE_API_DOMAINS Result< OceanSurfaceSample > | sample (glm::dvec2 worldXZ) const |
| Query combined water in world coordinates; errors propagate without changing either owner. | |
| EVENGINE_API_DOMAINS Result< glm::dvec3 > | position (glm::dvec2 parameterXZ) const |
| Displace a mesh parameter point and add wake height at the resulting world XZ. | |
| EVENGINE_API_DOMAINS Result< OceanSurfaceGeometry > | geometry (glm::dvec2 parameterXZ) const |
| Evaluate combined position and tangents directly; wake gradients follow displaced world XZ. | |
详细描述
Synchronous borrowed composition of the spectral sea and an optional local wake. Both owners must outlive this view and remain unmodified throughout its use. Do not store across simulation steps, owner moves or asynchronous work. The view owns no mutable state.
在文件 OceanWaterView.h 第 17 行定义.
构造及析构函数说明
◆ OceanWaterView() [1/2]
|
inline |
Borrow a spectral frame for the current synchronous operation.
在文件 OceanWaterView.h 第 20 行定义.
◆ OceanWaterView() [2/2]
|
inline |
Borrow synchronized spectral and wake fields; queries reject mismatching timestamps.
在文件 OceanWaterView.h 第 22 行定义.
成员函数说明
◆ geometry()
| Result< OceanSurfaceGeometry > eve::fluids::OceanWaterView::geometry | ( | glm::dvec2 | parameterXZ | ) | const |
Evaluate combined position and tangents directly; wake gradients follow displaced world XZ.
- 返回
- Owning geometry or query/time diagnostic; synchronous const operation without retained input.
在文件 OceanWaterView.cpp 第 40 行定义.
引用了 eve::Result< T >::failure(), local, eve::Result< T >::success(), time(), value , 以及 eve::fluids::ocean_script::vector().
◆ position()
| Result< glm::dvec3 > eve::fluids::OceanWaterView::position | ( | glm::dvec2 | parameterXZ | ) | const |
Displace a mesh parameter point and add wake height at the resulting world XZ.
在文件 OceanWaterView.cpp 第 29 行定义.
引用了 eve::Result< T >::failure(), local, eve::Result< T >::success(), time(), value , 以及 eve::fluids::ocean_script::vector().
◆ sample()
| Result< OceanSurfaceSample > eve::fluids::OceanWaterView::sample | ( | glm::dvec2 | worldXZ | ) | const |
Query combined water in world coordinates; errors propagate without changing either owner.
在文件 OceanWaterView.cpp 第 14 行定义.
引用了 eve::Result< T >::failure(), local, eve::Result< T >::success(), time(), value , 以及 eve::fluids::ocean_script::vector().
◆ time()
|
inline |
Shared injected simulation timestamp.
在文件 OceanWaterView.h 第 24 行定义.
被这些函数引用 eve::fluids::OceanMeshFrameBuilder::build(), eve::fluids::OceanSprayStepBuilder::build(), geometry(), position() , 以及 sample().
该类的文档由以下文件生成:
- src/modules/fluids/OceanWaterView.h
- src/modules/fluids/OceanWaterView.cpp