Script
List of all members
node Class Reference

Nodes are synonymous with Filter, IO, Move and Group Modules in the Network View. More...

#include <nodeinterface.h>

Inheritance diagram for node:
Inheritance graph
[legend]
Collaboration diagram for node:
Collaboration graph
[legend]

Public Slots

Node Data.
String root ()
 returns the name of the Top level in the network, which is "Top". More...
 
bool isGroup (String &node)
 returns a true or false value indicating if the module is a Group Module. More...
 
String getName (String &node)
 returns the name of a module More...
 
String type (String node)
 returns the module type. These are all of the built-in module types available from the Stage Module like: READ, COMPOSITE, PEG, QUADMAP, SHADOW, etc More...
 
int numberOfSubNodes (String &parent)
 returns an integer that indicates the number of modules contained in a group. More...
 
QScriptValue subNodes (String &parentGroup)
 return an array of sub nodes. More...
 
String subNode (String &parent, int iSubNode)
 returns the path of a module in a group. Modules are counted starting with zero More...
 
String subNodeByName (String &parent, String name)
 This function returns the full path name of a child node belonging to a parent group. This function will validate that the parent group exists and that the child node exists in that parent. This function should be used instead of manually concatenating the full path name of child nodes. More...
 
String parentNode (String &node)
 returns the path of the parent level of a module contained in a group More...
 
String noNode ()
 returns the null string that is returned by other functions when there is an error. More...
 
bool equals (String node1, String node2)
 returns true or false to indicate if a node path is equal to another. Used to compare node paths. More...
 
String getTextAttr (String node, double atFrame, String attrName)
 returns the value(s) of the module's selected attribute(s). More...
 
SCR_AttributeWrapper * getAttr (String node, double atFrame, String attrName)
 returns a SCR_AttributeWrapper object that represents the module's selected attribute(s). More...
 
QList< SCR_AttributeWrapper * > getAttrList (String node, double atFrame, String attrName=String::null)
 returns a list of SCR_AttributeWrapper objects in specified module or module complex attribute. More...
 
String linkedColumn (String node, String attrName)
 returns the name of the column that an attribute is linked to. If the attribute is not linked to a column, the function returns the null string. More...
 
virtual int coordX (String node)
 returns an integer indicating the X position of a module in the network More...
 
virtual int coordY (String node)
 returns an integer indicating the Y position of a module in the network More...
 
virtual int width (String node)
 returns the width of a given node. This width / height parameter is useful for computing the position of nodes in the Network view. It uses the same unit system as the coordX() and coordY() functions. More...
 
virtual int height (String node)
 returns the height of a given node. This width / height parameter is useful for computing the position of nodes in the Network view. It uses the same unit system as the coordX() and coordY() functions. More...
 
virtual bool setCoord (String node, int x, int y)
 sets the position of a module in the network. More...
 
int numberOfInputPorts (String node)
 the number of input ports on the module. More...
 
bool isLinked (String node, int iPort)
 returns true or false to indicate if a port is connected to another module. More...
 
String srcNode (String node, int iPort)
 returns the path for the module that the port is linked to. More...
 
String flatSrcNode (String node, int iPort)
 If the srcNode is a Group Module, this function returns the path of the module inside the Group Module that is the source. If the source is not inside a group, the flatSrcNode function behaves like the srcNode function. More...
 
QScriptValue srcNodeInfo (String &node, int iPort)
 returns the source node path, the port number and the link ID for this destination node is connected to. More...
 
int numberOfOutputPorts (String node)
 the number of output ports on a module. More...
 
int numberOfOutputLinks (String node, int iPort)
 the number of modules actually linked from the output ports. More...
 
String dstNode (String sourceNode, int iPort, int iLink)
 returns the path of the destination module linked to by the output port on the source module. More...
 
QScriptValue dstNodeInfo (String &node, int iPort, int iLink)
 return the path and addition information of the destination moduled linked to the source node. More...
 
bool groupAtNetworkBuilding (String node)
 returns true if the peg's groupAtNetworkBuilding attribute is true. More...
 
bool addCompositeToGroup (String node)
 returns the value of the "Add Composite To Group" attribute of the peg-module. This method is obsolete. More...
 
Node Editing
String add (String parentGroup, String name, String type, int x, int y, int z)
 adds a module to the network. More...
 
String getGroupInputModule (String parentGroup, String name, int x, int y, int z)
 Return existing or add a group multi port in module. More...
 
String getGroupOutputModule (String parentGroup, String name, int x, int y, int z)
 Return existing or add a group multi port out module. More...
 
bool deleteNode (String name, bool deleteTimedValues=false, bool deleteElements=false)
 Delete a single node. Optionally, delete all columns and element associated to that node. The column and element would only be removed when no other modules refer to them. This function returns true when successful. More...
 
String createGroup (String nodes, String groupName)
 Create a group from the selection of nodes. The list of nodes is a string where the nodes are separated by commas. The actual name of each node in the list of nodes must include the full path of that node. The function returns the full path of the created group, or an empty string if the creation of the node failed. More...
 
String moveToGroup (String nodeName, String groupName)
 moves the specified node within the specified group. Similar to performing a drag and drop of a node to a group from the timeline. More...
 
bool explodeGroup (String groupName)
 Explode a group into its parent group. This function is identical to the "Explode Selected Group" from the Network view. More...
 
bool rename (String node, String newName)
 changes the name of a module. More...
 
bool createDynamicAttr (String node, String type, String attrName, String displayName, bool linkable)
 create a new attribute in specified module. More...
 
bool removeDynamicAttr (String node, String attrName)
 remove a dynamic attribute in specified module. More...
 
bool setTextAttr (String node, String attrName, int atFrame, String attrValue)
 changes the value of an attribute in a module. More...
 
bool linkAttr (String node, String attrName, String columnName)
 links an attribute to a function column in the Xsheet View. More...
 
bool unlinkAttr (String node, String attrName)
 unlinks an attribute from a function column. More...
 
bool link (String srcNode, int srcPort, String dstNode, int dstPort)
 links a port on a module to a port on another module. More...
 
bool link (String srcNode, int srcPort, String dstNode, int dstPort, bool mayAddOutputPort, bool mayAddInputPort)
 links a port on a module to a port on another module. Fancy version that allow easier connecting to a group module, or setup the proper connection order. More...
 
bool unlink (String dstNode, int inPort)
 unlinks a port on one module from the port on another module. More...
 
bool setEnable (String node, bool flag)
 Setters and getters for the enable/disable property of a node. More...
 
bool getEnable (String node)
 returns whether a module is enabled or not. More...
 
bool setLocked (String node, bool lock)
 Setters and getters for the lock/unlock property of a node. More...
 
bool getLocked (String node)
 returns the lock flag More...
 
bool setTimelineTag (String node, bool lock)
 sets the timeline tag flag More...
 
bool getTimelineTag (String node)
 returns the timeline tag flag More...
 
StringList getTimelineTagList (String node=QNTR("Top"), StringList list=StringList())
 
bool setColor (String node, ColorRGBA *color)
 sets the node color More...
 
bool resetColor (String node)
 resets the node color More...
 
ColorRGBAgetColor (String node)
 returns the node color More...
 
bool setAsGlobalDisplay (String node)
 This function changes the global display used in the application. The node must be the full path of a display module. More...
 
bool setGlobalToDisplayAll ()
 This function changes the global display used by the application to "Display All" pseudo-display. More...
 
bool setAsDefaultCamera (String node)
 Setters and getters for the default camera. More...
 
String getDefaultCamera ()
 returns the name of the default camera. More...
 
StringList getCameras ()
 Returns a list of all cameras within the scene. More...
 
int getMaxVersionNumber (String node)
 
int getVersion (String node)
 
void setVersion (String node, int version)
 
StringList getNodes (StringList &types)
 Returns a collection of node paths for nodes of specified types. More...
 
QObject * getMatrix (String node, int frame)
 returns the model matrix of a node. More...
 
QObject * getPivot (String node, int frame)
 returns the pivot of the module More...
 
ColorOverridegetColorOverride (String node)
 returns the ColorOverride object for the colour override module More...
 
void explodeElementSymbolsInGroups (String element, bool disableElement, bool clearExposure, String &prefix=String())
 This function creates a group for each exposure of element elem where there is a symbol and will put the content of the symbol in that group. If disable element is TRUE, will disable the element afterwards. If clearExposure is TRUE, will clear the exposures where there were symbols afterwards. Will use prefix as the prefix for the generated group names. More...
 

Detailed Description

Nodes are synonymous with Filter, IO, Move and Group Modules in the Network View.

With Node functions, you can retrieve values from modules in your effects and compositing network. You can also use these functions to add and link modules in your network, and set their attributes.

Because there can be identical module names in the effects network, you must use the full path to identify a module. Similarly, when functions return module names, they often use the full path.

The syntax for module paths is:

Top/Group_Name/Module_Name

You can use it in Script Editor only.

The parentNode function in this script adds the Composite Module in the parent group of the selected modules. The link function, in a loop, connects all selected modules to the new Composite Module. The setCoord function positions the new module in the network.

function compose()
{
var n = election.numberOfNodesSelected();
var i, posx, posy;
if (n > 0)
{
var comp = node.add( node.parentNode(selection.selectedNode(0)), "comp", "COMPOSITE", 0, 0, 0);
posx = 0;
posy = -10000;
for (i = 0; i < n; ++i)
{
var selNode = selection.selectedNode(i);
node.link(selNode, 0, comp, i);
posx += node.coordX(selNode);
if (node.coordY(selNode) > posy)
posy = node.coordY(selNode);
}
posx /= n;
posy += 50;
node.setCoord(comp, posx, posy)
}

Member Function Documentation

String node::add ( String  parentGroup,
String  name,
String  type,
int  x,
int  y,
int  z 
)
slot

adds a module to the network.

Parameters
parent_group_pathThe path of the parent node into which you want to add this module
nameThe name of the module you will add.
typeThe type of module you will add. The module types are like: READ, COMPOSITE, PEG, QUADMAP, SHADOW, etc.
X: The X position of the module in the Network View.
Y: The Y position of the module in the Network View.
Z: The Z position of the module in the Network View. This property is important when two modules overlap
bool node::addCompositeToGroup ( String  node)
slot

returns the value of the "Add Composite To Group" attribute of the peg-module. This method is obsolete.

Parameters
nodethe path of the module
virtual int node::coordX ( String  node)
virtualslot

returns an integer indicating the X position of a module in the network

Parameters
nodethe path of the module
virtual int node::coordY ( String  node)
virtualslot

returns an integer indicating the Y position of a module in the network

Parameters
nodethe path of the module
bool node::createDynamicAttr ( String  node,
String  type,
String  attrName,
String  displayName,
bool  linkable 
)
slot

create a new attribute in specified module.

Parameters
nodethe name of the module.
typeType of attribute to create.
attrNameThe name of the attribute.
linkableLinkable status.
String node::createGroup ( String  nodes,
String  groupName 
)
slot

Create a group from the selection of nodes. The list of nodes is a string where the nodes are separated by commas. The actual name of each node in the list of nodes must include the full path of that node. The function returns the full path of the created group, or an empty string if the creation of the node failed.

The parent of the group is implicitly specified. It will be the same as the parent of the first node in the list.

Parameters
nodesThis a comma delimited list of names of nodes. ( node0,node1,node2)
groupNameThe name of the group to create. The actual group
bool node::deleteNode ( String  name,
bool  deleteTimedValues = false,
bool  deleteElements = false 
)
slot

Delete a single node. Optionally, delete all columns and element associated to that node. The column and element would only be removed when no other modules refer to them. This function returns true when successful.

Parameters
nodethe path of the module
deleteTimedValuesA boolean that indicates if the columns referenced by that node shall be removed if they are no longer in use.
deleteElementsA boolean that indicates if the element should also be removed, if they are no longer in use.
String node::dstNode ( String  sourceNode,
int  iPort,
int  iLink 
)
slot

returns the path of the destination module linked to by the output port on the source module.

Parameters
sourceNodethe path of the module
iPortThe port number on which you want to find the connected module. This value is between 0 and the results of the numberOfOutputPorts function.
iLinkThe link number whose destination module you want to find. This value is between 0 and the results of the numberOfInpuftLinks function.
QScriptValue node::dstNodeInfo ( String &  node,
int  iPort,
int  iLink 
)
slot

return the path and addition information of the destination moduled linked to the source node.

Parameters
sourceNode: the path of the source module.
iPortthe output port number on which you want to find the connected module. This value is between 0 and the results of numberOfOutputPorts().
iLinkthe link number whose destination module you want to find. This value is between 0 and the results of the numberOfInputLinks() function.

This function returns an object that contains two attributes node - the path to connected node. port - the port number on which this node is connected to.

bool node::equals ( String  node1,
String  node2 
)
slot

returns true or false to indicate if a node path is equal to another. Used to compare node paths.

Parameters
node1the path of the first module
node2the path of the second module
void node::explodeElementSymbolsInGroups ( String  element,
bool  disableElement,
bool  clearExposure,
String &  prefix = String() 
)
slot

This function creates a group for each exposure of element elem where there is a symbol and will put the content of the symbol in that group. If disable element is TRUE, will disable the element afterwards. If clearExposure is TRUE, will clear the exposures where there were symbols afterwards. Will use prefix as the prefix for the generated group names.

Parameters
bool node::explodeGroup ( String  groupName)
slot

Explode a group into its parent group. This function is identical to the "Explode Selected Group" from the Network view.

This function returns true if successful.

Parameters
nodethe name of the module
String node::flatSrcNode ( String  node,
int  iPort 
)
slot

If the srcNode is a Group Module, this function returns the path of the module inside the Group Module that is the source. If the source is not inside a group, the flatSrcNode function behaves like the srcNode function.

Parameters
nodethe path of the module
iPortthe port number on the destination module whose source module you want to find. This value is between 0 and the results of the numberOfInputPorts function.
SCR_AttributeWrapper* node::getAttr ( String  node,
double  atFrame,
String  attrName 
)
slot

returns a SCR_AttributeWrapper object that represents the module's selected attribute(s).

Parameters
nodethe path of the module
atFramethe frame number from which you want to extract the attribute value. If the value is static, you must still pass a value. You can, for example, pass 1 to take the value at the first frame.
attrNameThe attribute whose value you want.
QList<SCR_AttributeWrapper*> node::getAttrList ( String  node,
double  atFrame,
String  attrName = String::null 
)
slot

returns a list of SCR_AttributeWrapper objects in specified module or module complex attribute.

Parameters
nodethe path of the module
atFramethe frame number from which you want to extract the attribute value. If the value is static, you must still pass a value. You can, for example, pass 1 to take the value at the first frame.
attrNameThe container attribute or an empty string if you want all top level attributes.
StringList node::getCameras ( )
slot

Returns a list of all cameras within the scene.

ColorRGBA* node::getColor ( String  node)
slot

returns the node color

Parameters
nodethe name of the module.
ColorOverride* node::getColorOverride ( String  node)
slot

returns the ColorOverride object for the colour override module

Parameters
nodethe name of the module
Returns
ColorOverride object
String node::getDefaultCamera ( )
slot

returns the name of the default camera.

bool node::getEnable ( String  node)
slot

returns whether a module is enabled or not.

Parameters
nodethe name of the module
String node::getGroupInputModule ( String  parentGroup,
String  name,
int  x,
int  y,
int  z 
)
slot

Return existing or add a group multi port in module.

String node::getGroupOutputModule ( String  parentGroup,
String  name,
int  x,
int  y,
int  z 
)
slot

Return existing or add a group multi port out module.

bool node::getLocked ( String  node)
slot

returns the lock flag

Parameters
nodethe name of the module
QObject* node::getMatrix ( String  node,
int  frame 
)
slot

returns the model matrix of a node.

Parameters
nodethe name of the module
Frameis the int that specifies the frame number
int node::getMaxVersionNumber ( String  node)
slot

Returns the number of versions of the module available.

Parameters
node: the name of the module
String node::getName ( String &  node)
slot

returns the name of a module

Parameters
nodethe path of the module
StringList node::getNodes ( StringList &  types)
slot

Returns a collection of node paths for nodes of specified types.

Parameters
typeslist of node types to search for

Example usage:

var sl = ["READ", "WRITE", "COLOR_OVERRIDE_TVG"];
var nl = node.getNodes(sl);
for (var i = 0; i < nl.length; ++i)
{
var path = nl[[i];
if (node.type(path) == "COLOR_OVERRIDE_TVG")
{
System.println("Colour Override: " + node.getName(path));
var conode = node.getColorOverride(path);
}
else if (node.type(path) == "READ")
{
System.println("Read: " + node.getName(path));
}
else if (node.type(path) == "WRITE")
{
System.println("Write: " + node.getName(path));
}
}
QObject* node::getPivot ( String  node,
int  frame 
)
slot

returns the pivot of the module

Parameters
nodethe name of the module
frameis the int that specified the frame number
Returns
3d point
String node::getTextAttr ( String  node,
double  atFrame,
String  attrName 
)
slot

returns the value(s) of the module's selected attribute(s).

Parameters
nodethe path of the module
atFramethe frame number from which you want to extract the attribute value. If the value is static, you must still pass a value. You can, for example, pass 1 to take the value at the first frame.
attrNameThe attribute whose value you want.

Use the attribute PALETTES.NUMBER to return the number of palettes in the colour override module's palette list. Use the attribute PALETTES.x to return the palette at index x from the colour override module's palette list. x is a number between 0 and the number of palettes in the list, minus one. If x is not given (argument is "PALETTES") or x is not valid (< 0 or out of range) then 0 is assumed.

bool node::getTimelineTag ( String  node)
slot

returns the timeline tag flag

Parameters
nodethe name of the module
StringList node::getTimelineTagList ( String  node = QNTR("Top"),
StringList  list = StringList() 
)
slot
int node::getVersion ( String  node)
slot

Returns the current version of the module. Module may have multiple versions if their rendering output have changed over time.

Parameters
nodethe name of the module
bool node::groupAtNetworkBuilding ( String  node)
slot

returns true if the peg's groupAtNetworkBuilding attribute is true.

Parameters
nodethe path of the module
virtual int node::height ( String  node)
virtualslot

returns the height of a given node. This width / height parameter is useful for computing the position of nodes in the Network view. It uses the same unit system as the coordX() and coordY() functions.

Parameters
nodethe path of the module
bool node::isGroup ( String &  node)
slot

returns a true or false value indicating if the module is a Group Module.

Parameters
nodethe path of the module
bool node::isLinked ( String  node,
int  iPort 
)
slot

returns true or false to indicate if a port is connected to another module.

Parameters
nodethe path of the module
iPortThe number of the port whose link status you want to check. This value is between 0 and the results of the numberOfInputPorts function.
bool node::link ( String  srcNode,
int  srcPort,
String  dstNode,
int  dstPort 
)
slot

links a port on a module to a port on another module.

Parameters
srcNode: The path of the module whose output port you want to link to a destination module.
srcPortThe port that you want to link to the input port on the destination module. This value is between 0 and the results of the numberOfOutputPorts function.
dstNodeThe path of the module whose input port you want to link to the source module.
dstPortThe port on the destination module that you want to link to the output port from the source module. This value is between 0 and the results of the numberOfInputPorts function.
bool node::link ( String  srcNode,
int  srcPort,
String  dstNode,
int  dstPort,
bool  mayAddOutputPort,
bool  mayAddInputPort 
)
slot

links a port on a module to a port on another module. Fancy version that allow easier connecting to a group module, or setup the proper connection order.

Parameters
srcNode: The path of the module whose output port you want to link to a destination module.
srcPortThe port that you want to link to the input port on the destination module. This value is between 0 and the results of the numberOfOutputPorts function.
dstNodeThe path of the module whose input port you want to link to the source module.
dstPortThe port on the destination module that you want to link to the output port from the source module. This value is between 0 and the results of the numberOfInputPorts function.
mayAddOutputPortused by group multiport modules - automatically create a new output port for these modules.
mayAddInputPortused by group multiport and composite - automatically create input ports for these modules.
bool node::linkAttr ( String  node,
String  attrName,
String  columnName 
)
slot

links an attribute to a function column in the Xsheet View.

Parameters
nodethe name of the module
attrNameThe name of the attribute
columnNameThe name of the column that you want to link to the attribute
String node::linkedColumn ( String  node,
String  attrName 
)
slot

returns the name of the column that an attribute is linked to. If the attribute is not linked to a column, the function returns the null string.

Parameters
nodethe path of the module
attrNameThe attribute you want to check to see if it is linked to a column
String node::moveToGroup ( String  nodeName,
String  groupName 
)
slot

moves the specified node within the specified group. Similar to performing a drag and drop of a node to a group from the timeline.

Parameters
nodeNamethe name of the module
group_pathThe path of the group.
String node::noNode ( )
slot

returns the null string that is returned by other functions when there is an error.

int node::numberOfInputPorts ( String  node)
slot

the number of input ports on the module.

Parameters
nodethe path of the module
int node::numberOfOutputLinks ( String  node,
int  iPort 
)
slot

the number of modules actually linked from the output ports.

Parameters
nodethe path of the module
iPortThe port number on which you want to locate the module that is connected to it. This value is between 0 and the results of the numberOfInputPorts function.
int node::numberOfOutputPorts ( String  node)
slot

the number of output ports on a module.

Parameters
nodethe path of the module
int node::numberOfSubNodes ( String &  parent)
slot

returns an integer that indicates the number of modules contained in a group.

Parameters
parentthe path of the parent module
String node::parentNode ( String &  node)
slot

returns the path of the parent level of a module contained in a group

Parameters
nodethe path of the module
bool node::removeDynamicAttr ( String  node,
String  attrName 
)
slot

remove a dynamic attribute in specified module.

Parameters
nodethe name of the module.
attrNamethe name of the attribute.
bool node::rename ( String  node,
String  newName 
)
slot

changes the name of a module.

Parameters
nodethe name of the module
newNameThe new name for the module.
bool node::resetColor ( String  node)
slot

resets the node color

Parameters
nodeThe name of the module.
String node::root ( )
slot

returns the name of the Top level in the network, which is "Top".

bool node::setAsDefaultCamera ( String  node)
slot

Setters and getters for the default camera.

sets the default camera in the scene. Returns whether successful or not.

Parameters
nodethe name of the camera
bool node::setAsGlobalDisplay ( String  node)
slot

This function changes the global display used in the application. The node must be the full path of a display module.

This function returns true if successful. It returns false if the display node was not found or an invalid name was provided.

Parameters
nodeThe full path of a display node
bool node::setColor ( String  node,
ColorRGBA color 
)
slot

sets the node color

Parameters
nodeThe name of the module.
colorThe new color set for the module.
virtual bool node::setCoord ( String  node,
int  x,
int  y 
)
virtualslot

sets the position of a module in the network.

Parameters
nodethe path of the module
XThe X position of the module in the Network View
YThe Y position of the module in the Network View
bool node::setEnable ( String  node,
bool  flag 
)
slot

Setters and getters for the enable/disable property of a node.

sets the enable flag of the node.

Parameters
nodethe name of the module
flag: true or false
bool node::setGlobalToDisplayAll ( )
slot

This function changes the global display used by the application to "Display All" pseudo-display.

This function returns true if successful.

bool node::setLocked ( String  node,
bool  lock 
)
slot

Setters and getters for the lock/unlock property of a node.

sets the lock flag

Parameters
nodethe name of the module
bool node::setTextAttr ( String  node,
String  attrName,
int  atFrame,
String  attrValue 
)
slot

changes the value of an attribute in a module.

Additions specific to the Colour Override module: Use the attribute PALETTES.CLEAR to clear the palette list in the colour override module. Use the attribute PALETTES.ADD to add a palette to the palette list of the colour override module. Use the attribute PALETTES.REMOVE to remove a palette from the palette list of the colour override module.

Parameters
nodethe name of the module
attrNameThe name of the attribute whose value you want to change.
atFramethe frame number at which you set the value.
attrValue: new value
bool node::setTimelineTag ( String  node,
bool  lock 
)
slot

sets the timeline tag flag

Parameters
nodethe name of the module
tag: new tag state of the module.
void node::setVersion ( String  node,
int  version 
)
slot

Set the version of the module to use.

Parameters
nodethe name of the module
String node::srcNode ( String  node,
int  iPort 
)
slot

returns the path for the module that the port is linked to.

Parameters
nodethe path of the module
iPorthe port number on the destination module whose source module you want to find. This value is between 0 and the results of the numberOfInputPorts function.
QScriptValue node::srcNodeInfo ( String &  node,
int  iPort 
)
slot

returns the source node path, the port number and the link ID for this destination node is connected to.

Parameters
nodethe path to the source node (module).
iPortthie port number of which you want to locage the module that is connected to it. This value is between 0 and the result of 'numberOfInputPorts()' function.

This function is similar to srcNode(), however, it returns an object that contains 3 attribute. node - the path of the source node this destination node is linked to. This is the same value as the value returned by 'srcNode()'. port - this is the output port number in the source node that this destination node is connected to. link - this is the link number in the output port of the source node for this connection.

String node::subNode ( String &  parent,
int  iSubNode 
)
slot

returns the path of a module in a group. Modules are counted starting with zero

Parameters
parentthe path of the parent module
iSubNodeAn integer representing the numerical value of the module. This value must be between 0 and the numberOfSubNodes function for that point.
String node::subNodeByName ( String &  parent,
String  name 
)
slot

This function returns the full path name of a child node belonging to a parent group. This function will validate that the parent group exists and that the child node exists in that parent. This function should be used instead of manually concatenating the full path name of child nodes.

Parameters
parentFully qualified path of the parent group.
nameThe actual node name suffix. This one is only the short name, not the full path of the node
QScriptValue node::subNodes ( String &  parentGroup)
slot

return an array of sub nodes.

Parameters
parentthe path of the parent module
String node::type ( String  node)
slot

returns the module type. These are all of the built-in module types available from the Stage Module like: READ, COMPOSITE, PEG, QUADMAP, SHADOW, etc

Parameters
nodethe path of the module
bool node::unlink ( String  dstNode,
int  inPort 
)
slot

unlinks a port on one module from the port on another module.

Parameters
dstNodeThe path of the module whose input port you want to unlink from the source module.
inPortThe input port that you want to unlink. This value is between 0 and the results of the numberOfInputPorts function.
bool node::unlinkAttr ( String  node,
String  attrName 
)
slot

unlinks an attribute from a function column.

Parameters
nodethe name of the module
attrNameThe name of the attribute that you want to unlink.
virtual int node::width ( String  node)
virtualslot

returns the width of a given node. This width / height parameter is useful for computing the position of nodes in the Network view. It uses the same unit system as the coordX() and coordY() functions.

Parameters
nodethe path of the module

The documentation for this class was generated from the following file: