#include <graph_helper.h>
Private Member Functions | |
MAXON_INTERFACE_NONVIRTUAL (GraphModelHelper, MAXON_REFERENCE_STATIC, "net.maxon.graph.interface.graphmodelhelper") | |
|
private |
|
static |
Retrieves the first level of nodes or ports connected to the passed port or node. This will only retrieve nodes or ports that are connected to the inputs.
[in] | node | The starting point to retrieve the direct predecessors. A node or a port can be used. If a port is used, an input port must be used. |
[in] | filter | The NODE_KIND that will be included. The function search for all possible nodes or ports and will include them or not based on this filter. |
[out] | callback | The callback that will receive all connected nodes. |
|
static |
Retrieves all nodes or ports connected to the passed port or node. This will only retrieve nodes or ports that are connected to the inputs.
[in] | node | The starting point to retrieve all the predecessor. A node or a port can be used. If a port is used, an input port must be used. |
[in] | filter | The NODE_KIND that will be included. The function search for all possible nodes or ports and will include them or not based on this filter. |
[out] | callback | The callback that will receive all connected nodes. |
|
static |
Retrieves the first level of nodes or ports connected to the passed port or node. This will only retrieve nodes or ports that are connected to the outputs.
[in] | node | The starting point to retrieve the direct successors. A node or a port can be used. If a port is used, an output port must be used. |
[in] | filter | The NODE_KIND that will be included. The function search for all possible nodes or ports and will include them or not based on this filter. |
[out] | callback | The callback that will receive all connected nodes. |
|
static |
Retrieves all nodes or ports connected to the passed port or node. This will only retrieve nodes or ports that are connected to the outputs.
[in] | node | The starting point to retrieve all the successors. A node or a port can be used. If a port is used, an output port must be used. |
[in] | filter | The NODE_KIND that will be included. The function search for all possible nodes or ports and will include them or not based on this filter. |
[out] | callback | The callback that will receive all connected nodes. |
|
static |
Mutes the connection between a node or port and another port. If a true node is passed, and the port is connected to one or several input port, all the connections will be muted between the port and the node. For example, a constant port is connected to several input port of another node.
[in] | srcNode | The node to mute the connection with. |
[in] | dstPort | The other port the connection must be muted. |
|
static |
Mutes all incoming or outgoing connections of a node depending on the specified direction
[in] | node | The true node to mute all the connections. |
[in] | direction | The direction where all connection will be muted. |
|
static |
Unmutes the connection between a node or port and another port. If a true node is passed, depending of the port passed direction, every output or every input will be unmuted.
[in] | srcNode | The node to unmute the connection with. |
[in] | dstPort | The other port that the connection must be Unmuted. |
|
static |
Unmutes all the connections in one direction.
[in] | node | The node to unmute the connection. |
[in] | direction | The direction where all connection will be Unmuted. |
|
static |
Removes all the connection a true node have. The node should be a true node. To remove connection for a port, use maxon::GraphNodeFunctions::RemoveConnections()
[in] | node | The node to remove all the connections to. |
|
static |
Removes the connections between two ports.
[in] | srcPort | The source's port. |
[in] | dstPort | The destination's port. |
|
static |
Selects the connection between two ports.
[in] | srcPort | The connection's source port. |
[in] | dstPort | The connection's destination port. |
|
static |
Deselects the connection between two ports. A connection hold a Wire object. There is at most one connection between two port, but this connection is composed by 8 wires.
[in] | srcPort | The connection's source port. |
[in] | dstPort | The connection's destination port. |
|
static |
Retrieves all the selected connections on the graph. A connection hold a Wire object. There is none or only one connection between two ports, and this connection is composed by multiple wires.
[in] | graphModel | The GraphModelRef to retrieve the GraphNode from the path. |
[out] | callback | This callback will receive the source and destination ports and the wires itself. |
|
static |
Selects a node or a port.
[in] | node | The node or the port that have to be selected. |
|
static |
Deselects a node or a port.
[in] | node | The node or the port that have to be Deselected. |
|
static |
Returns all nodes in a graph which match the given collection of attribute values.
Only nodes that match all attribute values in #matchingData will be yielded. The mask must contain at least one attribute value to match, otherwise no nodes are yielded.
[in] | graphModel | The GraphModelRef to list the node. |
[in] | matchingData | The Dictionary filled with the data we want to compare the GraphNode with. |
[out] | callback | This callback will receive all nodes founded that have the same data values than those passed within the Dictionary |
|
static |
Checks if a connection between two port is selected. A connection hold a Wire object. There is at most one connection between two port, but this connection is composed by 8 wires. If a GraphNode is passed instead a NodePath, the GraphNode will be converted to NodePath.
[in] | srcPort | The connection's source port. |
[in] | dstPort | The connection's destination port. |
|
static |
Retrieves all selected ports and/or true node on the graph depending on the NODE_KIND passed as argument.
[in] | graphModel | The GraphModelRef to retrieve the selected elements. |
[in] | kind | The GraphNode kind to check. |
[out] | callback | This callback will receive all selected ports and/or true node. |
|
static |
Deselect all true nodes and ports based on the NODE_KIND passed as parameter.
[in] | graphModel | The GraphModelRef to deselect elements. |
[in] | kind | The GraphNode's kind that will be deselected. |
|
static |
Checks if this node or port is connected to another port. If a true node is passed, every port on the node will be tested. If a port is passed, only the passed port will be tested.
[in] | srcNode | The node to check the connection with. |
[in] | dstPort | The port to check the connection with. |
|
static |
Returns if the node or the port is selected or not.
[in] | node | The Node or the Port to check. |
|
static |
Find all GraphNode (true nodes or ports) that have the same name as the passed argument. This function will return several nodes/port if they share the same name.
[in] | graphModel | The GraphModelRef to search for the nodes. |
[in] | nodeName | The name of the true node or the port to look for. |
[in] | kind | Filter that will be applied to the kind of GraphNode we are looking for. By default, All type (true node/ports) |
[in] | direction | Filter the GraphNode by direction. Input or Output. By default INPUT. |
[in] | exactName | Set true if the exact name should be search. If this is set to false, check if the passed name is contained in the GraphNode's name. |
[out] | callback | This callback will receive all ports and/or true node that have the same name. |
|
static |
Find all GraphNode (true nodes or ports) that have the same id as the passed argument. This function will return several nodes/port if they share the same id.
[in] | graphModel | The GraphModelRef to search for the nodes. |
[in] | nodeId | The id of the true node or the port to look for. |
[in] | kind | Filter that will be applied to the kind of GraphNode we are looking for. By default, All type (true node/ports) |
[in] | direction | Filter the GraphNode by direction. Input or Output. By default INPUT. |
[in] | exactId | Set true if the exact id should be search. If this is set to false, check if the passed id is contained in the GraphNode's id. |
[out] | callback | This callback will receive all ports and/or true node that have the same name. |
|
static |
Find all true nodes that have the same AssetId as the passed argument. Only nodes have assetId. This function will return several nodes if they share the same assetId.
[in] | graphModel | The GraphModelRef to search for the nodes. |
[in] | assetId | The AssetId of the true node or the port to look for. This have the form of a reversed domain string. e.g "net.maxon.asset.utility.color" |
[in] | exactId | Set true if the exact id should be search. If this is set to false, check if the passed id is contained in the node assetID. |
[out] | callback | This callback will receive all ports and/or true node that have the same name. |
|
static |
Creates and returns a new OutputPort. The port will be identify by the passed id and will be rename with the passed string. This new port can only be created on the root or any group node.
[in] | dstNode | The node where to create the output port. |
[in] | portId | The id of the port that need to be created. |
[in] | portName | The name of the port that need to be created. |
|
static |
Creates and returns a new InputPort. The port will be identify by the passed id and will be rename with the passed string. This new port can only be created on the root or any group node.
[in] | dstNode | The node where to create the input port. |
[in] | portId | The id of the port that need to be created. |
[in] | portName | The name of the port that need to be created. |