![]() |
VR-Forces 4.0.4 Class Documentation
|
Input ports are data ports owned by data consumers. More...

Public Member Functions | |
| DtMultiConnectionInputPort (const DtString &portName) | |
| Constructor. | |
| virtual | ~DtMultiConnectionInputPort () |
| Destructor. | |
| virtual void | receiveData (DtPortData *data, const DtPortConnection *conn) |
| clones the specified DtPortData into the connection slot corresponding to the connection. | |
| virtual bool | attemptToActivateConnection (DtPortConnection *conn, int connectionPriority) |
| Activated this connection by adding an entry for it in the myCurrentConnections list. | |
| virtual bool | canActivate (const DtPortConnection *conn, int connectionPriority) const |
| Checks if this connection can be the active connection. | |
| virtual void | deactivateConnection (DtPortConnection *conn) |
| If conn is the currently active connection, it is deactivated and this port has no active input connection. | |
| virtual bool | activeConnection () const |
| Returns true if there is an active connection into this port. | |
| virtual bool | connectionActive (const DtPortConnection *connection) const |
| Returns true if the specified connection is currently active. | |
| virtual int | connectionPriority () const |
| Always returns -1, since any number of active input conenctions are always allowed. | |
Protected Attributes | |
| DtMultiConnectionInputPortConnectionMap | myCurrentConnections |
Private Member Functions | |
| DtMultiConnectionInputPort () | |
| Not implemented. | |
| DtMultiConnectionInputPort (const DtMultiConnectionInputPort &) | |
| Not implemented. | |
| DtMultiConnectionInputPort & | operator= (const DtMultiConnectionInputPort &) |
| Not implemented. | |
Input ports are data ports owned by data consumers.
They receive data from a DtPortConnection, and make that data available to the user of the input port. Users of the port should call newData() to check if new data has arrived on this port, and then call dataReceived() to signal that they have received and processed the data currently on the port.
DtSinleConnectionInputPorts allow only a single active connection at a time. If a connection with a better priority attempts to activate, other connections will be deactivated.
This is an abstract base class. Derived types must provide an acceptType method that specifies which DtPortData types this port is capable if receiving, and accessors for the values within the DtPortData types it is accepting.
| DtMultiConnectionInputPort::DtMultiConnectionInputPort | ( | const DtString & | portName | ) |
Constructor.
| virtual DtMultiConnectionInputPort::~DtMultiConnectionInputPort | ( | ) | [virtual] |
Destructor.
| DtMultiConnectionInputPort::DtMultiConnectionInputPort | ( | ) | [private] |
Not implemented.
| DtMultiConnectionInputPort::DtMultiConnectionInputPort | ( | const DtMultiConnectionInputPort & | ) | [private] |
Not implemented.
| DtMultiConnectionInputPort& DtMultiConnectionInputPort::operator= | ( | const DtMultiConnectionInputPort & | ) | [private] |
Not implemented.
| virtual void DtMultiConnectionInputPort::receiveData | ( | DtPortData * | data, |
| const DtPortConnection * | conn | ||
| ) | [virtual] |
clones the specified DtPortData into the connection slot corresponding to the connection.
conn must be an active connection for the data to be received.
Implements DtInputPort.
| virtual bool DtMultiConnectionInputPort::attemptToActivateConnection | ( | DtPortConnection * | conn, |
| int | connectionPriority | ||
| ) | [virtual] |
Activated this connection by adding an entry for it in the myCurrentConnections list.
Implements DtInputPort.
| virtual bool DtMultiConnectionInputPort::canActivate | ( | const DtPortConnection * | conn, |
| int | connectionPriority | ||
| ) | const [virtual] |
Checks if this connection can be the active connection.
Implements DtInputPort.
| virtual void DtMultiConnectionInputPort::deactivateConnection | ( | DtPortConnection * | conn | ) | [virtual] |
If conn is the currently active connection, it is deactivated and this port has no active input connection.
Implements DtInputPort.
| virtual bool DtMultiConnectionInputPort::activeConnection | ( | ) | const [virtual] |
Returns true if there is an active connection into this port.
Implements DtInputPort.
| virtual bool DtMultiConnectionInputPort::connectionActive | ( | const DtPortConnection * | connection | ) | const [virtual] |
Returns true if the specified connection is currently active.
Implements DtInputPort.
| virtual int DtMultiConnectionInputPort::connectionPriority | ( | ) | const [virtual] |
Always returns -1, since any number of active input conenctions are always allowed.
Implements DtInputPort.
DtMultiConnectionInputPortConnectionMap DtMultiConnectionInputPort::myCurrentConnections [protected] |