Immutable spatial projection at one simulation timestamp, independent of its spectrum owner. Concurrent const reads are safe; no borrowed input or GPU resource is retained. 更多...
#include <OceanSpectrum.h>
Public 成员函数 | |
| std::span< const OceanSpectrumGrid > | grids () const |
| Borrow immutable grids until this frame is destroyed or moved; do not retain across mutation. | |
| double | time () const |
| Simulation seconds used to generate every grid in this frame. | |
| EVENGINE_API_DOMAINS Result< glm::dvec3 > | position (glm::dvec2 parameterXZ) const |
| Sample displaced geometry using periodic C1-continuous Catmull-Rom interpolation. | |
| EVENGINE_API_DOMAINS Result< OceanSurfaceGeometry > | geometry (glm::dvec2 parameterXZ) const |
| Evaluate position and exact interpolation derivatives without world-space inversion. | |
| EVENGINE_API_DOMAINS Result< OceanSurfaceSample > | sample (glm::dvec2 worldXZ) const |
| Invert horizontal displacement at world XZ and return the matching water sample. | |
友元 | |
| class | OceanSeaTransitionFrameBuilder |
| class | OceanSpectrumFrameBuilder |
| class | OceanGpuReadbackBuilder |
详细描述
Immutable spatial projection at one simulation timestamp, independent of its spectrum owner. Concurrent const reads are safe; no borrowed input or GPU resource is retained.
在文件 OceanSpectrum.h 第 61 行定义.
成员函数说明
◆ geometry()
| Result< OceanSurfaceGeometry > eve::fluids::OceanSpectrumFrame::geometry | ( | glm::dvec2 | parameterXZ | ) | const |
Evaluate position and exact interpolation derivatives without world-space inversion.
- 返回
- Owning geometry or InvalidArgument; const/reentrant, no callbacks or retained input.
在文件 OceanSpectrumFrame.cpp 第 110 行定义.
引用了 geometry, eve::fluids::OceanSurfaceGeometry::position, eve::Result< T >::success() , 以及 eve::fluids::ocean_script::vector().
◆ grids()
|
inline |
Borrow immutable grids until this frame is destroyed or moved; do not retain across mutation.
在文件 OceanSpectrum.h 第 64 行定义.
◆ position()
| Result< glm::dvec3 > eve::fluids::OceanSpectrumFrame::position | ( | glm::dvec2 | parameterXZ | ) | const |
Sample displaced geometry using periodic C1-continuous Catmull-Rom interpolation.
- 返回
- Owning world position or InvalidArgument for nonfinite/out-of-range inputs. @thread Const/reentrant; synchronous, no callbacks or retained references.
在文件 OceanSpectrumFrame.cpp 第 104 行定义.
引用了 displacement, eve::Result< T >::success() , 以及 eve::fluids::ocean_script::vector().
◆ sample()
| Result< OceanSurfaceSample > eve::fluids::OceanSpectrumFrame::sample | ( | glm::dvec2 | worldXZ | ) | const |
Invert horizontal displacement at world XZ and return the matching water sample.
- 返回
- Owning sample, InvalidArgument, or Unsupported if the wave surface cannot be inverted. @thread Const/reentrant; no callbacks or retained input. Bounded iteration, no allocation.
在文件 OceanSpectrumFrame.cpp 第 120 行定义.
引用了 a, b, c, d, eve::Diagnostic::error(), eve::Result< T >::failure(), eve::fluids::OceanSurfaceSample::height, length, q, sample(), step, eve::Result< T >::success(), eve::Unsupported , 以及 eve::fluids::ocean_script::vector().
被这些函数引用 sample().
◆ time()
|
inline |
Simulation seconds used to generate every grid in this frame.
在文件 OceanSpectrum.h 第 66 行定义.
友元及相关函数文档
◆ OceanGpuReadbackBuilder
|
friend |
在文件 OceanSpectrum.h 第 87 行定义.
◆ OceanSeaTransitionFrameBuilder
在文件 OceanSpectrum.h 第 85 行定义.
◆ OceanSpectrumFrameBuilder
|
friend |
在文件 OceanSpectrum.h 第 86 行定义.
该类的文档由以下文件生成:
- src/modules/fluids/OceanSpectrum.h
- src/modules/fluids/OceanSpectrumFrame.cpp