载入中...
搜索中...
未找到
eve::procgen::DynamicMeshUvPaintSession类 参考

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 行定义.

引用了 eve::image::UvPaintSession::currentImageResult().

◆ initializeResult()

Result< void > eve::procgen::DynamicMeshUvPaintSession::initializeResult ( const MeshBuild &  mesh,
const image::ImageData &  image 
)

◆ meshRevision()

std::uint64_t eve::procgen::DynamicMeshUvPaintSession::meshRevision ( ) const
inlinenoexcept

在文件 DynamicMeshUvPaintSession.h 第 33 行定义.

◆ paintRevision()

std::uint64_t eve::procgen::DynamicMeshUvPaintSession::paintRevision ( ) const
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 
)

◆ undoResult()

Result< void > eve::procgen::DynamicMeshUvPaintSession::undoResult ( )

Undo the last paint transaction without changing mesh topology.

在文件 DynamicMeshUvPaintSession.cpp 第 40 行定义.

引用了 eve::image::UvPaintSession::undoResult().

◆ updateMeshResult()

Result< void > eve::procgen::DynamicMeshUvPaintSession::updateMeshResult ( const MeshBuild &  mesh)

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().


该类的文档由以下文件生成: