#include <nodesgraph_helpers.h>
◆ MAXON_INTERFACE_NONVIRTUAL()
◆ SetOriginal() [1/2]
static MAXON_METHOD Result<void> SetOriginal |
( |
const nodes::NodesGraphModelRef & |
graph, |
|
|
const nodes::NodesGraphModelRef & |
orig |
|
) |
| |
|
static |
Sets the original graph of a graph clone. This method has to be called for clones for previews or renderings so that compiler messages can be passed to the original (which is the one the user edits).
- Parameters
-
[in] | graph | Clone of orig. |
[in] | orig | Original user-accessible graph. |
◆ SetOriginal() [2/2]
Sets the original graph of a graph clone. This method has to be called for clones for previews or renderings so that compiler messages can be passed to the original (which is the one the user edits).
- Parameters
-
[in] | graph | The mutable clone of orig. |
[in] | orig | Original user-accessible graph. |
◆ GetOriginal()
static MAXON_METHOD Result<nodes::NodesGraphModelRef> GetOriginal |
( |
const nodes::NodesGraphModelRef & |
graph | ) |
|
|
static |
Returns the original graph of a graph clone.
- Parameters
-
- Returns
- Original user-accessible graph.
◆ GetOriginalModificationStamp()
Returns the modification stamp of the graph when it was cloned.
- Parameters
-
- Returns
- The original TimeStamp.
◆ FindNodesBasedOnAssetId()
Finds all nodes child of #startNode which are based on a specific node asset. Goal is the same as GraphModelHelper::FindNodesByAssetId, but accounting for multiple or nested base assets.
- See also
- GraphModelHelper::FindNodesByAssetId.
- Parameters
-
[in] | startNode | The search starting point in the graph. Can be the root node to search a whole graph. |
[in] | assetId | The asset identifier to search for. |
[in] | recv | The callback to process matches. |
- Returns
- Result from #recv.