omni::graph::core::ConnectionCallback

Defined in omni/graph/core/iComputeGraph.h

struct ConnectionCallback

Callback object used when a connection is made or broken between two attributes.

Public Functions

inline bool operator==(const ConnectionCallback &rhs) const

Equality operator for the connection/disconnection callback object.

Parameters

rhs – Callback object to compare against

Returns

true The callback object is equal to rhs

Returns

false The callback object is not equal to rhs

inline bool operator!=(const ConnectionCallback &rhs) const

Inequality operator for the connection/disconnection callback object.

Parameters

rhs – Callback object to compare against

Returns

true The callback object is not equal to rhs

Returns

false The callback object is equal to rhs

Public Members

void (*connectionCallback)(const AttributeObj &srcAttr, const AttributeObj &dstAttr, void *userData)

Callback function definition.

Parameters are

  • srcAttr Source end of the connection that changed

  • dstAttr Destination end of the connection that changed

  • userData User data to pass to the callback

void *userData

User data to pass to the callback function.