Owning transactional multi-terrain object workspace with undo and redo snapshots. 更多...
#include <TerrainObjectPlacement.h>
类 | |
| struct | Impl |
Public 成员函数 | |
| TerrainMultiObjectWorkspace () | |
| Terrain multi object workspace. | |
| ~TerrainMultiObjectWorkspace () | |
| Terrain multi object workspace. | |
| TerrainMultiObjectWorkspace (TerrainMultiObjectWorkspace &&) noexcept | |
| Terrain multi object workspace. | |
| TerrainMultiObjectWorkspace & | operator= (TerrainMultiObjectWorkspace &&) noexcept |
| Operator =. | |
| TerrainMultiObjectWorkspace (const TerrainMultiObjectWorkspace &)=delete | |
| TerrainMultiObjectWorkspace & | operator= (const TerrainMultiObjectWorkspace &)=delete |
| Result< int > | addTile (const std::string &name, const PointSet &objects, const Heightmap &heights, double originX, double originZ, double width, double depth, int resolutionX, int resolutionY, bool worldMap=false) |
| Deep-copy one named tile before the first operation. | |
| Result< int > | apply (const Heightmap &fitness, const TerrainObjectPlacementSettings &settings, const TerrainStampSettings &operationSettings, TerrainObjectOperationMode mode, bool worldMapOperation=false) |
| Apply one operation as a single atomic history entry. | |
| Result< int > | copyTile (const std::string &name, PointSet &output) const |
| Copy one current tile result into output. | |
| Result< int > | undo () |
| Restore the preceding snapshot. | |
| Result< int > | redo () |
| Restore the next snapshot. | |
| int | getTileCount () const noexcept |
| Return registered tile count. | |
| int | getLastChangedSamples () const noexcept |
| Return changed object count from the current snapshot. | |
| int | getLastAffectedTiles () const noexcept |
| Return affected tile count from the current snapshot. | |
| int | getOperationCount () const noexcept |
| Return retained operation history count. | |
| int | getAppliedCount () const noexcept |
| Return currently applied operation count. | |
详细描述
Owning transactional multi-terrain object workspace with undo and redo snapshots.
在文件 TerrainObjectPlacement.h 第 115 行定义.
构造及析构函数说明
◆ TerrainMultiObjectWorkspace() [1/3]
| eve::procgen::TerrainMultiObjectWorkspace::TerrainMultiObjectWorkspace | ( | ) |
Terrain multi object workspace.
在文件 TerrainObjectPlacement.cpp 第 439 行定义.
◆ ~TerrainMultiObjectWorkspace()
|
default |
Terrain multi object workspace.
◆ TerrainMultiObjectWorkspace() [2/3]
|
defaultnoexcept |
Terrain multi object workspace.
◆ TerrainMultiObjectWorkspace() [3/3]
|
delete |
成员函数说明
◆ addTile()
| Result< int > eve::procgen::TerrainMultiObjectWorkspace::addTile | ( | const std::string & | name, |
| const PointSet & | objects, | ||
| const Heightmap & | heights, | ||
| double | originX, | ||
| double | originZ, | ||
| double | width, | ||
| double | depth, | ||
| int | resolutionX, | ||
| int | resolutionY, | ||
| bool | worldMap = false |
||
| ) |
Deep-copy one named tile before the first operation.
在文件 TerrainObjectPlacement.cpp 第 443 行定义.
引用了 depth, eve::procgen::raster_detail::invalid(), name, eve::Result< T >::success(), t, eve::procgen::raster_detail::validRaster() , 以及 width.
◆ apply()
| Result< int > eve::procgen::TerrainMultiObjectWorkspace::apply | ( | const Heightmap & | fitness, |
| const TerrainObjectPlacementSettings & | settings, | ||
| const TerrainStampSettings & | operationSettings, | ||
| TerrainObjectOperationMode | mode, | ||
| bool | worldMapOperation = false |
||
| ) |
Apply one operation as a single atomic history entry.
在文件 TerrainObjectPlacement.cpp 第 457 行定义.
引用了 eve::procgen::raster_detail::invalid() , 以及 tiles.
◆ copyTile()
| Result< int > eve::procgen::TerrainMultiObjectWorkspace::copyTile | ( | const std::string & | name, |
| PointSet & | output | ||
| ) | const |
Copy one current tile result into output.
在文件 TerrainObjectPlacement.cpp 第 469 行定义.
引用了 found, eve::procgen::raster_detail::invalid(), output , 以及 eve::Result< T >::success().
◆ getAppliedCount()
|
noexcept |
Return currently applied operation count.
在文件 TerrainObjectPlacement.cpp 第 481 行定义.
◆ getLastAffectedTiles()
|
noexcept |
Return affected tile count from the current snapshot.
在文件 TerrainObjectPlacement.cpp 第 479 行定义.
◆ getLastChangedSamples()
|
noexcept |
Return changed object count from the current snapshot.
在文件 TerrainObjectPlacement.cpp 第 478 行定义.
◆ getOperationCount()
|
noexcept |
Return retained operation history count.
在文件 TerrainObjectPlacement.cpp 第 480 行定义.
◆ getTileCount()
|
noexcept |
Return registered tile count.
在文件 TerrainObjectPlacement.cpp 第 477 行定义.
◆ operator=() [1/2]
|
delete |
◆ operator=() [2/2]
|
defaultnoexcept |
Operator =.
◆ redo()
| Result< int > eve::procgen::TerrainMultiObjectWorkspace::redo | ( | ) |
Restore the next snapshot.
在文件 TerrainObjectPlacement.cpp 第 476 行定义.
引用了 eve::procgen::raster_detail::invalid() , 以及 eve::Result< T >::success().
◆ undo()
| Result< int > eve::procgen::TerrainMultiObjectWorkspace::undo | ( | ) |
Restore the preceding snapshot.
在文件 TerrainObjectPlacement.cpp 第 475 行定义.
引用了 eve::procgen::raster_detail::invalid() , 以及 eve::Result< T >::success().
该类的文档由以下文件生成:
- src/modules/procgen/heightmap/TerrainObjectPlacement.h
- src/modules/procgen/heightmap/TerrainObjectPlacement.cpp