![]() |
VR-Forces 5.0.1 Developer's Guide
|
A DtPortConnection represents a connection between a DtOutputPort and a DtInputPort. PortConnections can be either active or inactive. An active connection is a connection which is supplying data, while an inactive connection is not currently supplying data. Data must be passed through connections as DtPortData.
Public Member Functions | |
| DtPortConnection (DtOutputPort *source, DtInputPort *destination, int priority) | |
| virtual | ~DtPortConnection () |
| virtual bool | init () |
| virtual bool | attemptToActivate () |
| virtual bool | canActivate () const |
| virtual bool | attemptToActivateAtLowestPriority () |
| virtual void | deactivate () |
| virtual void | allowDeactivation () |
| virtual bool | active () const |
| virtual void | sendData (DtPortData *data) |
| virtual int | priority () const |
| virtual void | setPriority (int priority) |
Protected Attributes | |
| DtOutputPort * | myOutputPort |
| DtInputPort * | myInputPort |
| int | myPriority |
Private Member Functions | |
| DtPortConnection () | |
| DtPortConnection (const DtPortConnection &) | |
| DtPortConnection & | operator= (const DtPortConnection &) |
| DtPortConnection::DtPortConnection | ( | DtOutputPort * | source, |
| DtInputPort * | destination, | ||
| int | priority | ||
| ) |
|
virtual |
Unregusters the connection with its input and output ports.
|
private |
Not Implemented.
|
private |
Not Implemented.
|
private |
Not Implemented.
|
virtual |
Initialization must be called after the constructor. Registers this connection with both the input and output ports.
|
virtual |
Attempts to make this connection the active connection to the input port. Returns true if successful.
|
virtual |
Checks if this connection can be the active connection to the input port. Returns true if successful.
|
virtual |
Attempts to make this connection the active connection to the input port, but only if no one else is attempting to use the connection. Then uses a priority of -1 to allow deactivation. Returns true if successful.
|
virtual |
Deactivates this connection.
|
virtual |
If active, lowers the priority to -1, the lowest possible priority.
|
virtual |
Returns true if this connection is active. A connection is active if the input port it is connected to is currently accepting data from this connection.
|
virtual |
Sends this data to the input port, if this connection is active.
|
virtual |
Returns the priority of this connection.
|
virtual |
Set the priority of this connection.
|
protected |
|
protected |
|
protected |