VR-Forces 4.8 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions
DtIntegerInputPort Class Reference

Contains class declarations for DtIntegerInputPort, DtIntegerOutputPort, and DtIntegerPortData. More...

Inheritance diagram for DtIntegerInputPort:
Inheritance graph
[legend]

Public Member Functions

 DtIntegerInputPort (const DtString &portName)
 
virtual ~DtIntegerInputPort ()
 
virtual bool acceptType (const DtString &type) const
 Accepts DtIntegerPortDataType. More...
 
virtual void receiveData (DtPortData *data)
 Overridden for optimization. More...
 
virtual int value () const
 Return the current value. More...
 
- Public Member Functions inherited from DtSingleConnectionInputPort
 DtSingleConnectionInputPort (const DtString &portName)
 Constructor. More...
 
virtual ~DtSingleConnectionInputPort ()
 Destructor. More...
 
virtual void receiveData (DtPortData *data, const DtPortConnection *conn=0)
 clones the specified DtPortData into myData, and sets the newDataFlag to true. More...
 
virtual const DtPortDatadata () const
 Returns the current pointer to a port data. More...
 
virtual bool attemptToActivateConnection (DtPortConnection *conn, int connectionPriority)
 Attempt to make this connection the active connection providing data to this port with the specified priority. More...
 
virtual bool canActivate (const DtPortConnection *conn, int connectionPriority) const
 Checks if this connection can be the active connection. More...
 
virtual void deactivateConnection (DtPortConnection *conn)
 If conn is the currently active connection, it is deactivated and this port has no active input connection. More...
 
virtual bool activeConnection () const
 Returns true if there is an active connection into this port. More...
 
virtual bool connectionActive (const DtPortConnection *connection) const
 Returns true if the specified connection is currently active. More...
 
virtual int connectionPriority () const
 Returns the current connection priority. More...
 
- Public Member Functions inherited from DtInputPort
 DtInputPort (const DtString &portName)
 Constructor. More...
 
virtual ~DtInputPort ()
 Destructor. More...
 
virtual const DtStringname () const
 Returns the name string of this port. More...
 
virtual void addConnection (DtPortConnection *conn)
 Add an incomming connection to this port. More...
 
virtual void removeConnection (DtPortConnection *conn)
 Remove an incomming connection to this port. More...
 
virtual const DtList * connectionList () const
 Returns the list of input connections to this port. More...
 
virtual bool newData () const
 Returns true if there is new data on this port that has not been received. More...
 
virtual void dataReceived ()
 Clears the newData flag on this port. More...
 
virtual bool enabled () const
 Enables/disables the port. More...
 
virtual void setEnabled (bool flag)
 

Additional Inherited Members

- Protected Attributes inherited from DtSingleConnectionInputPort
DtPortDatamyData
 
int myConnectionPriority
 
DtPortConnectionmyActiveConnection
 
- Protected Attributes inherited from DtInputPort
DtString myName
 
bool myNewDataFlag
 
bool myEnabled
 
DtList myConnectionList
 

Detailed Description

Contains class declarations for DtIntegerInputPort, DtIntegerOutputPort, and DtIntegerPortData.

Instances of DtIntegerInputPort are input ports through which data consumers can receive integer values.

Constructor & Destructor Documentation

DtIntegerInputPort::DtIntegerInputPort ( const DtString portName)
virtual DtIntegerInputPort::~DtIntegerInputPort ( )
virtual

Member Function Documentation

virtual bool DtIntegerInputPort::acceptType ( const DtString type) const
virtual

Accepts DtIntegerPortDataType.

Implements DtInputPort.

virtual void DtIntegerInputPort::receiveData ( DtPortData data)
virtual

Overridden for optimization.

Instead of cloning the port data, it copies the int value to a local port data instance.

Reimplemented in DtConstrainedIntegerInputPort.

virtual int DtIntegerInputPort::value ( ) const
virtual

Return the current value.


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

Document ID: Generated on Thu Aug 27 10:56:05 EDT 2020 from SVN revision 217100
Copyright © 2005-2020 MAK Technologies. All Rights Reserved (www.mak.com)