Typed procedural mesh graph composing grid, point and topology domains. 更多...
#include <MeshGraph.h>
Public 成员函数 | |
| Result< void > | addNode (std::string id, std::string operation) |
| Adds node. | |
| Result< void > | connect (std::string_view fromId, std::string_view toId, int inputIndex=0) |
| Connect. | |
| Result< void > | setNodeGrid (std::string_view id, const Grid2D &value) |
| Sets the node grid. | |
| Result< void > | setNodePoints (std::string_view id, const PointSet &value) |
| Sets the node points. | |
| Result< void > | setNodeMesh (std::string_view id, const MeshBuild &value) |
| Sets the node mesh. | |
| Result< void > | setNodeFloat (std::string_view id, std::string key, float value) |
| Sets the node float. | |
| Result< void > | setNodeString (std::string_view id, std::string key, std::string value) |
| Sets the node string. | |
| Result< MeshBuild > | execute (std::string_view outputId) |
| Execute. | |
| Result< void > | validate (std::string_view outputId) const |
| Validate. | |
| void | clearCache () |
| Clears cache. | |
| std::uint64_t | revision () const noexcept |
| Revision. | |
| std::string | serializeDefinition () const |
| Serialize topology and scalar parameters using the versioned EVPCG mesh schema. | |
| Result< void > | deserializeDefinition (std::string_view definition) |
| Atomically replace this graph from a versioned definition. Runtime input values are not persisted. | |
详细描述
Typed procedural mesh graph composing grid, point and topology domains.
在文件 MeshGraph.h 第 21 行定义.
成员函数说明
◆ addNode()
| Result< void > eve::procgen::MeshGraph::addNode | ( | std::string | id, |
| std::string | operation | ||
| ) |
Adds node.
在文件 MeshGraph.cpp 第 110 行定义.
引用了 eve::Conflict, eve::Diagnostic::error(), eve::Result< T >::failure(), id, eve::InvalidArgument, node, eve::NotFound, operation , 以及 eve::Result< T >::success().
被这些函数引用 deserializeDefinition() , 以及 eve::procgen::BuildLayerStack::executeRegion().
◆ clearCache()
| void eve::procgen::MeshGraph::clearCache | ( | ) |
◆ connect()
| Result< void > eve::procgen::MeshGraph::connect | ( | std::string_view | fromId, |
| std::string_view | toId, | ||
| int | inputIndex = 0 |
||
| ) |
Connect.
在文件 MeshGraph.cpp 第 123 行定义.
引用了 eve::Diagnostic::error(), eve::Result< T >::failure(), from, eve::InvalidArgument, eve::NotFound, source, eve::Result< T >::success(), target, to , 以及 eve::TypeMismatch.
被这些函数引用 deserializeDefinition().
◆ deserializeDefinition()
| Result< void > eve::procgen::MeshGraph::deserializeDefinition | ( | std::string_view | definition | ) |
Atomically replace this graph from a versioned definition. Runtime input values are not persisted.
在文件 MeshGraph.cpp 第 335 行定义.
引用了 addNode(), eve::Conflict, connect(), ended, eve::Diagnostic::error(), eve::Result< T >::failure(), found, id, input, key, kind, line, eve::NotFound, operation, eve::ParseError, setNodeFloat(), setNodeString(), eve::Result< T >::success(), target , 以及 value.
◆ execute()
Execute.
@cost Linear in emitted vertices and indices; point instancing multiplies source mesh cost by point count.
在文件 MeshGraph.cpp 第 270 行定义.
引用了 eve::Diagnostic::error(), eve::Result< T >::failure(), mesh, eve::Result< T >::success(), eve::TypeMismatch , 以及 value.
被这些函数引用 validate().
◆ revision()
|
inlinenoexcept |
Revision.
在文件 MeshGraph.h 第 45 行定义.
◆ serializeDefinition()
| std::string eve::procgen::MeshGraph::serializeDefinition | ( | ) | const |
Serialize topology and scalar parameters using the versioned EVPCG mesh schema.
在文件 MeshGraph.cpp 第 307 行定义.
引用了 input, key, node , 以及 value.
被这些函数引用 eve::procgen::exposeGridMeshGraphs().
◆ setNodeFloat()
| Result< void > eve::procgen::MeshGraph::setNodeFloat | ( | std::string_view | id, |
| std::string | key, | ||
| float | value | ||
| ) |
Sets the node float.
在文件 MeshGraph.cpp 第 173 行定义.
引用了 eve::Diagnostic::error(), eve::Result< T >::failure(), found, eve::InvalidArgument, key, eve::NotFound, eve::Result< T >::success() , 以及 value.
被这些函数引用 deserializeDefinition().
◆ setNodeGrid()
Sets the node grid.
在文件 MeshGraph.cpp 第 140 行定义.
引用了 eve::Diagnostic::error(), eve::Result< T >::failure(), found, eve::Result< T >::success(), eve::TypeMismatch , 以及 value.
◆ setNodeMesh()
| Result< void > eve::procgen::MeshGraph::setNodeMesh | ( | std::string_view | id, |
| const MeshBuild & | value | ||
| ) |
Sets the node mesh.
在文件 MeshGraph.cpp 第 162 行定义.
引用了 eve::Diagnostic::error(), eve::Result< T >::failure(), found, eve::Result< T >::success(), eve::TypeMismatch , 以及 value.
◆ setNodePoints()
| Result< void > eve::procgen::MeshGraph::setNodePoints | ( | std::string_view | id, |
| const PointSet & | value | ||
| ) |
Sets the node points.
在文件 MeshGraph.cpp 第 151 行定义.
引用了 eve::Diagnostic::error(), eve::Result< T >::failure(), found, eve::Result< T >::success(), eve::TypeMismatch , 以及 value.
◆ setNodeString()
| Result< void > eve::procgen::MeshGraph::setNodeString | ( | std::string_view | id, |
| std::string | key, | ||
| std::string | value | ||
| ) |
Sets the node string.
在文件 MeshGraph.cpp 第 186 行定义.
引用了 eve::Diagnostic::error(), eve::Result< T >::failure(), found, eve::InvalidArgument, key, eve::NotFound, eve::Result< T >::success() , 以及 value.
被这些函数引用 deserializeDefinition().
◆ validate()
| Result< void > eve::procgen::MeshGraph::validate | ( | std::string_view | outputId | ) | const |
Validate.
在文件 MeshGraph.cpp 第 281 行定义.
引用了 execute(), eve::Result< T >::failure() , 以及 eve::Result< T >::success().
该类的文档由以下文件生成:
- src/modules/procgen/MeshGraph.h
- src/modules/procgen/MeshGraph.cpp