#include <nodetemplate.h>
NodeSystemBasedNodeTemplate is a NodeTemplate which is defined by a NodeSystem. NodesLib::CreateTemplateFromNodeSystem creates such a NodeTemplate. It uses the node system as a template which is modified according to the template arguments, for example it duplicates parts of the node system which belong to variadic port instances.
Public Member Functions | |
MAXON_METHOD Bool | IsProtected () const |
MAXON_METHOD Result< NodeSystem > | GetNodeSystem (const NodeSystemClass &cls, const AssetRepositoryRef &repo) const |
MAXON_METHOD const NodeSystemData & | GetNodeSystemData () const |
Private Member Functions | |
MAXON_INTERFACE (NodeSystemBasedNodeTemplateInterface, MAXON_REFERENCE_COPY_ON_WRITE, "net.maxon.node.interface.nodesystembasednodetemplate") | |
|
private |
MAXON_METHOD Bool IsProtected | ( | ) | const |
Checks if this template is a protected asset (so that the user can't see its inner setup).
MAXON_METHOD Result<NodeSystem> GetNodeSystem | ( | const NodeSystemClass & | cls, |
const AssetRepositoryRef & | repo | ||
) | const |
Returns the node system which is used as a template.
[in] | cls | The node system class to use. |
[in] | repo | The repository to use for asset lookup. |
MAXON_METHOD const NodeSystemData& GetNodeSystemData | ( | ) | const |
Returns the node system data which is used for the template.