The DDD_Connection class. Base class for connections between assets.
More...
#include <DDD_Connection.h>
The DDD_Connection class. Base class for connections between assets.
Add an input to the connection at the end of the list
- Parameters
-
Add an output to the connection at the end of the list
- Parameters
-
bool AllEndpointsValid |
( |
| ) |
|
- Returns
- Returns true if all the endpoints for this connection are valid This is used by the GUI to indicate if a connection has invalid endpoints
void AllowForcePump |
( |
bool |
allowForcePump | ) |
|
Allows whether connection can be forced to update when ForceProcess() is called
- Parameters
-
allowForcePump | If true, this connection will be processed when ForceProcess() is called. If false, it will ignore the request. |
static void ClearPendingList |
( |
| ) |
|
|
static |
This method removes all connections from the the pending list.
Iterates through the inputs and outputs of this connection and disconnects any endpoints that come from the specified asset
- Parameters
-
asset | The asset to disconnect |
- Returns
- The number of endpoints that were disconnected
void DisplayNumber |
( |
int |
num | ) |
|
|
inline |
Set the "DisplayNumber", which is used by the DataDirector GUI for sorting connections
- Parameters
-
num | The DisplayNumber to set |
int DisplayNumber |
( |
| ) |
const |
|
inline |
- Returns
- Gets the "DisplayNumber", which is used by the DataDirector GUI for sorting connections
Adds connection to pending connections list, as long as force pumps are allowed
- Returns
- Gets a pointer to the converter for this connection or NULL if no converter has been set.
- Returns
- Gets the list of input endpoints for this connection
- Returns
- Gets the list of output endpoints for this connection
bool InitConverter |
( |
const std::string & |
params | ) |
|
Initializes the converter with the parameters specified as a string The string must contain the parameters in the form param1=value1;param2=value2 etc. The initialization string may contain the initial parameter values for the converter.
- Parameters
-
params | The parameters to the converter |
- Returns
- True if the parameters were accepted by the converter
Returns whether or not the specified output is already used as an output by this connection
- Parameters
-
output | The output to check |
- Returns
- True if the output is already used
void NotifyAssetNameChange |
( |
const std::string & |
oldname, |
|
|
const std::string & |
newname |
|
) |
| |
Handles the case when the instance name of a connected asset is changed. Iterates through all connected endpoints and reconfigures them to use the new asset name.
- Parameters
-
oldname | The old name of the asset |
newname | The new name of the asset |
A callback method that will be called when the attribute being observed changes if this observer has registered to be notified on attribute change
- Parameters
-
attribute | A pointer to the attribute that changed |
Implements DDD_AttributeObserver.
static void ProcessPending |
( |
| ) |
|
|
static |
process pending connections that have inputs with updated values
void RemoveInput |
( |
unsigned int |
index | ) |
|
Remove the specified input endpoint from the connection
- Parameters
-
index | Index of the input endpoint to remove |
void RemoveOutput |
( |
unsigned int |
index | ) |
|
Remove the specified output endpoint from the connection
- Parameters
-
endpoint | Index of the output endpoint to remove |
Replace the input to the connection at specified index.
- Parameters
-
input | The input to add |
index | The index to add at |
Replace the output to the connection at specified index.
- Parameters
-
output | The output to add |
index | The index to add at |
Iterates through the inputs and outputs of this connection and for each endpoint that has the same asset name as the specified asset that connection endpoint is reestablished. The purpose of this is to handle reconnection of endpoints in the case where the user deletes an asset in the editor and then loads a new asset
- Parameters
-
asset | Pointer to the asset to revalidate |
bool UseConvertFunction |
( |
const std::string & |
className, |
|
|
const std::string & |
params |
|
) |
| |
Chooses the converter function to use for this connection.
- Parameters
-
className | The class name of the converter. This will be used by the converter factory to dynamically load the converter. |
params | The initialization parameters for the converter. The string must contain the parameters in the form param1=value1;param2=value2 etc. |
- Returns
- True if the converter was successfully loaded
bool UseConvertFunction |
( |
const std::string & |
className | ) |
|
Chooses the converter function to use for this connection.
- Parameters
-
className | The class name of the converter. This will be used by the converter factory to dynamically load the converter. |
- Returns
- True if the converter was successfully loaded
The documentation for this class was generated from the following file: