Bounded renderer-neutral viewport projection for one vegetation influence field. 更多...
#include <VegetationFieldGizmo.h>
Public 成员函数 | |
| Result< editing::GizmoSnapshot > | build (std::string target, std::uint64_t expectedRevision, const graphics::VegetationField &field, std::size_t maximumElements=10000) const |
| Build one immutable gizmo from the field's owning element snapshot. | |
详细描述
Bounded renderer-neutral viewport projection for one vegetation influence field.
在文件 VegetationFieldGizmo.h 第 17 行定义.
成员函数说明
◆ build()
| Result< editing::GizmoSnapshot > eve::graphics_editing::VegetationFieldGizmoBuilder::build | ( | std::string | target, |
| std::uint64_t | expectedRevision, | ||
| const graphics::VegetationField & | field, | ||
| std::size_t | maximumElements = 10000 |
||
| ) | const |
Build one immutable gizmo from the field's owning element snapshot.
- 参数
-
target Stable editor target identity copied into the result. expectedRevision Revision selected by the editor; stale revisions are rejected. field Borrowed only during this call; no field or element pointer is retained. maximumElements Hard allocation and viewport-work budget in [1,100000].
- 返回
- Applied snapshot, Conflict for stale input, or Rejected/Failed diagnostics. @thread Worker-safe while no writer mutates field; invokes no callbacks or GPU work.
在文件 VegetationFieldGizmo.cpp 第 31 行定义.
引用了 eve::Applied, eve::graphics::Box, eve::editing::GizmoPrimitive::color, eve::Conflict, eve::editing::GizmoPrimitive::dashed, element, elements, eve::Failed, eve::Result< T >::failure(), eve::editing::GizmoPrimitive::id, eve::InvalidArgument, eve::editing::GizmoPrimitive::kind, eve::editing::GizmoPrimitive::position, eve::PreconditionViolation, eve::editing::GizmoSnapshot::primitives, eve::Rejected, eve::editing::GizmoPrimitive::size, size, eve::StaleHandle, eve::editing::GizmoSnapshot::status, eve::Result< T >::success(), target, eve::editing::GizmoSnapshot::target, eve::editing::GizmoSnapshot::targetRevision , 以及 eve::editing::GizmoPrimitive::yaw.
该类的文档由以下文件生成:
- src/modules/graphics/editing/VegetationFieldGizmo.h
- src/modules/graphics/editing/VegetationFieldGizmo.cpp