Enzo
Loading...
Searching...
No Matches
enzo::nt::GeometryConnection Class Reference

Directional edges to connect nodes. More...

#include <GeometryConnection.h>

Public Member Functions

 GeometryConnection (enzo::nt::OpId inputOpId, unsigned int inputOpIndex, enzo::nt::OpId outputOpId, unsigned int outputOpIndex)
 Constructs a connection between two nodes.
 
enzo::nt::OpId getInputOpId () const
 Returns the Operator ID of the connection input (where data flows from).
 
enzo::nt::OpId getOutputOpId () const
 Returns the Operator ID of the connection output (where data flows to).
 
unsigned int getInputIndex () const
 Returns the socket number of getInputOpId in which data flows from.
 
unsigned int getOutputIndex () const
 Returns the socket number of getOutputOpId in which data flows to.
 
void remove ()
 Removes the connection from it's associated nodes. Does not delete the object.
 

Public Attributes

boost::signals2::signal< void()> removed
 A signal emitted when the connection is removed.
 

Friends

std::ostream & operator<< (std::ostream &os, const GeometryConnection &p)
 Provides an ostream representation of the connection, useful for debugging.
 

Detailed Description

Directional edges to connect nodes.

Todo
Currently geometry connections are stored on nodes. It might make more sense to move them to a container within the network manager so they're all in the same place

Input and output are in relation to data flow.

Todo
Currently geometry connections are stored on nodes. It might make more sense to move them to a container within the network manager so they're all in the same place

Constructor & Destructor Documentation

◆ GeometryConnection()

enzo::nt::GeometryConnection::GeometryConnection ( enzo::nt::OpId inputOpId,
unsigned int inputOpIndex,
enzo::nt::OpId outputOpId,
unsigned int outputOpIndex )

Constructs a connection between two nodes.

Input and output are in relation to data flow.

Parameters
inputOpIdThe Operator ID in which data flows from.
outputOpIdThe Operator ID in which data flows to.
inputOpIndexThe output socket number of inputOpId in which data flows from.
outputOpIndexThe input socket number of outputOpId in which data flows to.

The documentation for this class was generated from the following files: