Workspace controller for one authored biome rules document. 更多...
#include <BiomeRulesEditor.h>
Public 成员函数 | |
| BiomeRulesEditor (std::string targetId) | |
| Construct a seeded forest layer with one weighted asset. | |
| BiomeRulesEditor (const BiomeRulesEditor &)=delete | |
| BiomeRulesEditor & | operator= (const BiomeRulesEditor &)=delete |
| const biome_editing::BiomeDocumentTarget & | target () const noexcept |
| Borrow the authoritative biome document. | |
| biome_editing::Result< void > | configureWorkspace (editor::EditorWorkspace &workspace) const |
| Install Layers / Preview / Inspector / Assets panels. | |
| biome_editing::Result< void > | selectLayer (std::string id) |
| biome_editing::Result< void > | selectAsset (std::string id) |
| biome_editing::Result< void > | setLayerDensity (double density) |
| biome_editing::Result< void > | setLayerPriority (int priority) |
| biome_editing::Result< void > | setAssetWeight (double weight) |
| biome_editing::Result< void > | createLayer (std::string id, std::string name) |
| biome_editing::Result< void > | deleteSelectedLayer () |
| biome_editing::Result< void > | createAsset (std::string id, std::string asset) |
| biome_editing::Result< void > | deleteSelectedAsset () |
| biome_editing::Result< void > | addExclusion (std::string spatialAsset) |
| biome_editing::Result< void > | removeExclusion (std::string spatialAsset) |
| biome_editing::Result< void > | setSeed (std::uint32_t seed) |
| biome_editing::Result< void > | setSpacing (float spacing) |
| biome_editing::Result< editor::TransactionReceipt > | undo () |
| biome_editing::Result< editor::TransactionReceipt > | redo () |
| bool | canUndo () const noexcept |
| bool | canRedo () const noexcept |
| Can redo. | |
| std::uint64_t | revision () const noexcept |
| Revision. | |
| std::uint64_t | previewRevision () const noexcept |
| Preview revision. | |
| std::uint32_t | seed () const noexcept |
| Seed. | |
| float | spacing () const noexcept |
| Spacing. | |
| std::string | selectedId () const |
| Selected id. | |
| std::string | selectedType () const |
| Selected type. | |
| int | layerCount () const |
| Layer count. | |
| std::string | layerId (int index) const |
| Layer id. | |
| std::string | layerName (int index) const |
| Layer name. | |
| float | layerDensity (int index) const |
| Layer density. | |
| int | layerPriority (int index) const |
| Layer priority. | |
| bool | isLayerSelected (int index) const |
| True when layer selected. | |
| int | assetCount () const |
| Asset count. | |
| std::string | assetId (int index) const |
| Asset id. | |
| std::string | assetRef (int index) const |
| Asset ref. | |
| float | assetWeight (int index) const |
| Asset weight. | |
| bool | isAssetSelected (int index) const |
| True when asset selected. | |
| int | exclusionCount () const |
| Exclusion count. | |
| std::string | exclusionAsset (int index) const |
| Exclusion asset. | |
| int | pointCount () const |
| Point count. | |
| float | pointX (int index) const |
| Point x. | |
| float | pointZ (int index) const |
| Point z. | |
| std::string | pointAsset (int index) const |
| Point asset. | |
详细描述
Workspace controller for one authored biome rules document.
Owns the document, local undo, borrowed spatial domains and a copied PointSet preview. Preview requests always carry the published revision; a stale or failed generation keeps the last successful points on screen.
@ownership Editor owns the document and spatial copies. Preview getters copy values. @threadaffinity Owner thread only. @reentrancy No unknown callbacks.
在文件 BiomeRulesEditor.h 第 32 行定义.
构造及析构函数说明
◆ BiomeRulesEditor() [1/2]
|
explicit |
Construct a seeded forest layer with one weighted asset.
在文件 BiomeRulesEditor.cpp 第 34 行定义.
◆ BiomeRulesEditor() [2/2]
|
delete |
成员函数说明
◆ addExclusion()
| biome_editing::Result< void > eve::biome_editor::BiomeRulesEditor::addExclusion | ( | std::string | spatialAsset | ) |
◆ assetCount()
| int eve::biome_editor::BiomeRulesEditor::assetCount | ( | ) | const |
◆ assetId()
| std::string eve::biome_editor::BiomeRulesEditor::assetId | ( | int | index | ) | const |
◆ assetRef()
| std::string eve::biome_editor::BiomeRulesEditor::assetRef | ( | int | index | ) | const |
◆ assetWeight()
| float eve::biome_editor::BiomeRulesEditor::assetWeight | ( | int | index | ) | const |
◆ canRedo()
|
inlinenoexcept |
Can redo.
在文件 BiomeRulesEditor.h 第 68 行定义.
◆ canUndo()
|
inlinenoexcept |
在文件 BiomeRulesEditor.h 第 66 行定义.
◆ configureWorkspace()
| biome_editing::Result< void > eve::biome_editor::BiomeRulesEditor::configureWorkspace | ( | editor::EditorWorkspace & | workspace | ) | const |
Install Layers / Preview / Inspector / Assets panels.
- 注解
- Does not retain
workspace.
在文件 BiomeRulesEditor.cpp 第 72 行定义.
引用了 eve::editor::EditorWorkspace::activatePanel(), context, id, order, eve::editor::EditorWorkspace::registerPanel(), eve::editor::EditorWorkspace::setPanelCapability(), eve::editor::EditorWorkspace::setPanelContext() , 以及 title.
◆ createAsset()
| biome_editing::Result< void > eve::biome_editor::BiomeRulesEditor::createAsset | ( | std::string | id, |
| std::string | asset | ||
| ) |
◆ createLayer()
| biome_editing::Result< void > eve::biome_editor::BiomeRulesEditor::createLayer | ( | std::string | id, |
| std::string | name | ||
| ) |
◆ deleteSelectedAsset()
| biome_editing::Result< void > eve::biome_editor::BiomeRulesEditor::deleteSelectedAsset | ( | ) |
◆ deleteSelectedLayer()
| biome_editing::Result< void > eve::biome_editor::BiomeRulesEditor::deleteSelectedLayer | ( | ) |
◆ exclusionAsset()
| std::string eve::biome_editor::BiomeRulesEditor::exclusionAsset | ( | int | index | ) | const |
Exclusion asset.
在文件 BiomeRulesEditor.cpp 第 374 行定义.
引用了 eve::biome_editing::BiomeDocumentTarget::exclusions() , 以及 index.
◆ exclusionCount()
|
inline |
Exclusion count.
在文件 BiomeRulesEditor.h 第 107 行定义.
◆ isAssetSelected()
| bool eve::biome_editor::BiomeRulesEditor::isAssetSelected | ( | int | index | ) | const |
◆ isLayerSelected()
| bool eve::biome_editor::BiomeRulesEditor::isLayerSelected | ( | int | index | ) | const |
◆ layerCount()
|
inline |
Layer count.
在文件 BiomeRulesEditor.h 第 83 行定义.
◆ layerDensity()
| float eve::biome_editor::BiomeRulesEditor::layerDensity | ( | int | index | ) | const |
Layer density.
在文件 BiomeRulesEditor.cpp 第 341 行定义.
引用了 index , 以及 eve::biome_editing::BiomeDocumentTarget::layers().
◆ layerId()
| std::string eve::biome_editor::BiomeRulesEditor::layerId | ( | int | index | ) | const |
Layer id.
在文件 BiomeRulesEditor.cpp 第 333 行定义.
引用了 index, eve::biome_editing::BiomeDocumentTarget::layers() , 以及 value.
被这些函数引用 isLayerSelected().
◆ layerName()
| std::string eve::biome_editor::BiomeRulesEditor::layerName | ( | int | index | ) | const |
Layer name.
在文件 BiomeRulesEditor.cpp 第 337 行定义.
引用了 index, eve::biome_editing::BiomeDocumentTarget::layers() , 以及 name.
◆ layerPriority()
| int eve::biome_editor::BiomeRulesEditor::layerPriority | ( | int | index | ) | const |
Layer priority.
在文件 BiomeRulesEditor.cpp 第 345 行定义.
引用了 index, eve::biome_editing::BiomeDocumentTarget::layers() , 以及 priority.
◆ operator=()
|
delete |
◆ pointAsset()
| std::string eve::biome_editor::BiomeRulesEditor::pointAsset | ( | int | index | ) | const |
◆ pointCount()
|
inline |
Point count.
在文件 BiomeRulesEditor.h 第 112 行定义.
◆ pointX()
| float eve::biome_editor::BiomeRulesEditor::pointX | ( | int | index | ) | const |
◆ pointZ()
| float eve::biome_editor::BiomeRulesEditor::pointZ | ( | int | index | ) | const |
◆ previewRevision()
|
inlinenoexcept |
Preview revision.
在文件 BiomeRulesEditor.h 第 72 行定义.
◆ redo()
| biome_editing::Result< editor::TransactionReceipt > eve::biome_editor::BiomeRulesEditor::redo | ( | ) |
在文件 BiomeRulesEditor.cpp 第 304 行定义.
引用了 eve::Result< T >::failure() , 以及 eve::editor::LocalTransactionBackend::redo().
◆ removeExclusion()
| biome_editing::Result< void > eve::biome_editor::BiomeRulesEditor::removeExclusion | ( | std::string | spatialAsset | ) |
◆ revision()
|
inlinenoexcept |
◆ seed()
|
inlinenoexcept |
◆ selectAsset()
| biome_editing::Result< void > eve::biome_editor::BiomeRulesEditor::selectAsset | ( | std::string | id | ) |
在文件 BiomeRulesEditor.cpp 第 173 行定义.
引用了 found, id, layer , 以及 eve::biome_editing::BiomeDocumentTarget::layers().
被这些函数引用 createAsset().
◆ selectedId()
|
inline |
Selected id.
在文件 BiomeRulesEditor.h 第 78 行定义.
◆ selectedType()
|
inline |
Selected type.
在文件 BiomeRulesEditor.h 第 80 行定义.
◆ selectLayer()
| biome_editing::Result< void > eve::biome_editor::BiomeRulesEditor::selectLayer | ( | std::string | id | ) |
在文件 BiomeRulesEditor.cpp 第 162 行定义.
引用了 found, id, layer , 以及 eve::biome_editing::BiomeDocumentTarget::layers().
被这些函数引用 createLayer() , 以及 deleteSelectedLayer().
◆ setAssetWeight()
| biome_editing::Result< void > eve::biome_editor::BiomeRulesEditor::setAssetWeight | ( | double | weight | ) |
在文件 BiomeRulesEditor.cpp 第 212 行定义.
引用了 eve::biome_editing::BiomeDocumentTarget::makeSet() , 以及 weight.
◆ setLayerDensity()
| biome_editing::Result< void > eve::biome_editor::BiomeRulesEditor::setLayerDensity | ( | double | density | ) |
在文件 BiomeRulesEditor.cpp 第 185 行定义.
引用了 eve::biome_editing::BiomeDocumentTarget::makeSet(), previous , 以及 revision().
◆ setLayerPriority()
| biome_editing::Result< void > eve::biome_editor::BiomeRulesEditor::setLayerPriority | ( | int | priority | ) |
在文件 BiomeRulesEditor.cpp 第 202 行定义.
引用了 eve::biome_editing::BiomeDocumentTarget::makeSet() , 以及 priority.
◆ setSeed()
| biome_editing::Result< void > eve::biome_editor::BiomeRulesEditor::setSeed | ( | std::uint32_t | seed | ) |
在文件 BiomeRulesEditor.cpp 第 282 行定义.
引用了 seed().
◆ setSpacing()
| biome_editing::Result< void > eve::biome_editor::BiomeRulesEditor::setSpacing | ( | float | spacing | ) |
在文件 BiomeRulesEditor.cpp 第 287 行定义.
引用了 spacing().
◆ spacing()
|
inlinenoexcept |
◆ target()
|
inlinenoexcept |
Borrow the authoritative biome document.
在文件 BiomeRulesEditor.h 第 41 行定义.
◆ undo()
| biome_editing::Result< editor::TransactionReceipt > eve::biome_editor::BiomeRulesEditor::undo | ( | ) |
在文件 BiomeRulesEditor.cpp 第 295 行定义.
引用了 eve::Result< T >::failure() , 以及 eve::editor::LocalTransactionBackend::undo().
该类的文档由以下文件生成:
- src/modules/procgen/biome/editor/BiomeRulesEditor.h
- src/modules/procgen/biome/editor/BiomeRulesEditor.cpp