OMC::Port Class Reference

Detailed Description

Represents and provides the methods for a node's port.

The base class for ports – ports are used when connecting one node to another via the Port. All ports are owned from by their respective Node, and are provided via the node's PortList. The node is either a InNode at the top of the node and accepts incoming connections, or an OutNode at the bottom of a Node and connects Cables to other nodes.

For more information, see OMC::InPort, OMC::OutPort, OMC::Node::ports_in, or OMC::Node::ports_out.

Public Attributes

uint id
 The internal ID of the port.
 
QString type
 The type of the port.
 
uint index
 The index of the port on the node.
 
OMC::Obj node
 The node that owns this port.
 
OMC::Obj node_related
 The node that this port leads to for multiport nodes and groups - the owner node for most node-types, but the the multi-port node for a group, or vice versa.
 
bool inport
 Whether the port is an inport.
 
bool outport
 Whether the port is an outport.
 
OMC::Obj port_related
 The port that this port relates to – itself for most node-types, but the corresponding port on the multi-port node for groups, or vice versa.
 
Inheritance diagram for OMC::Port:
Collaboration diagram for OMC::Port: