|
HDK
|
#include <network.h>
Classes | |
| class | EditMonitor |
Static Public Attributes | |
| static const int | AppendConnection = -1 |
Friends | |
| class | VdfNode |
| class | VdfIsolatedSubnetwork |
| class | VdfOutput |
| class | VdfSchedule |
A VdfNetwork is a collection of VdfNodes and their connections.
| VDF_API VdfNetwork::VdfNetwork | ( | ) |
Constructs an empty network.
| VDF_API VdfNetwork::~VdfNetwork | ( | ) |
Destructs the network and the nodes managed by it.
| VDF_API VdfConnection* VdfNetwork::Connect | ( | VdfOutput * | output, |
| VdfNode * | inputNode, | ||
| const TfToken & | inputName, | ||
| const VdfMask & | mask, | ||
| int | atIndex = AppendConnection |
||
| ) |
Connects the output to the given inputNode's input inputName with mask. If atIndex is >= 0 the connection will be placed at index atIndex on the target input. Otherwise it will be appened at the end.
| VDF_API VdfConnection* VdfNetwork::Connect | ( | const VdfMaskedOutput & | maskedOutput, |
| VdfNode * | inputNode, | ||
| const TfToken & | inputName, | ||
| int | atIndex = AppendConnection |
||
| ) |
Connects the maskedOutput to the given inputNode's input inputName. If atIndex is >= 0 the connection will be placed at index atIndex on the target input. Otherwise it will be appened at the end.
Deletes node from the network.
The node must have no inputs and no outputs connected.
Note: Calling Delete() may change the index VdfNetwork assigns to each VdfNode.
Returns true, if the node has been deleted.
| VDF_API void VdfNetwork::Disconnect | ( | VdfConnection * | connection | ) |
Deletes connection from the network.
Disconnects and deletes node.
Returns true, if the node has been deleted.
| VDF_API size_t VdfNetwork::DumpStats | ( | std::ostream & | os | ) | const |
Prints useful statistics about the network to os.
Returns the numer of nodes owned by this network.
|
inline |
|
inline |
Returns the node with id nodeId, if it exists.
Returns the non-const node with id nodeId, if it exists
|
inline |
Retrieves a debug name for a given node
|
inline |
|
inline |
| VDF_API VdfPoolChainIndex VdfNetwork::GetPoolChainIndex | ( | const VdfOutput & | output | ) | const |
Returns the pool chain index from the pool chain indexer.
|
inline |
Returns the current edit version of the network. The version will be updated every time the network topology changes.
Note, no assumptions shall be made about the absolute value returned from this function. It is merely guaranteed that if two version of the same VdfNetwork instance equal, no topological edits have been made!
| VDF_API void VdfNetwork::RegisterEditMonitor | ( | EditMonitor * | monitor | ) |
Registers an edit monitor for this network. The edit monitor needs to be persistent as long as the network is alive and will receive notifications for network edits.
| VDF_API void VdfNetwork::ReorderInputConnections | ( | VdfInput * | input, |
| const TfSpan< const VdfConnectionVector::size_type > & | newToOldIndices | ||
| ) |
Reorders all input connections for input according to the mapping defined by newToOldIndices.
| input | The input with the input connections to be reordered. |
| newToOldIndices | For each index i, newToOldIndices[i] is the old connection index and i is the desired new connection index. The number of indices given must be the same as the number of input connections, each index must be a valid connection index, and the indices must be unique. |
| VDF_API void VdfNetwork::UnregisterEditMonitor | ( | EditMonitor * | monitor | ) |
Unregisters an edit monitor for this network.
|
friend |
|
friend |
|
static |