VR-Forces 4.1.1 Class Documentation
List of all members | Public Member Functions | Protected Member Functions
DtVectorOutputPort Class Reference

Instances of DtVectorOutputPort are output ports through which data producers can send a DtVector. More...

Inheritance diagram for DtVectorOutputPort:
Inheritance graph
[legend]

Public Member Functions

 DtVectorOutputPort (const DtString &portName)
virtual ~DtVectorOutputPort ()
virtual const DtString type () const
 returns DtVectorPortDataType
virtual void createPortData ()
 Creates a DtVectorPortData.
virtual void setValue (const DtVector &vector)
 Sets a value to the port, and sends the data if it is different from the current value.
virtual const DtVector value () const
 Return the current value.
- Public Member Functions inherited from DtOutputPort
 DtOutputPort (const DtString &portName)
 Constructor.
virtual ~DtOutputPort ()
 Destructor.
virtual bool init ()
 Call after the constructor.
virtual const DtStringname () const
 Returns the string name of this port.
virtual void sendData ()
 Sends the contents of myData to all connections.
virtual void addConnection (DtPortConnection *conn)
 Add a connection to the outgoing connection list.
virtual void removeConnection (DtPortConnection *conn)
 Remove a connection from the outgoing connection list.
virtual bool attemptToActivate ()
 Calls attemptToActivate on all connections in the connection list and returns true if any one of them was able to activate.
virtual bool canActivate () const
 Calls canActivate on all connections in the connection list and returns true if any one of them can be activated.
virtual void deactivate ()
 Calls deactivate on all connections in the connection list.
virtual void allowDeactivation ()
 Calls allowDeactivation on all connections in the connection list.
virtual bool active () const
 Returns true if any one of the outgoing connection are active.
virtual const DtList * connectionList () const
 Returns the list of output connections to this port.
virtual void setConnectionPriority (int priority)
 Sets the priority of all existing outgoing connections from this port to the new priority.
virtual DtPortDatadata ()
 Returns a pointer to the underlying port.
virtual const DtPortDatadata () const
 Returns a pointer to the underlying port.
virtual bool enabled () const
 Enables/disables the port.
virtual void setEnabled (bool flag)
 Enables/disables the port.

Protected Member Functions

 DtVectorOutputPort (const DtVectorOutputPort &orig)
 copy constructor
const DtVectorOutputPortoperator= (const DtVectorOutputPort &orig)
 assignment operator

Additional Inherited Members

- Protected Attributes inherited from DtOutputPort
DtString myName
bool myEnabled
DtPortDatamyData
 locally instantiated.
DtList myConnectionList
 List of outgoing connections.

Detailed Description

Instances of DtVectorOutputPort are output ports through which data producers can send a DtVector.

Constructor & Destructor Documentation

DtVectorOutputPort::DtVectorOutputPort ( const DtString portName)
virtual DtVectorOutputPort::~DtVectorOutputPort ( )
virtual
DtVectorOutputPort::DtVectorOutputPort ( const DtVectorOutputPort orig)
protected

copy constructor

Member Function Documentation

virtual const DtString DtVectorOutputPort::type ( ) const
virtual

returns DtVectorPortDataType

Implements DtOutputPort.

virtual void DtVectorOutputPort::createPortData ( )
virtual

Creates a DtVectorPortData.

Implements DtOutputPort.

virtual void DtVectorOutputPort::setValue ( const DtVector vector)
virtual

Sets a value to the port, and sends the data if it is different from the current value.

virtual const DtVector DtVectorOutputPort::value ( ) const
virtual

Return the current value.

const DtVectorOutputPort& DtVectorOutputPort::operator= ( const DtVectorOutputPort orig)
protected

assignment operator


The documentation for this class was generated from the following file:

Document ID: Generated on Mon Apr 8 19:24:01 EDT 2013 from SVN revision 125877
Copyright © 2005-2013 VT MÄK. All Rights Reserved (www.mak.com)