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

EVENGINE_API_DOMAINS public API. 更多...

#include <PointGraph.h>

Public 成员函数

 PointGraph ()
 Point graph.
 
bool addNode (const std::string &id, const std::string &operation)
 Add a node using one of the operations returned by operationAt().
 
bool removeNode (const std::string &id)
 Remove a node and every edge that references it.
 
bool hasNode (const std::string &id) const
 True when node.
 
int getNodeCount () const
 Returns the node count.
 
std::string getNodeId (int index) const
 Returns the node id.
 
std::string getNodeOperation (const std::string &id) const
 Returns the node operation.
 
bool connect (const std::string &fromId, const std::string &toId, int inputIndex=0)
 Connect an output to input slot 0 or 1. Replaces that input connection.
 
bool disconnect (const std::string &toId, int inputIndex=0)
 Remove one input connection.
 
std::string getInputNode (const std::string &nodeId, int inputIndex) const
 Returns the input node.
 
bool setNodePoints (const std::string &id, PointSet *points)
 Assign a copied PointSet to an input node.
 
bool setNodeSpatial (const std::string &id, SpatialData *spatial)
 Assign copied spatial data to a spatial sample, filter, projection, or biome node.
 
Result< void > setBindingSpatial (const std::string &name, SpatialData *spatial)
 Bind named SpatialData for get.* / optional binding= parameters. External runtime slot: not serialized with serializeDefinition().
 
Result< void > setBindingPoints (const std::string &name, PointSet *points)
 Bind named PointSet for get.points / get.actor. External runtime slot: not serialized with serializeDefinition().
 
Result< void > clearBinding (const std::string &name)
 Remove one named binding.
 
void clearBindings ()
 Remove every named binding.
 
int getBindingCount () const
 Return the number of named bindings.
 
std::string getBindingName (int index) const
 Return a binding name by stable insertion index.
 
std::string getBindingType (const std::string &name) const
 Return spatial, points, or empty when the name is unbound.
 
Result< PointGraphInspectReport > inspectNode (const std::string &id, int sampleLimit=0) const
 Build an inspect snapshot for a cached node output after execute.
 
bool setNodeBiomeRules (const std::string &id, BiomeRules *rules)
 Assign copied biome rules to a biome.generate node.
 
bool setNodeShapeGrammar (const std::string &id, ShapeGrammar *grammar)
 Assign a copied shape grammar to a grammar.generate node.
 
bool setNodeFloat (const std::string &id, const std::string &key, float value)
 Sets the node float.
 
bool setNodeInt (const std::string &id, const std::string &key, int value)
 Sets the node int.
 
bool setNodeString (const std::string &id, const std::string &key, const std::string &value)
 Sets the node string.
 
bool exposeParameter (const std::string &name, const std::string &nodeId, const std::string &key)
 Expose one reflected node parameter for per-instance overrides.
 
int getParameterCount () const
 Return the number of exposed graph parameters.
 
std::string getParameterName (int index) const
 Return an exposed parameter name by stable insertion index.
 
std::string getParameterKind (const std::string &name) const
 Return the reflected kind of an exposed parameter.
 
bool hasParameterOverride (const std::string &name) const
 Report whether an instance override is active.
 
bool setParameterFloat (const std::string &name, float value)
 Override an exposed floating-point parameter for this graph instance.
 
bool setParameterInt (const std::string &name, int value)
 Override an exposed integer or Boolean parameter for this graph instance.
 
bool setParameterString (const std::string &name, const std::string &value)
 Override an exposed string parameter for this graph instance.
 
float getParameterFloat (const std::string &name, float fallback) const
 Return the effective floating-point parameter value.
 
int getParameterInt (const std::string &name, int fallback) const
 Return the effective integer or Boolean parameter value.
 
std::string getParameterString (const std::string &name, const std::string &fallback) const
 Return the effective string parameter value.
 
bool clearParameterOverride (const std::string &name)
 Remove an instance override and restore the asset default.
 
bool setNodeSubgraph (const std::string &id, PointGraph *graph, const std::string &inputNode, const std::string &outputNode)
 Assign an immutable nested graph.
 
Result< PointSet > executeResult (std::string_view outputId)
 Evaluate an output and return an independent owning point snapshot.
 
Result< void > validateResult () const
 Validate configured nodes and nested graphs without executing them.
 
PointSet * execute (const std::string &outputId)
 Compatibility-only projection of executeResult; caller deletes the result, nullptr means failure.
 
void setExecutionNodeBudget (int nodes)
 Limit uncached nodes evaluated by one execute call; zero disables the limit.
 
int getExecutionNodeBudget () const
 Returns the execution node budget.
 
void setMaxNodeOutputPoints (int points)
 Limit points produced by any node; zero disables the limit.
 
int getMaxNodeOutputPoints () const
 Return the per-node point output limit; zero means unlimited.
 
bool setComputePolicy (const std::string &policy)
 Select auto, gpu, or cpu point execution; GPU failures fall back to CPU.
 
std::string getComputePolicy () const
 Return the configured point compute policy.
 
void setComputeMinimumPoints (int points)
 Set the minimum point count for auto GPU dispatch.
 
int getComputeMinimumPoints () const
 Return the minimum point count for automatic GPU dispatch.
 
void requestCancel ()
 Cancel subsequent execution until resetCancellation is called.
 
void resetCancellation ()
 Resets cancellation.
 
bool wasCancelled () const
 Was cancelled.
 
bool validate ()
 Compatibility-only bool projection of validateResult; diagnostics are rendered by getError().
 
std::string getError () const
 Render the last compatibility execute/validate or legacy authoring error; canonical Result calls do not update it.
 
void clearCache ()
 Clears cache.
 
uint64_t getRevision () const
 Monotonic topology/parameter revision used by asset and preview caches.
 
int getExecutionCount () const
 Returns the execution count.
 
int getCacheHitCount () const
 Returns the cache hit count.
 
int getCompiledSegmentCount () const
 Return logical CPU/GPU segments in the execution plan compiled for the latest output.
 
uint64_t getExecutionPlanBuildCount () const
 Return how many execution plans this graph instance has compiled.
 
int getMetricCount () const
 Returns the metric count.
 
std::string getMetricNodeId (int index) const
 Returns the metric node id.
 
int getMetricOutputCount (int index) const
 Returns the metric output count.
 
float getMetricMilliseconds (int index) const
 Returns the metric milliseconds.
 
bool isMetricCacheHit (int index) const
 True when metric cache hit.
 
std::string getMetricBackend (int index) const
 Return cpu, vulkan, or webgpu for one evaluated node.
 
std::string getComputeFallbackReason () const
 Return why the latest eligible GPU node used the CPU fallback.
 
uint64_t getComputeUploadCount () const
 Return successful point-compute uploads for this graph executor.
 
uint64_t getComputeDispatchCount () const
 Return successful point-compute dispatches for this graph executor.
 
uint64_t getComputeReadbackCount () const
 Return successful point-compute readbacks for this graph executor.
 
uint64_t getComputeBufferReuseCount () const
 Return executions that reused allocated point-compute buffers.
 
uint64_t getComputePeakBufferBytes () const
 Return peak bytes reserved in each reusable point-compute buffer.
 
int getLastFusedTransformCount () const
 Return logical transforms in the latest successful fused dispatch.
 
float getMetricMinX (int index) const
 Return cached output bounds for editor/debug visualization.
 
float getMetricMinY (int index) const
 Return the cached minimum output Y coordinate.
 
float getMetricMinZ (int index) const
 Return the cached minimum output Z coordinate.
 
float getMetricMaxX (int index) const
 Return the cached maximum output X coordinate.
 
float getMetricMaxY (int index) const
 Return the cached maximum output Y coordinate.
 
float getMetricMaxZ (int index) const
 Return the cached maximum output Z coordinate.
 
float getMetricAverageDensity (int index) const
 Return the mean point density of one node output.
 
PointSet * getNodeOutput (const std::string &id) const
 Copy the cached/debug output of a node after execution.
 
std::string debugReport () const
 Debug report.
 
std::string serializeDefinition () const
 Serialize graph topology, parameters and nested graphs.
 
bool deserializeDefinition (const std::string &definition)
 Transactionally replace this graph from serializeDefinition output.
 
PointGraph * instantiate () const
 Create an independent runtime instance without external inputs or overrides.
 

静态 Public 成员函数

static int getOperationCount ()
 Returns the operation count.
 
static std::string getOperationId (int index)
 Returns the operation id.
 
static int getOperationInputCount (const std::string &operation)
 Returns the operation input count.
 
static int getOperationParamCount (const std::string &operation)
 Returns the operation param count.
 
static std::string getOperationParamKey (const std::string &operation, int index)
 Returns the operation param key.
 
static std::string getOperationParamKind (const std::string &operation, int index)
 Returns the operation param kind.
 
static std::string getOperationParamDefault (const std::string &operation, int index)
 Returns the operation param default.
 

详细描述

EVENGINE_API_DOMAINS public API.

在文件 PointGraph.h 第 66 行定义.

构造及析构函数说明

◆ PointGraph()

eve::procgen::PointGraph::PointGraph ( )

Point graph.

在文件 PointGraph.cpp 第 171 行定义.

被这些函数引用 instantiate().

成员函数说明

◆ addNode()

bool eve::procgen::PointGraph::addNode ( const std::string &  id,
const std::string &  operation 
)

Add a node using one of the operations returned by operationAt().

在文件 PointGraph.cpp 第 173 行定义.

引用了 id , 以及 operation.

被这些函数引用 eve::procgen_editing::PcgPointGraphDomain::compile(), deserializeDefinition() , 以及 eve::procgen::exposePointGraph().

◆ clearBinding()

Result< void > eve::procgen::PointGraph::clearBinding ( const std::string &  name)

Remove one named binding.

在文件 PointGraph.cpp 第 296 行定义.

引用了 eve::Diagnostic::error(), eve::Result< T >::failure(), found, name, eve::NotFound , 以及 eve::Result< T >::success().

◆ clearBindings()

void eve::procgen::PointGraph::clearBindings ( )

Remove every named binding.

在文件 PointGraph.cpp 第 306 行定义.

◆ clearCache()

void eve::procgen::PointGraph::clearCache ( )

Clears cache.

在文件 PointGraph.cpp 第 643 行定义.

引用了 node.

被这些函数引用 eve::procgen::exposePointGraph(), setComputeMinimumPoints(), setComputePolicy() , 以及 setMaxNodeOutputPoints().

◆ clearParameterOverride()

bool eve::procgen::PointGraph::clearParameterOverride ( const std::string &  name)

Remove an instance override and restore the asset default.

在文件 PointGraph.cpp 第 542 行定义.

引用了 found, hasParameterOverride() , 以及 name.

被这些函数引用 eve::procgen::exposePointGraph().

◆ connect()

bool eve::procgen::PointGraph::connect ( const std::string &  fromId,
const std::string &  toId,
int  inputIndex = 0 
)

Connect an output to input slot 0 or 1. Replaces that input connection.

在文件 PointGraph.cpp 第 217 行定义.

引用了 from , 以及 to.

被这些函数引用 eve::procgen_editing::PcgPointGraphDomain::compile() , 以及 deserializeDefinition().

◆ debugReport()

std::string eve::procgen::PointGraph::debugReport ( ) const

Debug report.

在文件 PointGraph.cpp 第 717 行定义.

引用了 getCompiledSegmentCount().

被这些函数引用 eve::procgen::exposePointGraph().

◆ deserializeDefinition()

bool eve::procgen::PointGraph::deserializeDefinition ( const std::string &  definition)

◆ disconnect()

bool eve::procgen::PointGraph::disconnect ( const std::string &  toId,
int  inputIndex = 0 
)

Remove one input connection.

在文件 PointGraph.cpp 第 230 行定义.

引用了 to.

◆ execute()

PointSet * eve::procgen::PointGraph::execute ( const std::string &  outputId)

Compatibility-only projection of executeResult; caller deletes the result, nullptr means failure.

在文件 PointGraph.cpp 第 565 行定义.

引用了 executeResult().

被这些函数引用 eve::procgen::exposePointGraph().

◆ executeResult()

Result< PointSet > eve::procgen::PointGraph::executeResult ( std::string_view  outputId)

Evaluate an output and return an independent owning point snapshot.

参数
outputIdOutput node identity.
返回
Owning points or structured node/path diagnostics; failure publishes no output. @thread Graph-owning thread only; not reentrant. Successful intermediate caches may survive failure. @ownership The value and diagnostics remain valid after graph mutation or destruction.

在文件 PointGraph.cpp 第 572 行定义.

引用了 eve::Cancelled, eve::Diagnostic::error(), eve::Result< T >::failure(), output , 以及 eve::Result< T >::success().

被这些函数引用 execute().

◆ exposeParameter()

bool eve::procgen::PointGraph::exposeParameter ( const std::string &  name,
const std::string &  nodeId,
const std::string &  key 
)

Expose one reflected node parameter for per-instance overrides.

在文件 PointGraph.cpp 第 471 行定义.

引用了 binding, key, name, node , 以及 nodeId.

被这些函数引用 eve::procgen_editing::PcgPointGraphDomain::compile(), deserializeDefinition() , 以及 eve::procgen::exposePointGraph().

◆ getBindingCount()

int eve::procgen::PointGraph::getBindingCount ( ) const

Return the number of named bindings.

在文件 PointGraph.cpp 第 313 行定义.

◆ getBindingName()

std::string eve::procgen::PointGraph::getBindingName ( int  index) const

Return a binding name by stable insertion index.

在文件 PointGraph.cpp 第 315 行定义.

引用了 index.

◆ getBindingType()

std::string eve::procgen::PointGraph::getBindingType ( const std::string &  name) const

Return spatial, points, or empty when the name is unbound.

在文件 PointGraph.cpp 第 319 行定义.

引用了 found , 以及 name.

◆ getCacheHitCount()

int eve::procgen::PointGraph::getCacheHitCount ( ) const

Returns the cache hit count.

在文件 PointGraph.cpp 第 651 行定义.

被这些函数引用 eve::procgen::exposePointGraph().

◆ getCompiledSegmentCount()

int eve::procgen::PointGraph::getCompiledSegmentCount ( ) const

Return logical CPU/GPU segments in the execution plan compiled for the latest output.

返回
Segment count, or zero when no active valid plan exists. @thread Call on the graph-owning thread. @reentrant Not reentrant for this graph instance.

在文件 PointGraph.cpp 第 652 行定义.

被这些函数引用 debugReport() , 以及 eve::procgen::exposePointGraph().

◆ getComputeBufferReuseCount()

uint64_t eve::procgen::PointGraph::getComputeBufferReuseCount ( ) const

Return executions that reused allocated point-compute buffers.

在文件 PointGraph.cpp 第 675 行定义.

被这些函数引用 eve::procgen::exposePointGraph().

◆ getComputeDispatchCount()

uint64_t eve::procgen::PointGraph::getComputeDispatchCount ( ) const

Return successful point-compute dispatches for this graph executor.

在文件 PointGraph.cpp 第 673 行定义.

被这些函数引用 eve::procgen::exposePointGraph().

◆ getComputeFallbackReason()

std::string eve::procgen::PointGraph::getComputeFallbackReason ( ) const

Return why the latest eligible GPU node used the CPU fallback.

在文件 PointGraph.cpp 第 671 行定义.

被这些函数引用 eve::procgen::exposePointGraph().

◆ getComputeMinimumPoints()

int eve::procgen::PointGraph::getComputeMinimumPoints ( ) const

Return the minimum point count for automatic GPU dispatch.

在文件 PointGraph.cpp 第 619 行定义.

被这些函数引用 eve::procgen::exposePointGraph().

◆ getComputePeakBufferBytes()

uint64_t eve::procgen::PointGraph::getComputePeakBufferBytes ( ) const

Return peak bytes reserved in each reusable point-compute buffer.

在文件 PointGraph.cpp 第 676 行定义.

被这些函数引用 eve::procgen::exposePointGraph().

◆ getComputePolicy()

std::string eve::procgen::PointGraph::getComputePolicy ( ) const

Return the configured point compute policy.

在文件 PointGraph.cpp 第 612 行定义.

被这些函数引用 eve::procgen::exposePointGraph().

◆ getComputeReadbackCount()

uint64_t eve::procgen::PointGraph::getComputeReadbackCount ( ) const

Return successful point-compute readbacks for this graph executor.

在文件 PointGraph.cpp 第 674 行定义.

被这些函数引用 eve::procgen::exposePointGraph().

◆ getComputeUploadCount()

uint64_t eve::procgen::PointGraph::getComputeUploadCount ( ) const

Return successful point-compute uploads for this graph executor.

在文件 PointGraph.cpp 第 672 行定义.

被这些函数引用 eve::procgen::exposePointGraph().

◆ getError()

std::string eve::procgen::PointGraph::getError ( ) const

Render the last compatibility execute/validate or legacy authoring error; canonical Result calls do not update it.

在文件 PointGraph.cpp 第 642 行定义.

被这些函数引用 eve::procgen_editing::PcgPointGraphDomain::compile(), deserializeDefinition() , 以及 eve::procgen::exposePointGraph().

◆ getExecutionCount()

int eve::procgen::PointGraph::getExecutionCount ( ) const

Returns the execution count.

在文件 PointGraph.cpp 第 650 行定义.

被这些函数引用 eve::procgen::exposePointGraph().

◆ getExecutionNodeBudget()

int eve::procgen::PointGraph::getExecutionNodeBudget ( ) const

Returns the execution node budget.

在文件 PointGraph.cpp 第 597 行定义.

被这些函数引用 eve::procgen::exposePointGraph().

◆ getExecutionPlanBuildCount()

uint64_t eve::procgen::PointGraph::getExecutionPlanBuildCount ( ) const

Return how many execution plans this graph instance has compiled.

返回
Monotonic build count; parameter-only changes do not increase it. @thread Call on the graph-owning thread. @reentrant Not reentrant for this graph instance.

在文件 PointGraph.cpp 第 653 行定义.

被这些函数引用 eve::procgen::exposePointGraph().

◆ getInputNode()

std::string eve::procgen::PointGraph::getInputNode ( const std::string &  nodeId,
int  inputIndex 
) const

Returns the input node.

在文件 PointGraph.cpp 第 241 行定义.

引用了 found , 以及 nodeId.

被这些函数引用 eve::procgen::exposePointGraph().

◆ getLastFusedTransformCount()

int eve::procgen::PointGraph::getLastFusedTransformCount ( ) const

Return logical transforms in the latest successful fused dispatch.

在文件 PointGraph.cpp 第 677 行定义.

被这些函数引用 eve::procgen::exposePointGraph().

◆ getMaxNodeOutputPoints()

int eve::procgen::PointGraph::getMaxNodeOutputPoints ( ) const

Return the per-node point output limit; zero means unlimited.

在文件 PointGraph.cpp 第 604 行定义.

被这些函数引用 eve::procgen::exposePointGraph().

◆ getMetricAverageDensity()

float eve::procgen::PointGraph::getMetricAverageDensity ( int  index) const

Return the mean point density of one node output.

在文件 PointGraph.cpp 第 696 行定义.

引用了 index.

被这些函数引用 eve::procgen::exposePointGraph().

◆ getMetricBackend()

std::string eve::procgen::PointGraph::getMetricBackend ( int  index) const

Return cpu, vulkan, or webgpu for one evaluated node.

在文件 PointGraph.cpp 第 668 行定义.

引用了 index.

被这些函数引用 eve::procgen::exposePointGraph().

◆ getMetricCount()

int eve::procgen::PointGraph::getMetricCount ( ) const

Returns the metric count.

在文件 PointGraph.cpp 第 655 行定义.

被这些函数引用 eve::procgen::exposePointGraph().

◆ getMetricMaxX()

float eve::procgen::PointGraph::getMetricMaxX ( int  index) const

Return the cached maximum output X coordinate.

在文件 PointGraph.cpp 第 687 行定义.

引用了 index.

被这些函数引用 eve::procgen::exposePointGraph().

◆ getMetricMaxY()

float eve::procgen::PointGraph::getMetricMaxY ( int  index) const

Return the cached maximum output Y coordinate.

在文件 PointGraph.cpp 第 690 行定义.

引用了 index.

被这些函数引用 eve::procgen::exposePointGraph().

◆ getMetricMaxZ()

float eve::procgen::PointGraph::getMetricMaxZ ( int  index) const

Return the cached maximum output Z coordinate.

在文件 PointGraph.cpp 第 693 行定义.

引用了 index.

被这些函数引用 eve::procgen::exposePointGraph().

◆ getMetricMilliseconds()

float eve::procgen::PointGraph::getMetricMilliseconds ( int  index) const

Returns the metric milliseconds.

在文件 PointGraph.cpp 第 662 行定义.

引用了 index.

被这些函数引用 eve::procgen::exposePointGraph().

◆ getMetricMinX()

float eve::procgen::PointGraph::getMetricMinX ( int  index) const

Return cached output bounds for editor/debug visualization.

在文件 PointGraph.cpp 第 678 行定义.

引用了 index.

被这些函数引用 eve::procgen::exposePointGraph().

◆ getMetricMinY()

float eve::procgen::PointGraph::getMetricMinY ( int  index) const

Return the cached minimum output Y coordinate.

在文件 PointGraph.cpp 第 681 行定义.

引用了 index.

被这些函数引用 eve::procgen::exposePointGraph().

◆ getMetricMinZ()

float eve::procgen::PointGraph::getMetricMinZ ( int  index) const

Return the cached minimum output Z coordinate.

在文件 PointGraph.cpp 第 684 行定义.

引用了 index.

被这些函数引用 eve::procgen::exposePointGraph().

◆ getMetricNodeId()

std::string eve::procgen::PointGraph::getMetricNodeId ( int  index) const

Returns the metric node id.

在文件 PointGraph.cpp 第 656 行定义.

引用了 index.

被这些函数引用 eve::procgen::exposePointGraph().

◆ getMetricOutputCount()

int eve::procgen::PointGraph::getMetricOutputCount ( int  index) const

Returns the metric output count.

在文件 PointGraph.cpp 第 659 行定义.

引用了 index.

被这些函数引用 eve::procgen::exposePointGraph().

◆ getNodeCount()

int eve::procgen::PointGraph::getNodeCount ( ) const

Returns the node count.

在文件 PointGraph.cpp 第 208 行定义.

被这些函数引用 eve::procgen::exposePointGraph().

◆ getNodeId()

std::string eve::procgen::PointGraph::getNodeId ( int  index) const

Returns the node id.

在文件 PointGraph.cpp 第 209 行定义.

引用了 index.

被这些函数引用 eve::procgen::exposePointGraph().

◆ getNodeOperation()

std::string eve::procgen::PointGraph::getNodeOperation ( const std::string &  id) const

Returns the node operation.

在文件 PointGraph.cpp 第 212 行定义.

引用了 found.

被这些函数引用 eve::procgen::exposePointGraph().

◆ getNodeOutput()

PointSet * eve::procgen::PointGraph::getNodeOutput ( const std::string &  id) const

Copy the cached/debug output of a node after execution.

在文件 PointGraph.cpp 第 701 行定义.

被这些函数引用 eve::procgen::exposePointGraph().

◆ getOperationCount()

int eve::procgen::PointGraph::getOperationCount ( )
static

Returns the operation count.

在文件 PointGraph.cpp 第 729 行定义.

引用了 size.

被这些函数引用 eve::procgen::exposePointGraph().

◆ getOperationId()

std::string eve::procgen::PointGraph::getOperationId ( int  index)
static

Returns the operation id.

在文件 PointGraph.cpp 第 730 行定义.

引用了 index , 以及 size.

被这些函数引用 eve::procgen::exposePointGraph().

◆ getOperationInputCount()

int eve::procgen::PointGraph::getOperationInputCount ( const std::string &  operation)
static

Returns the operation input count.

在文件 PointGraph.cpp 第 735 行定义.

引用了 operation.

被这些函数引用 eve::procgen::exposePointGraph() , 以及 eve::procgen_editing::PcgPointGraphDomain::makeNode().

◆ getOperationParamCount()

int eve::procgen::PointGraph::getOperationParamCount ( const std::string &  operation)
static

Returns the operation param count.

在文件 PointGraph.cpp 第 739 行定义.

引用了 operation.

被这些函数引用 eve::procgen_editing::PcgPointGraphDomain::compile(), eve::procgen::exposePointGraph() , 以及 eve::procgen_editing::PcgPointGraphDomain::makeNode().

◆ getOperationParamDefault()

std::string eve::procgen::PointGraph::getOperationParamDefault ( const std::string &  operation,
int  index 
)
static

Returns the operation param default.

在文件 PointGraph.cpp 第 755 行定义.

引用了 index , 以及 operation.

被这些函数引用 eve::procgen::exposePointGraph() , 以及 eve::procgen_editing::PcgPointGraphDomain::makeNode().

◆ getOperationParamKey()

std::string eve::procgen::PointGraph::getOperationParamKey ( const std::string &  operation,
int  index 
)
static

Returns the operation param key.

在文件 PointGraph.cpp 第 743 行定义.

引用了 index , 以及 operation.

被这些函数引用 eve::procgen_editing::PcgPointGraphDomain::compile(), eve::procgen::exposePointGraph() , 以及 eve::procgen_editing::PcgPointGraphDomain::makeNode().

◆ getOperationParamKind()

std::string eve::procgen::PointGraph::getOperationParamKind ( const std::string &  operation,
int  index 
)
static

Returns the operation param kind.

在文件 PointGraph.cpp 第 749 行定义.

引用了 index , 以及 operation.

被这些函数引用 eve::procgen_editing::PcgPointGraphDomain::compile(), eve::procgen::exposePointGraph() , 以及 eve::procgen_editing::PcgPointGraphDomain::makeNode().

◆ getParameterCount()

int eve::procgen::PointGraph::getParameterCount ( ) const

Return the number of exposed graph parameters.

在文件 PointGraph.cpp 第 488 行定义.

被这些函数引用 eve::procgen::exposePointGraph().

◆ getParameterFloat()

float eve::procgen::PointGraph::getParameterFloat ( const std::string &  name,
float  fallback 
) const

Return the effective floating-point parameter value.

在文件 PointGraph.cpp 第 524 行定义.

引用了 found , 以及 name.

被这些函数引用 eve::procgen::exposePointGraph().

◆ getParameterInt()

int eve::procgen::PointGraph::getParameterInt ( const std::string &  name,
int  fallback 
) const

Return the effective integer or Boolean parameter value.

在文件 PointGraph.cpp 第 529 行定义.

引用了 found , 以及 name.

被这些函数引用 eve::procgen::exposePointGraph().

◆ getParameterKind()

std::string eve::procgen::PointGraph::getParameterKind ( const std::string &  name) const

Return the reflected kind of an exposed parameter.

在文件 PointGraph.cpp 第 493 行定义.

引用了 found , 以及 name.

被这些函数引用 eve::procgen::exposePointGraph().

◆ getParameterName()

std::string eve::procgen::PointGraph::getParameterName ( int  index) const

Return an exposed parameter name by stable insertion index.

在文件 PointGraph.cpp 第 489 行定义.

引用了 index.

被这些函数引用 eve::procgen::exposePointGraph().

◆ getParameterString()

std::string eve::procgen::PointGraph::getParameterString ( const std::string &  name,
const std::string &  fallback 
) const

Return the effective string parameter value.

在文件 PointGraph.cpp 第 536 行定义.

引用了 found , 以及 name.

被这些函数引用 eve::procgen::exposePointGraph().

◆ getRevision()

uint64_t eve::procgen::PointGraph::getRevision ( ) const

Monotonic topology/parameter revision used by asset and preview caches.

在文件 PointGraph.cpp 第 654 行定义.

被这些函数引用 eve::procgen::exposePointGraph().

◆ hasNode()

bool eve::procgen::PointGraph::hasNode ( const std::string &  id) const

True when node.

在文件 PointGraph.cpp 第 207 行定义.

被这些函数引用 eve::procgen::exposePointGraph().

◆ hasParameterOverride()

bool eve::procgen::PointGraph::hasParameterOverride ( const std::string &  name) const

Report whether an instance override is active.

在文件 PointGraph.cpp 第 497 行定义.

引用了 name.

被这些函数引用 clearParameterOverride() , 以及 eve::procgen::exposePointGraph().

◆ inspectNode()

Result< PointGraphInspectReport > eve::procgen::PointGraph::inspectNode ( const std::string &  id,
int  sampleLimit = 0 
) const

◆ instantiate()

PointGraph * eve::procgen::PointGraph::instantiate ( ) const

Create an independent runtime instance without external inputs or overrides.

在文件 PointGraphAsset.cpp 第 221 行定义.

引用了 PointGraph() , 以及 serializeDefinition().

被这些函数引用 eve::procgen::exposePointGraph().

◆ isMetricCacheHit()

bool eve::procgen::PointGraph::isMetricCacheHit ( int  index) const

True when metric cache hit.

在文件 PointGraph.cpp 第 665 行定义.

引用了 index.

被这些函数引用 eve::procgen::exposePointGraph().

◆ removeNode()

bool eve::procgen::PointGraph::removeNode ( const std::string &  id)

Remove a node and every edge that references it.

在文件 PointGraph.cpp 第 183 行定义.

引用了 binding, id, input , 以及 node.

被这些函数引用 eve::procgen::exposePointGraph().

◆ requestCancel()

void eve::procgen::PointGraph::requestCancel ( )

Cancel subsequent execution until resetCancellation is called.

在文件 PointGraph.cpp 第 620 行定义.

被这些函数引用 eve::procgen::exposePointGraph().

◆ resetCancellation()

void eve::procgen::PointGraph::resetCancellation ( )

Resets cancellation.

在文件 PointGraph.cpp 第 621 行定义.

被这些函数引用 eve::procgen::exposePointGraph().

◆ serializeDefinition()

std::string eve::procgen::PointGraph::serializeDefinition ( ) const

Serialize graph topology, parameters and nested graphs.

Runtime PointSet, SpatialData, BiomeRules and ShapeGrammar values are external slots and are not embedded; callers rebind them after loading.

在文件 PointGraphAsset.cpp 第 44 行定义.

引用了 input, key, name, node , 以及 value.

被这些函数引用 eve::procgen_editing::PcgPointGraphDomain::compile(), eve::procgen::exposePointGraph() , 以及 instantiate().

◆ setBindingPoints()

Result< void > eve::procgen::PointGraph::setBindingPoints ( const std::string &  name,
PointSet *  points 
)

Bind named PointSet for get.points / get.actor. External runtime slot: not serialized with serializeDefinition().

在文件 PointGraph.cpp 第 282 行定义.

引用了 binding, eve::Diagnostic::error(), eve::Result< T >::failure(), eve::InvalidArgument, name, points, eve::action::ActionVfxBinding::spatial , 以及 eve::Result< T >::success().

◆ setBindingSpatial()

Result< void > eve::procgen::PointGraph::setBindingSpatial ( const std::string &  name,
SpatialData *  spatial 
)

Bind named SpatialData for get.* / optional binding= parameters. External runtime slot: not serialized with serializeDefinition().

在文件 PointGraph.cpp 第 269 行定义.

引用了 binding, eve::Diagnostic::error(), eve::Result< T >::failure(), eve::InvalidArgument, name, eve::action::ActionVfxBinding::spatial, spatial , 以及 eve::Result< T >::success().

◆ setComputeMinimumPoints()

void eve::procgen::PointGraph::setComputeMinimumPoints ( int  points)

Set the minimum point count for auto GPU dispatch.

在文件 PointGraph.cpp 第 613 行定义.

引用了 clearCache() , 以及 points.

被这些函数引用 eve::procgen::exposePointGraph().

◆ setComputePolicy()

bool eve::procgen::PointGraph::setComputePolicy ( const std::string &  policy)

Select auto, gpu, or cpu point execution; GPU failures fall back to CPU.

在文件 PointGraph.cpp 第 605 行定义.

引用了 clearCache().

被这些函数引用 eve::procgen::exposePointGraph().

◆ setExecutionNodeBudget()

void eve::procgen::PointGraph::setExecutionNodeBudget ( int  nodes)

Limit uncached nodes evaluated by one execute call; zero disables the limit.

在文件 PointGraph.cpp 第 596 行定义.

引用了 nodes.

被这些函数引用 eve::procgen::exposePointGraph().

◆ setMaxNodeOutputPoints()

void eve::procgen::PointGraph::setMaxNodeOutputPoints ( int  points)

Limit points produced by any node; zero disables the limit.

在文件 PointGraph.cpp 第 598 行定义.

引用了 clearCache() , 以及 points.

被这些函数引用 eve::procgen::exposePointGraph().

◆ setNodeBiomeRules()

bool eve::procgen::PointGraph::setNodeBiomeRules ( const std::string &  id,
BiomeRules *  rules 
)

Assign copied biome rules to a biome.generate node.

在文件 PointGraph.cpp 第 420 行定义.

引用了 found.

被这些函数引用 eve::procgen::exposePointGraph().

◆ setNodeFloat()

bool eve::procgen::PointGraph::setNodeFloat ( const std::string &  id,
const std::string &  key,
float  value 
)

Sets the node float.

在文件 PointGraph.cpp 第 438 行定义.

引用了 found, key , 以及 value.

被这些函数引用 eve::procgen_editing::PcgPointGraphDomain::compile(), deserializeDefinition() , 以及 eve::procgen::exposePointGraph().

◆ setNodeInt()

bool eve::procgen::PointGraph::setNodeInt ( const std::string &  id,
const std::string &  key,
int  value 
)

Sets the node int.

在文件 PointGraph.cpp 第 448 行定义.

引用了 found, key , 以及 value.

被这些函数引用 eve::procgen_editing::PcgPointGraphDomain::compile(), deserializeDefinition() , 以及 eve::procgen::exposePointGraph().

◆ setNodePoints()

bool eve::procgen::PointGraph::setNodePoints ( const std::string &  id,
PointSet *  points 
)

Assign a copied PointSet to an input node.

在文件 PointGraph.cpp 第 248 行定义.

引用了 found, id , 以及 points.

被这些函数引用 eve::procgen::exposePointGraph().

◆ setNodeShapeGrammar()

bool eve::procgen::PointGraph::setNodeShapeGrammar ( const std::string &  id,
ShapeGrammar *  grammar 
)

Assign a copied shape grammar to a grammar.generate node.

在文件 PointGraph.cpp 第 429 行定义.

引用了 found.

被这些函数引用 eve::procgen::exposePointGraph().

◆ setNodeSpatial()

bool eve::procgen::PointGraph::setNodeSpatial ( const std::string &  id,
SpatialData *  spatial 
)

Assign copied spatial data to a spatial sample, filter, projection, or biome node.

在文件 PointGraph.cpp 第 261 行定义.

引用了 found , 以及 spatial.

被这些函数引用 eve::procgen::exposePointGraph().

◆ setNodeString()

bool eve::procgen::PointGraph::setNodeString ( const std::string &  id,
const std::string &  key,
const std::string &  value 
)

Sets the node string.

在文件 PointGraph.cpp 第 460 行定义.

引用了 found, key , 以及 value.

被这些函数引用 eve::procgen_editing::PcgPointGraphDomain::compile(), deserializeDefinition() , 以及 eve::procgen::exposePointGraph().

◆ setNodeSubgraph()

bool eve::procgen::PointGraph::setNodeSubgraph ( const std::string &  id,
PointGraph *  graph,
const std::string &  inputNode,
const std::string &  outputNode 
)

Assign an immutable nested graph.

参数
inputNodeNested input node receiving this node's first input.
outputNodeNested node returned by the subgraph.

在文件 PointGraph.cpp 第 552 行定义.

引用了 found , 以及 graph.

被这些函数引用 eve::procgen_editing::PcgPointGraphDomain::compile(), deserializeDefinition() , 以及 eve::procgen::exposePointGraph().

◆ setParameterFloat()

bool eve::procgen::PointGraph::setParameterFloat ( const std::string &  name,
float  value 
)

Override an exposed floating-point parameter for this graph instance.

在文件 PointGraph.cpp 第 501 行定义.

引用了 found, name , 以及 value.

被这些函数引用 eve::procgen::exposePointGraph().

◆ setParameterInt()

bool eve::procgen::PointGraph::setParameterInt ( const std::string &  name,
int  value 
)

Override an exposed integer or Boolean parameter for this graph instance.

在文件 PointGraph.cpp 第 508 行定义.

引用了 found, name , 以及 value.

被这些函数引用 eve::procgen::exposePointGraph().

◆ setParameterString()

bool eve::procgen::PointGraph::setParameterString ( const std::string &  name,
const std::string &  value 
)

Override an exposed string parameter for this graph instance.

在文件 PointGraph.cpp 第 517 行定义.

引用了 found, name , 以及 value.

被这些函数引用 eve::procgen::exposePointGraph().

◆ validate()

bool eve::procgen::PointGraph::validate ( )

Compatibility-only bool projection of validateResult; diagnostics are rendered by getError().

在文件 PointGraph.cpp 第 627 行定义.

引用了 validateResult().

被这些函数引用 eve::procgen::exposePointGraph().

◆ validateResult()

Result< void > eve::procgen::PointGraph::validateResult ( ) const

Validate configured nodes and nested graphs without executing them.

返回
Structured topology/configuration diagnostics, independent of getError(). @thread Graph-owning thread only; not reentrant. Does not mutate node results.

在文件 PointGraph.cpp 第 633 行定义.

引用了 eve::Result< T >::success().

被这些函数引用 validate().

◆ wasCancelled()

bool eve::procgen::PointGraph::wasCancelled ( ) const

Was cancelled.

在文件 PointGraph.cpp 第 625 行定义.

被这些函数引用 eve::procgen::exposePointGraph().


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