![]() |
Murl Engine API
Version 2018.3
|
The ITemplate graph node interface. More...
#include <murl_graph_i_template.h>
The ITemplate graph node interface.
A template node stores the Resource::IGraphNode object it was created from, in order to be able to create Graph::IInstance nodes later on, which may directly source their sub-graph from the already existing graph by referencing this template. It is often cumbersome to always have to create an extra graph resource object within a package when it is desired to create multiple instances of a sub-graph. Using nodes implementing this interface, instantiation may also occur like this:
Public Member Functions | |
virtual INode * | GetNodeInterface ()=0 |
Get the mutable Graph::INode interface. More... | |
virtual const INode * | GetNodeInterface () const =0 |
Get the constant Graph::INode interface. More... | |
virtual Bool | SetResourceGraphNode (const Resource::IGraphNode *node)=0 |
Set the resource graph node from which to create template instances. More... | |
virtual const Resource::IGraphNode * | GetResourceGraphNode () const =0 |
Get the resource graph node from which to create template instances. More... | |
virtual const IAttributes * | GetUserParameters () const =0 |
Get the set of user-defined template parameters, if any are present. More... | |
|
pure virtual |
Get the mutable Graph::INode interface.
This method returns a mutable pointer to the node's Graph::INode interface, to be able to query or modify common node properties such as active state, visibility or ID.
|
pure virtual |
Get the constant Graph::INode interface.
This method returns a constant pointer to the node's Graph::INode interface, to be able to query common node properties such as active state, visibility or ID.
|
pure virtual |
Set the resource graph node from which to create template instances.
node | The resource graph node. |
|
pure virtual |
Get the resource graph node from which to create template instances.
|
pure virtual |
Get the set of user-defined template parameters, if any are present.