#include <Connection.h>

Public Types | |
| typedef unsigned int | ID |
| Type definition for a connection's identifier. | |
| typedef QMap< ID, Connection * > | Map |
| Type definition for a map of connections with connection ID's as keys. | |
Signals | |
| void | destroyed (Connection *connection) |
| Signal that is emitted when the connection is being destroyed. | |
Public Member Functions | |
| Connection (Parameter *sourceParameter, Parameter *targetParameter) | |
| Constructor of the Connection class. | |
| ~Connection () | |
| Destructor of the Connection class. | |
| ID | getId () const |
| Returns the connection's ID. | |
| bool | hasSource () const |
| Returns whether this connection is connected to an output parameter of a source node. | |
| Parameter * | getSourceParameter () const |
| Returns the source parameter that this connection is connected to. | |
| void | setSourceParameter (Parameter *sourceParameter) |
| Sets the source parameter that this connection should be connected to. | |
| bool | hasTarget () const |
| Returns whether this connection is connected to an input parameter of a target node. | |
| Parameter * | getTargetParameter () const |
| Returns the target parameter that this connection is connected to. | |
| void | setTargetParameter (Parameter *targetParameter) |
| Sets the target parameter that this connection should be connected to. | |
Private Member Functions | |
| void | updateName () |
| Updates the name of the connection according to its source and target parameters. | |
Private Attributes | |
| ID | m_id |
| The ID of the connection. | |
| Parameter * | m_sourceParameter |
| The parameter of the source node that this connection is connected to. | |
| Parameter * | m_targetParameter |
| The parameter of the target node that this connection is connected to. | |
Static Private Attributes | |
| static ID | s_currentId = 0 |
| The ID to give to the connection that is created next. | |
| typedef unsigned int Connection::ID |
Type definition for a connection's identifier.
| typedef QMap<ID, Connection *> Connection::Map |
Type definition for a map of connections with connection ID's as keys.
Constructor of the Connection class.
Public Constructors.
| sourceParameter | The parameter of the source node that this connection is connected to. | |
| targetParameter | The parameter of the target node that this connection is connected to. |
| sourceParameter | The parameter of the source node that this connection is connected to. | |
| targetParameter | The parameter of the target node that this connection is connected to. |
| Connection::~Connection | ( | ) |
Destructor of the Connection class.
| Connection::ID Connection::getId | ( | ) | const |
Returns the connection's ID.
Public Functions.
| bool Connection::hasSource | ( | ) | const |
Returns whether this connection is connected to an output parameter of a source node.
Returns whether this connection is connected to an output parameter.
| Parameter * Connection::getSourceParameter | ( | ) | const |
Returns the source parameter that this connection is connected to.
| void Connection::setSourceParameter | ( | Parameter * | sourceParameter | ) |
Sets the source parameter that this connection should be connected to.
| sourceParameter | The source parameter that this connection should be connected to. |
| bool Connection::hasTarget | ( | ) | const |
Returns whether this connection is connected to an input parameter of a target node.
| Parameter * Connection::getTargetParameter | ( | ) | const |
Returns the target parameter that this connection is connected to.
| void Connection::setTargetParameter | ( | Parameter * | targetParameter | ) |
Sets the target parameter that this connection should be connected to.
| targetParameter | The target parameter that this connection should be connected to. |
| void Connection::destroyed | ( | Connection * | connection | ) | [signal] |
Signal that is emitted when the connection is being destroyed.
| void Connection::updateName | ( | ) | [private] |
Updates the name of the connection according to its source and target parameters.
Private Functions.
Connection::ID Connection::s_currentId = 0 [static, private] |
The ID to give to the connection that is created next.
Private Static Data.
The ID to give to the Connection that is created next.
ID Connection::m_id [private] |
The ID of the connection.
Parameter* Connection::m_sourceParameter [private] |
The parameter of the source node that this connection is connected to.
Parameter* Connection::m_targetParameter [private] |
The parameter of the target node that this connection is connected to.
1.5.9