VR-Forces 4.0.4 Class Documentation
Public Member Functions | Protected Attributes
DtConstrainedIntegerInputPort Class Reference

Contains class declarations for DtConstrainedIntegerInputPort and DtConstrainedIntegerOutputPort. More...

Inheritance diagram for DtConstrainedIntegerInputPort:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 DtConstrainedIntegerInputPort (const DtString &portName)
virtual ~DtConstrainedIntegerInputPort ()
virtual void receiveData (DtPortData *data)
 Overridden from base class to constrain data as it arrives to within min and max.
virtual void setMinValue (int minVal)
 If you forget to set min and max, all values will be constrained to 0.
virtual int minValue () const
virtual void setMaxValue (int maxVal)
virtual int maxValue () const

Protected Attributes

int myMaxValue
int myMinValue

Detailed Description

Contains class declarations for DtConstrainedIntegerInputPort and DtConstrainedIntegerOutputPort.

Instances of DtConstrainedIntegerInputPort are input ports that accept DtIntegerPortData as its data type, but will return values only within the specified min max range. It is possible to connect an unconstrained integer output port to this port.


Constructor & Destructor Documentation


Member Function Documentation

virtual void DtConstrainedIntegerInputPort::receiveData ( DtPortData data) [virtual]

Overridden from base class to constrain data as it arrives to within min and max.

Reimplemented from DtIntegerInputPort.

virtual void DtConstrainedIntegerInputPort::setMinValue ( int  minVal) [virtual]

If you forget to set min and max, all values will be constrained to 0.

virtual int DtConstrainedIntegerInputPort::minValue ( ) const [virtual]
virtual void DtConstrainedIntegerInputPort::setMaxValue ( int  maxVal) [virtual]
virtual int DtConstrainedIntegerInputPort::maxValue ( ) const [virtual]

Member Data Documentation


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

Document ID: Generated on Fri Jun 29 16:33:32 EDT 2012 from SVN revision 116588
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)