Integrates dynamic-mesh hit mapping with the canonical image UV-paint session. 更多...
#include <DynamicMeshUvPaintSession.h>
Public 成员函数 | |
| Result< void > | initializeResult (const MeshBuild &mesh, const image::ImageData &image) |
| Initialize owning mesh and RGBA8 image snapshots atomically. | |
| Result< void > | updateMeshResult (const MeshBuild &mesh) |
| Replace only the dynamic mesh snapshot after deformation. | |
| Result< void > | paintSurfacePointResult (int triangleIndex, float x, float y, float z, float radiusPixels, float r, float g, float b, float a, bool wrapU=false, bool wrapV=false) |
| Map a triangle hit to UV and commit one canonical circular paint transaction. | |
| Result< std::unique_ptr< image::ImageData > > | currentImageResult () const |
| Return an owning current pixel snapshot. | |
| Result< void > | undoResult () |
| Undo the last paint transaction without changing mesh topology. | |
| std::uint64_t | meshRevision () const noexcept |
| std::uint64_t | paintRevision () const noexcept |
| Paint revision. | |
详细描述
Integrates dynamic-mesh hit mapping with the canonical image UV-paint session.
Owns a current mesh snapshot and delegates all pixel history to image::UvPaintSession; it does not implement a second raster painter. Updating a deformed mesh preserves paint.
在文件 DynamicMeshUvPaintSession.h 第 19 行定义.
成员函数说明
◆ currentImageResult()
| Result< std::unique_ptr< image::ImageData > > eve::procgen::DynamicMeshUvPaintSession::currentImageResult | ( | ) | const |
Return an owning current pixel snapshot.
在文件 DynamicMeshUvPaintSession.cpp 第 37 行定义.
◆ initializeResult()
| Result< void > eve::procgen::DynamicMeshUvPaintSession::initializeResult | ( | const MeshBuild & | mesh, |
| const image::ImageData & | image | ||
| ) |
Initialize owning mesh and RGBA8 image snapshots atomically.
在文件 DynamicMeshUvPaintSession.cpp 第 13 行定义.
引用了 eve::Diagnostic::error(), eve::Result< T >::failure(), image, eve::image::UvPaintSession::initializeResult(), eve::InvalidArgument, mesh , 以及 eve::Result< T >::success().
◆ meshRevision()
|
inlinenoexcept |
在文件 DynamicMeshUvPaintSession.h 第 33 行定义.
◆ paintRevision()
|
inlinenoexcept |
Paint revision.
在文件 DynamicMeshUvPaintSession.h 第 35 行定义.
◆ paintSurfacePointResult()
| Result< void > eve::procgen::DynamicMeshUvPaintSession::paintSurfacePointResult | ( | int | triangleIndex, |
| float | x, | ||
| float | y, | ||
| float | z, | ||
| float | radiusPixels, | ||
| float | r, | ||
| float | g, | ||
| float | b, | ||
| float | a, | ||
| bool | wrapU = false, |
||
| bool | wrapV = false |
||
| ) |
Map a triangle hit to UV and commit one canonical circular paint transaction.
在文件 DynamicMeshUvPaintSession.cpp 第 27 行定义.
引用了 a, b, eve::Diagnostic::error(), eve::Result< T >::failure(), g, eve::procgen::mapMeshSurfacePointToUvResult(), eve::image::UvPaintSession::paintCircleResult(), eve::PreconditionViolation, r, eve::Result< T >::success(), uv, x, y , 以及 z.
◆ undoResult()
| Result< void > eve::procgen::DynamicMeshUvPaintSession::undoResult | ( | ) |
Undo the last paint transaction without changing mesh topology.
在文件 DynamicMeshUvPaintSession.cpp 第 40 行定义.
◆ updateMeshResult()
Replace only the dynamic mesh snapshot after deformation.
在文件 DynamicMeshUvPaintSession.cpp 第 22 行定义.
引用了 eve::Diagnostic::error(), eve::Result< T >::failure(), eve::InvalidArgument, mesh, eve::PreconditionViolation , 以及 eve::Result< T >::success().
该类的文档由以下文件生成:
- src/modules/procgen/mesh/DynamicMeshUvPaintSession.h
- src/modules/procgen/mesh/DynamicMeshUvPaintSession.cpp