12 #ifndef __UNI_Port_h__
13 #define __UNI_Port_h__
103 UNI_WireID addSrc(UNI_PortID
src);
108 void updateDownstreamPortTypes(
bool update_port )
const;
virtual UNI_WireIDList srcWires(UNI_PortID port_id) const =0
Return the wires that connect to a given port.
virtual UNI_PortKind portKind(UNI_PortID port_id) const =0
Returns what kind of a port this is: input or output.
UNI_NodeID node() const
Returns the UNI_Node that owns this port.
virtual UT_StringHolder colorName(UNI_PortID port_id) const =0
UNI_PortKind portKind() const
Returns what kind of a port this is: input or output.
virtual UNI_WireIDList dstWires(UNI_PortID port_id) const =0
Return the wires that connect to a given port.
UT_StringHolder colorName() const
UNI_WireIDList dstWires() const
virtual UNI_PortShape shape(UNI_PortID port_id) const =0
Returns the visual shape of the port in the UI.
virtual UT_StringHolder name() const =0
UNI_PortKind
Specifies the port kind, ie, wheter it is an input or an output port.
GLuint const GLchar * name
virtual UNI_NodeID ownerNode(UNI_PortID port_id) const =0
bool canSetName() const
Return true if the port name can be changed.
UNI_PortShape shape() const
Returns the UI shape of the port socket.
UNI_WireIDList srcWires() const
UNI_Item()=default
Constructor.
UT_StringHolder label() const
Returns the label for the port.
UNI_PortShape
Specifies the visual shape of the port in the UI.
virtual UT_StringHolder typeName(UNI_NodeID node_id) const =0
The type name of the node.
UT_StringHolder typeName() const
Returns the name of the data type for the given port.
const UNI_Graph * graph() const
Returns the graph inside which the node lives.
virtual bool canSetName(UNI_PortID port_id) const =0
Some graphs support setting port names.
UT_StringHolder name() const
Returns the name of the port.
UNI_ConstItem()=default
Constructor.
virtual UT_StringHolder label(UNI_PortID port_id) const =0
The label of the port. Some ports can be renamed.