NAME

Rivl_AddNode - add a new node and outgoing signal to the graph

SYNOPSIS

#include <rivl.h>
Rivl_Signal
Rivl_AddNode (interp, classPtr, inSignals, inputCount, idStr, newPtr)

ARGUMENTS

Tcl_Interp *interp (in)
The Tcl interpreter.
Rivl_NodeClass *classPtr (in)
A pointer to the information structure of the new node's class.
Rivl_Signal *inSignals (in)
An array of input signals to attach the node to.
int inputCount (in)
The number of elements in inSignals.
char *idStr (in)
Use NULL.
int *newPtr (in)
Use NULL.

DESCRIPTION

Rivl_AddNode creates and adds a new node and a new outgoing signal to the global graph. classPtr is a pointer to a Rivl_NodeClass structure indicating the new node's class. inSignals points to an array containing the input signals of the new node, and inputCount gives the number of inputs in the array. The last two arguments are reserved for future use and should be NULL for now.

The new outgoing signal is returned. The properties of the new signal are initialized to their default values.