Selecting a graph
Once you have added a new GraphContainer to the Workspace, the next step is to select the graph to be executed using the GraphContainer's setGraph()
method. The graph to be selected is designated by its full name, including its namespace. For example, the "curl_noise"
compound that is shipped with Bifrost belongs to the "Core::Randomization"
namespace, so its full name is "Core::Randomization::curl_noise"
.
The GraphContainer's onBeginSetGraph()
and onEndSetGraph()
notification methods will be called, respectively, immediately before and after selecting the new graph.