Schema-versioned native counterpart of GTSMeshSettings. 更多...
#include <GtsTerrainLod.h>
Public 成员函数 | |
| int | getSaveResolution () const noexcept |
| Return the SaveResolution enum value in the range 0 through 4. | |
| Result< void > | setSaveResolution (int value) |
| Atomically set the SaveResolution enum value. | |
| int | getLodCount () const noexcept |
| Return the active LOD count in the Pcg editor range 1 through 4. | |
| Result< void > | setLodCount (int value) |
| Atomically set the active LOD count. | |
| int | getSubTiles () const noexcept |
| Return the equal X/Z split-plane count in the range 0 through 5. | |
| Result< void > | setSubTiles (int value) |
| Atomically set the equal X/Z split-plane count. | |
| float | getLodQuality (int index) const noexcept |
| Return one stored simplification percentage, or -1 for an invalid slot. | |
| Result< void > | setLodQuality (int index, float percent) |
| Set one of the four simplification percentages in the range 0 through 100. | |
| float | getLodTransitionHeight (int index) const noexcept |
| Return the effective fixed GTS transition height for an active LOD, or -1. | |
| Result< std::string > | snapshotJson () const |
Serialize as strict eve.procgen.gts-terrain-mesh-settings version 1 JSON. | |
| Result< void > | restoreJson (const std::string &json) |
| Atomically restore settings from strict schema-versioned JSON. | |
| Result< std::vector< GtsTerrainLodLevelSettings > > | compileLevels () const |
| Compile active profile slots into sequential native LOD settings. | |
详细描述
Schema-versioned native counterpart of GTSMeshSettings.
在文件 GtsTerrainLod.h 第 42 行定义.
成员函数说明
◆ compileLevels()
| Result< std::vector< GtsTerrainLodLevelSettings > > eve::procgen::GtsTerrainMeshSettings::compileLevels | ( | ) | const |
Compile active profile slots into sequential native LOD settings.
在文件 GtsTerrainLod.cpp 第 142 行定义.
引用了 getLodTransitionHeight(), level , 以及 eve::procgen::GtsTerrainLodLevelSettings::quality.
◆ getLodCount()
|
inlinenoexcept |
Return the active LOD count in the Pcg editor range 1 through 4.
在文件 GtsTerrainLod.h 第 49 行定义.
◆ getLodQuality()
|
noexcept |
Return one stored simplification percentage, or -1 for an invalid slot.
在文件 GtsTerrainLod.cpp 第 125 行定义.
引用了 index.
◆ getLodTransitionHeight()
|
noexcept |
Return the effective fixed GTS transition height for an active LOD, or -1.
在文件 GtsTerrainLod.cpp 第 137 行定义.
引用了 index.
被这些函数引用 compileLevels().
◆ getSaveResolution()
|
inlinenoexcept |
Return the SaveResolution enum value in the range 0 through 4.
在文件 GtsTerrainLod.h 第 45 行定义.
◆ getSubTiles()
|
inlinenoexcept |
Return the equal X/Z split-plane count in the range 0 through 5.
在文件 GtsTerrainLod.h 第 53 行定义.
◆ restoreJson()
| Result< void > eve::procgen::GtsTerrainMeshSettings::restoreJson | ( | const std::string & | json | ) |
Atomically restore settings from strict schema-versioned JSON.
在文件 GtsTerrainLodCodec.cpp 第 139 行定义.
引用了 a, b, c, count, eve::Diagnostic::error(), eve::Result< T >::failure(), eve::Value::fromJson(), eve::InvalidArgument, root, setLodCount(), setLodQuality(), setSaveResolution(), setSubTiles() , 以及 eve::Result< T >::success().
◆ setLodCount()
| Result< void > eve::procgen::GtsTerrainMeshSettings::setLodCount | ( | int | value | ) |
Atomically set the active LOD count.
在文件 GtsTerrainLod.cpp 第 109 行定义.
引用了 eve::Diagnostic::error(), eve::Result< T >::failure(), eve::InvalidArgument, eve::Result< T >::success() , 以及 value.
被这些函数引用 restoreJson().
◆ setLodQuality()
| Result< void > eve::procgen::GtsTerrainMeshSettings::setLodQuality | ( | int | index, |
| float | percent | ||
| ) |
Set one of the four simplification percentages in the range 0 through 100.
在文件 GtsTerrainLod.cpp 第 128 行定义.
引用了 eve::Diagnostic::error(), eve::Result< T >::failure(), index, eve::InvalidArgument , 以及 eve::Result< T >::success().
被这些函数引用 restoreJson().
◆ setSaveResolution()
| Result< void > eve::procgen::GtsTerrainMeshSettings::setSaveResolution | ( | int | value | ) |
Atomically set the SaveResolution enum value.
在文件 GtsTerrainLod.cpp 第 101 行定义.
引用了 eve::Diagnostic::error(), eve::Result< T >::failure(), eve::InvalidArgument, eve::Result< T >::success() , 以及 value.
被这些函数引用 restoreJson().
◆ setSubTiles()
| Result< void > eve::procgen::GtsTerrainMeshSettings::setSubTiles | ( | int | value | ) |
Atomically set the equal X/Z split-plane count.
在文件 GtsTerrainLod.cpp 第 117 行定义.
引用了 eve::Diagnostic::error(), eve::Result< T >::failure(), eve::InvalidArgument, eve::Result< T >::success() , 以及 value.
被这些函数引用 restoreJson().
◆ snapshotJson()
| Result< std::string > eve::procgen::GtsTerrainMeshSettings::snapshotJson | ( | ) | const |
Serialize as strict eve.procgen.gts-terrain-mesh-settings version 1 JSON.
在文件 GtsTerrainLodCodec.cpp 第 127 行定义.
引用了 eve::procgen::Value.
该类的文档由以下文件生成:
- src/modules/procgen/GtsTerrainLod.h
- src/modules/procgen/GtsTerrainLod.cpp
- src/modules/procgen/GtsTerrainLodCodec.cpp