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

Schema-versioned source/impostor terrain export profile. 更多...

#include <GtsTerrainExportSettings.h>

Public 成员函数

Result< void > configureWorkflow (const GtsTerrainExportWorkflow &workflow)
 Atomically configure all top-level conversion and collider workflow controls.
 
GtsTerrainExportWorkflow getWorkflow () const noexcept
 Return a value copy of the current validated workflow.
 
Result< void > appendSourcePreset (int mode, int level, float quality, float transitionHeight)
 Append one source preset after validating the complete resulting sequence.
 
Result< void > appendImpostorPreset (int mode, int level, float quality, float transitionHeight)
 Append one impostor preset after validating the complete resulting sequence.
 
Result< void > setSourceLods (std::vector< GtsTerrainExportLodSettings > levels)
 Replace source-terrain LOD records only after every record validates.
 
Result< void > setImpostorLods (std::vector< GtsTerrainExportLodSettings > levels)
 Replace impostor LOD records only after every record validates.
 
int getSourceLodCount () const noexcept
 Return the number of source-terrain LOD records.
 
int getImpostorLodCount () const noexcept
 Return the number of impostor LOD records.
 
const GtsTerrainExportLodSettings * sourceLodAt (int index) const noexcept
 Return an immutable source LOD record, or nullptr for an invalid index. @ownership The export settings retain ownership; the caller must not delete the pointer. @lifetime Valid until the source list is replaced, restored, or this object is destroyed.
 
const GtsTerrainExportLodSettings * impostorLodAt (int index) const noexcept
 Return an immutable impostor LOD record, or nullptr for an invalid index. @ownership The export settings retain ownership; the caller must not delete the pointer. @lifetime Valid until the impostor list is replaced, restored, or this object is destroyed.
 
Result< std::vector< GtsTerrainLodLevelSettings > > compileSourceLevels () const
 Compile source records for the existing sequential LOD mesh builder.
 
Result< std::string > snapshotJson () const
 Serialize as strict eve.procgen.gts-terrain-export-settings version 1 JSON.
 
Result< void > restoreJson (const std::string &json)
 Atomically restore a strict version-1 terrain export profile.
 

详细描述

Schema-versioned source/impostor terrain export profile.

在文件 GtsTerrainExportSettings.h 第 97 行定义.

成员函数说明

◆ appendImpostorPreset()

Result< void > eve::procgen::GtsTerrainExportSettings::appendImpostorPreset ( int  mode,
int  level,
float  quality,
float  transitionHeight 
)

Append one impostor preset after validating the complete resulting sequence.

在文件 GtsTerrainExportSettings.cpp 第 372 行定义.

引用了 eve::Result< T >::failure(), level, setImpostorLods() , 以及 eve::Result< T >::status().

◆ appendSourcePreset()

Result< void > eve::procgen::GtsTerrainExportSettings::appendSourcePreset ( int  mode,
int  level,
float  quality,
float  transitionHeight 
)

Append one source preset after validating the complete resulting sequence.

在文件 GtsTerrainExportSettings.cpp 第 365 行定义.

引用了 eve::Result< T >::failure(), level, setSourceLods() , 以及 eve::Result< T >::status().

◆ compileSourceLevels()

Result< std::vector< GtsTerrainLodLevelSettings > > eve::procgen::GtsTerrainExportSettings::compileSourceLevels ( ) const

Compile source records for the existing sequential LOD mesh builder.

在文件 GtsTerrainExportSettings.cpp 第 414 行定义.

引用了 eve::Diagnostic::error(), eve::InvalidArgument, level, output, source , 以及 valid.

◆ configureWorkflow()

◆ getImpostorLodCount()

int eve::procgen::GtsTerrainExportSettings::getImpostorLodCount ( ) const
noexcept

Return the number of impostor LOD records.

在文件 GtsTerrainExportSettings.cpp 第 407 行定义.

◆ getSourceLodCount()

int eve::procgen::GtsTerrainExportSettings::getSourceLodCount ( ) const
noexcept

Return the number of source-terrain LOD records.

在文件 GtsTerrainExportSettings.cpp 第 406 行定义.

◆ getWorkflow()

GtsTerrainExportWorkflow eve::procgen::GtsTerrainExportSettings::getWorkflow ( ) const
noexcept

Return a value copy of the current validated workflow.

在文件 GtsTerrainExportSettings.cpp 第 399 行定义.

◆ impostorLodAt()

const GtsTerrainExportLodSettings * eve::procgen::GtsTerrainExportSettings::impostorLodAt ( int  index) const
noexcept

Return an immutable impostor LOD record, or nullptr for an invalid index. @ownership The export settings retain ownership; the caller must not delete the pointer. @lifetime Valid until the impostor list is replaced, restored, or this object is destroyed.

在文件 GtsTerrainExportSettings.cpp 第 411 行定义.

引用了 index.

◆ restoreJson()

Result< void > eve::procgen::GtsTerrainExportSettings::restoreJson ( const std::string &  json)

Atomically restore a strict version-1 terrain export profile.

在文件 GtsTerrainExportSettings.cpp 第 445 行定义.

引用了 configureWorkflow(), eve::Diagnostic::error(), eve::Result< T >::failure(), eve::Value::fromJson(), eve::InvalidArgument, root, source, eve::Result< T >::success() , 以及 value.

◆ setImpostorLods()

Result< void > eve::procgen::GtsTerrainExportSettings::setImpostorLods ( std::vector< GtsTerrainExportLodSettings >  levels)

Replace impostor LOD records only after every record validates.

在文件 GtsTerrainExportSettings.cpp 第 400 行定义.

引用了 eve::Result< T >::success() , 以及 valid.

被这些函数引用 appendImpostorPreset().

◆ setSourceLods()

Result< void > eve::procgen::GtsTerrainExportSettings::setSourceLods ( std::vector< GtsTerrainExportLodSettings >  levels)

Replace source-terrain LOD records only after every record validates.

在文件 GtsTerrainExportSettings.cpp 第 380 行定义.

引用了 eve::Result< T >::success() , 以及 valid.

被这些函数引用 appendSourcePreset().

◆ snapshotJson()

Result< std::string > eve::procgen::GtsTerrainExportSettings::snapshotJson ( ) const

Serialize as strict eve.procgen.gts-terrain-export-settings version 1 JSON.

在文件 GtsTerrainExportSettings.cpp 第 430 行定义.

引用了 eve::Result< T >::failure(), level, source , 以及 eve::procgen::Value.

◆ sourceLodAt()

const GtsTerrainExportLodSettings * eve::procgen::GtsTerrainExportSettings::sourceLodAt ( int  index) const
noexcept

Return an immutable source LOD record, or nullptr for an invalid index. @ownership The export settings retain ownership; the caller must not delete the pointer. @lifetime Valid until the source list is replaced, restored, or this object is destroyed.

在文件 GtsTerrainExportSettings.cpp 第 408 行定义.

引用了 index.


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