|
HDK
|
#include <UN_Port.h>
Inheritance diagram for UN_Port:Public Member Functions | |
| UN_Port ()=default | |
| Constructs a handle for an invalid node. More... | |
| UN_Port (UN_GraphData *graph_data, UN_PortID node_id) | |
| Constructs a handle referencing the given node in the given graph. More... | |
| UN_Graph | graph () const |
| Returns the graph whithin which this port exists. More... | |
| UN_Node | node () const |
| Returns the node to which this port belongs. More... | |
| void | setName (const UT_StringRef &name) const |
| Sets the port name that identifies it on the node. More... | |
| void | setLabel (const UT_StringRef &label) const |
| Sets the port label. More... | |
| void | setTags (const UT_StringArray &tags) const |
| Sets the tags for the port (copy-assignment). More... | |
| void | setTags (UT_StringArray &&tags) const |
| Sets the tags for the port (move-assignment). More... | |
| UT_StringArray | stealTags () const |
| template<typename OP > | |
| void | updateTags (const OP &op) const |
| UN_Wire | connectSrcPort (const UN_Port &src_port) const |
| UN_Wire | connectDstPort (const UN_Port &dst_port) const |
| void | destroy () const |
| Deletes this port from the graph. More... | |
| bool | operator== (const UN_Port &other) const |
| Comparison operators. More... | |
| bool | operator!= (const UN_Port &other) const |
| Comparison operators. More... | |
Public Member Functions inherited from UN_PortBase< UN_Handle, UN_GraphData, UN_Port, UN_Wire > | |
| UN_PortID | portID () const |
| Returns the unique ID of the port this handle refers to. More... | |
| UN_PortKind | kind () const |
| Returns the kind of a port. Ie, an input or an output. More... | |
| bool | isInput () const |
| bool | isOutput () const |
| const UT_StringHolder & | name () const |
| Returns the port name that identifies it on the node. More... | |
| const UT_StringHolder & | typeName () const |
| Returns the port's type that determines the connection compatibility. More... | |
| const UT_StringHolder & | label () const |
| Returns the port's label. More... | |
| const UT_StringArray & | tags () const |
| Returns the port's tags. More... | |
| UN_DataSize | srcWireCount () const |
| Returns the number of source ports connected to the given port. More... | |
| UN_DataSize | dstWireCount () const |
| Returns the number of destination ports connected to the given port. More... | |
| UN_DataSize | wireCount () const |
| bool | isConnectedToSrc () const |
| Returns true if this port is connected to any source port. More... | |
| bool | isConnectedToSrc (const UN_ConstPort &src_port) const |
| Returns true if this port is connected to the given source port. More... | |
| bool | isConnectedToDst () const |
| Returns true if this port is connected to any destination port. More... | |
| bool | isConnectedToDst (const UN_ConstPort &dst_port) const |
| Returns true if this port is connected to the given destination port. More... | |
| bool | isConnected () const |
| Returns true if this port is connected to any other port. More... | |
| bool | isConnected (const UN_ConstPort &port) const |
| SrcWireRange | srcWireRange () const |
| DstWireRange | dstWireRange () const |
| UT_Array< UN_Wire > | srcWires () const |
| UT_Array< UN_Wire > | dstWires () const |
| SrcPortRange | srcPortRange () const |
| DstPortRange | dstPortRange () const |
| UN_Port | srcPort () const |
| UN_Port | dstPort () const |
| UT_Array< UN_Port > | srcPorts () const |
| UT_Array< UN_Port > | dstPorts () const |
| UN_GraphData * | graphData () const |
| Returns the owner of the underlying graph data structures. More... | |
| const UN_GraphData * | constGraphData () const |
| Returns the owner of the underlying graph data structures. More... | |
| bool | isValid () const |
| Returns true if this port is valid within the graph; false otherwise. More... | |
| operator bool () const | |
| Returns true if this port is valid within the graph; false otherwise. More... | |
Public Member Functions inherited from UN_Handle | |
| UN_Handle () | |
| Constructs a reference handle for an invalid entity in the graph. More... | |
| UN_Handle (UN_GraphData *graph_data, UN_DataID data_id) | |
| Constructs reference handle to the data for a given entity in the graph. More... | |
| UN_GraphData * | graphData () const |
| Returns the graph that owns, manages, and operates on the data object. More... | |
| const UN_GraphData * | constGraphData () const |
| Returns the graph that owns, manages, and operates on the data object. More... | |
Public Member Functions inherited from UN_ConstHandle | |
| UN_ConstHandle () | |
| Constructs a reference handle for an invalid entity in the graph. More... | |
| UN_ConstHandle (const UN_GraphData *graph_data, UN_DataID data_id) | |
| Constructs reference handle to the data for a given entity in the graph. More... | |
| UN_DataID | dataID () const |
| const UN_GraphData * | graphData () const |
| Returns the underlying graph data object. More... | |
| const UN_GraphData * | constGraphData () const |
| Returns the underlying graph data object. More... | |
A handle that references a mutable port in a graph. It abstracts the APIs that operate on this port's data, which is stored inside graph's data containers. It is a non-const (read-write) handle, so allows both queries and mutations of the port's data.
|
default |
Constructs a handle for an invalid node.
|
inline |
Connects this port to a destination port to which it provides (sends) data or a value. Returns the newly created connection wire (may be invalid, if error).
Connects this port to a source port from which it takes (receives) data or a value. Returns the newly created connection wire (may be invalid, if error).
|
inline |
| UN_Graph UN_Port::graph | ( | ) | const |
Returns the graph whithin which this port exists.
| UN_Node UN_Port::node | ( | ) | const |
Returns the node to which this port belongs.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |