Owning script-safe multi-terrain splat transaction and all-tile undo history. Input maps are copied. Paint, report and history publish through one owner-thread swap; no external references, callbacks, renderer resources, RNG or time survive a call. 更多...
#include <TerrainSplatmap.h>
类 | |
| struct | Impl |
Public 成员函数 | |
| TerrainMultiSplatWorkspace () | |
| Terrain multi splat workspace. | |
| ~TerrainMultiSplatWorkspace () | |
| Terrain multi splat workspace. | |
| TerrainMultiSplatWorkspace (TerrainMultiSplatWorkspace &&) noexcept | |
| Terrain multi splat workspace. | |
| TerrainMultiSplatWorkspace & | operator= (TerrainMultiSplatWorkspace &&) noexcept |
| Operator =. | |
| TerrainMultiSplatWorkspace (const TerrainMultiSplatWorkspace &)=delete | |
| TerrainMultiSplatWorkspace & | operator= (const TerrainMultiSplatWorkspace &)=delete |
| Result< int > | addTile (const std::string &name, const TerrainSplatmap &splatmap, double originX, double originZ, double width, double depth, bool worldMap=false) |
| Copy one uniquely named initialized map and its world geometry into the workspace. | |
| Result< int > | paint (const Heightmap &operationPaint, int targetLayer, const TerrainStampSettings &operationSettings, bool worldMapOperation=false) |
| Paint one shared operation raster into one layer of all intersecting owned tiles. | |
| Result< int > | copyTile (const std::string &name, TerrainSplatmap &output) const |
| Copy one named map into caller-owned output. | |
| Result< int > | undo () |
| Restore the previous all-map snapshot. | |
| Result< int > | redo () |
| Restore the next all-map snapshot. | |
| int | getTileCount () const noexcept |
| Number of owned tiles. | |
| int | getLastChangedSamples () const noexcept |
| Changed texels in the current snapshot's last operation. | |
| int | getLastAffectedTiles () const noexcept |
| Affected tiles in the current snapshot's last operation. | |
| int | getOperationCount () const noexcept |
| Successful operation count including the redo suffix. | |
| int | getAppliedCount () const noexcept |
| Applied operation count at the current history cursor. | |
详细描述
Owning script-safe multi-terrain splat transaction and all-tile undo history. Input maps are copied. Paint, report and history publish through one owner-thread swap; no external references, callbacks, renderer resources, RNG or time survive a call.
在文件 TerrainSplatmap.h 第 152 行定义.
构造及析构函数说明
◆ TerrainMultiSplatWorkspace() [1/3]
| eve::procgen::TerrainMultiSplatWorkspace::TerrainMultiSplatWorkspace | ( | ) |
Terrain multi splat workspace.
在文件 TerrainSplatmap.cpp 第 385 行定义.
◆ ~TerrainMultiSplatWorkspace()
|
default |
Terrain multi splat workspace.
◆ TerrainMultiSplatWorkspace() [2/3]
|
defaultnoexcept |
Terrain multi splat workspace.
◆ TerrainMultiSplatWorkspace() [3/3]
|
delete |
成员函数说明
◆ addTile()
| Result< int > eve::procgen::TerrainMultiSplatWorkspace::addTile | ( | const std::string & | name, |
| const TerrainSplatmap & | splatmap, | ||
| double | originX, | ||
| double | originZ, | ||
| double | width, | ||
| double | depth, | ||
| bool | worldMap = false |
||
| ) |
Copy one uniquely named initialized map and its world geometry into the workspace.
在文件 TerrainSplatmap.cpp 第 390 行定义.
引用了 depth, eve::Diagnostic::error(), eve::Result< T >::failure(), eve::InvalidArgument, name , 以及 width.
◆ copyTile()
| Result< int > eve::procgen::TerrainMultiSplatWorkspace::copyTile | ( | const std::string & | name, |
| TerrainSplatmap & | output | ||
| ) | const |
Copy one named map into caller-owned output.
在文件 TerrainSplatmap.cpp 第 440 行定义.
引用了 eve::Diagnostic::error(), eve::Result< T >::failure(), found, eve::InvalidArgument, output , 以及 eve::Result< T >::success().
◆ getAppliedCount()
|
noexcept |
Applied operation count at the current history cursor.
在文件 TerrainSplatmap.cpp 第 468 行定义.
◆ getLastAffectedTiles()
|
noexcept |
Affected tiles in the current snapshot's last operation.
在文件 TerrainSplatmap.cpp 第 464 行定义.
◆ getLastChangedSamples()
|
noexcept |
Changed texels in the current snapshot's last operation.
在文件 TerrainSplatmap.cpp 第 463 行定义.
◆ getOperationCount()
|
noexcept |
Successful operation count including the redo suffix.
在文件 TerrainSplatmap.cpp 第 465 行定义.
◆ getTileCount()
|
noexcept |
Number of owned tiles.
在文件 TerrainSplatmap.cpp 第 462 行定义.
◆ operator=() [1/2]
|
delete |
◆ operator=() [2/2]
|
defaultnoexcept |
Operator =.
◆ paint()
| Result< int > eve::procgen::TerrainMultiSplatWorkspace::paint | ( | const Heightmap & | operationPaint, |
| int | targetLayer, | ||
| const TerrainStampSettings & | operationSettings, | ||
| bool | worldMapOperation = false |
||
| ) |
Paint one shared operation raster into one layer of all intersecting owned tiles.
在文件 TerrainSplatmap.cpp 第 419 行定义.
引用了 eve::Diagnostic::error(), eve::Result< T >::failure() , 以及 eve::InvalidArgument.
◆ redo()
| Result< int > eve::procgen::TerrainMultiSplatWorkspace::redo | ( | ) |
Restore the next all-map snapshot.
在文件 TerrainSplatmap.cpp 第 455 行定义.
引用了 eve::Diagnostic::error(), eve::Result< T >::failure(), eve::InvalidArgument , 以及 eve::Result< T >::success().
◆ undo()
| Result< int > eve::procgen::TerrainMultiSplatWorkspace::undo | ( | ) |
Restore the previous all-map snapshot.
在文件 TerrainSplatmap.cpp 第 449 行定义.
引用了 eve::Diagnostic::error(), eve::Result< T >::failure(), eve::InvalidArgument , 以及 eve::Result< T >::success().
该类的文档由以下文件生成:
- src/modules/procgen/heightmap/TerrainSplatmap.h
- src/modules/procgen/heightmap/TerrainSplatmap.cpp