载入中...
搜索中...
未找到
eve::image::UvPaintSession类 参考

Transactional, renderer-independent UV texture painting session. 更多...

#include <UvPaintSession.h>

Public 成员函数

 UvPaintSession ()
 Uv paint session.
 
 ~UvPaintSession ()
 Uv paint session.
 
 UvPaintSession (const UvPaintSession &)=delete
 
UvPaintSession & operator= (const UvPaintSession &)=delete
 
Result< void > initializeResult (const ImageData &image)
 Initialize with an owning RGBA8 copy and clear history.
 
Result< UvPaintReceipt > paintCircleResult (float u, float v, float radiusPixels, float r, float g, float b, float a, bool wrapU=false, bool wrapV=false)
 Paint one circular UV brush as a single undoable transaction.
 
Result< void > undoResult ()
 Restore the previous committed paint transaction.
 
Result< void > restoreResult ()
 Restore the initial/baked pixels and clear history.
 
Result< void > bakeResult ()
 Make current pixels the new restore point and clear history.
 
Result< std::unique_ptr< ImageData > > currentImageResult () const
 Return a caller-owned current pixel snapshot.
 
Result< void > copyCurrentToResult (ImageData &destination) const
 Atomically copy current pixels into caller-owned RGBA8 storage.
 
std::uint64_t revision () const noexcept
 Return monotonic session revision.
 
int undoCount () const noexcept
 Return available undo transaction count.
 
bool isInitialized () const noexcept
 Report whether pixels have been initialized.
 

详细描述

Transactional, renderer-independent UV texture painting session.

The session owns original/current pixels and bounded undo snapshots. It is synchronous and thread-affine, retains no model, renderer, physics hit, or caller-owned image pointer.

在文件 UvPaintSession.h 第 22 行定义.

构造及析构函数说明

◆ UvPaintSession() [1/2]

eve::image::UvPaintSession::UvPaintSession ( )
default

Uv paint session.

◆ ~UvPaintSession()

eve::image::UvPaintSession::~UvPaintSession ( )
default

Uv paint session.

◆ UvPaintSession() [2/2]

eve::image::UvPaintSession::UvPaintSession ( const UvPaintSession &  )
delete

成员函数说明

◆ bakeResult()

Result< void > eve::image::UvPaintSession::bakeResult ( )

Make current pixels the new restore point and clear history.

在文件 UvPaintSession.cpp 第 56 行定义.

引用了 eve::Diagnostic::error(), eve::Result< T >::failure(), eve::PreconditionViolation , 以及 eve::Result< T >::success().

◆ copyCurrentToResult()

Result< void > eve::image::UvPaintSession::copyCurrentToResult ( ImageData &  destination) const

Atomically copy current pixels into caller-owned RGBA8 storage.

在文件 UvPaintSession.cpp 第 73 行定义.

引用了 eve::image::ImageData::adopt(), eve::Diagnostic::error(), eve::Result< T >::failure(), eve::PreconditionViolation , 以及 eve::Result< T >::success().

◆ currentImageResult()

Result< std::unique_ptr< ImageData > > eve::image::UvPaintSession::currentImageResult ( ) const

Return a caller-owned current pixel snapshot.

在文件 UvPaintSession.cpp 第 65 行定义.

引用了 eve::Diagnostic::error() , 以及 eve::PreconditionViolation.

被这些函数引用 eve::procgen::DynamicMeshUvPaintSession::currentImageResult().

◆ initializeResult()

Result< void > eve::image::UvPaintSession::initializeResult ( const ImageData &  image)

Initialize with an owning RGBA8 copy and clear history.

在文件 UvPaintSession.cpp 第 11 行定义.

引用了 eve::Diagnostic::error(), eve::Result< T >::failure(), image, eve::Result< T >::success() , 以及 eve::Unsupported.

被这些函数引用 eve::procgen::DynamicMeshUvPaintSession::initializeResult().

◆ isInitialized()

bool eve::image::UvPaintSession::isInitialized ( ) const
inlinenoexcept

Report whether pixels have been initialized.

在文件 UvPaintSession.h 第 51 行定义.

◆ operator=()

UvPaintSession & eve::image::UvPaintSession::operator= ( const UvPaintSession &  )
delete

◆ paintCircleResult()

Result< UvPaintReceipt > eve::image::UvPaintSession::paintCircleResult ( float  u,
float  v,
float  radiusPixels,
float  r,
float  g,
float  b,
float  a,
bool  wrapU = false,
bool  wrapV = false 
)

Paint one circular UV brush as a single undoable transaction.

在文件 UvPaintSession.cpp 第 21 行定义.

引用了 a, b, eve::Diagnostic::error(), eve::Result< T >::failure(), g, eve::PreconditionViolation, r, u , 以及 v.

被这些函数引用 eve::procgen::DynamicMeshUvPaintSession::paintSurfacePointResult().

◆ restoreResult()

Result< void > eve::image::UvPaintSession::restoreResult ( )

Restore the initial/baked pixels and clear history.

在文件 UvPaintSession.cpp 第 47 行定义.

引用了 eve::Diagnostic::error(), eve::Result< T >::failure(), eve::PreconditionViolation , 以及 eve::Result< T >::success().

◆ revision()

std::uint64_t eve::image::UvPaintSession::revision ( ) const
inlinenoexcept

Return monotonic session revision.

在文件 UvPaintSession.h 第 47 行定义.

◆ undoCount()

int eve::image::UvPaintSession::undoCount ( ) const
inlinenoexcept

Return available undo transaction count.

在文件 UvPaintSession.h 第 49 行定义.

◆ undoResult()

Result< void > eve::image::UvPaintSession::undoResult ( )

Restore the previous committed paint transaction.

在文件 UvPaintSession.cpp 第 37 行定义.

引用了 eve::Diagnostic::error(), eve::Result< T >::failure(), eve::PreconditionViolation , 以及 eve::Result< T >::success().

被这些函数引用 eve::procgen::DynamicMeshUvPaintSession::undoResult().


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