![]() |
VR-Forces 4.0.4 Class Documentation
|
Contains class declarations for DtConstrainedIntegerInputPort and DtConstrainedIntegerOutputPort. More...

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 |
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.
| DtConstrainedIntegerInputPort::DtConstrainedIntegerInputPort | ( | const DtString & | portName | ) |
| virtual DtConstrainedIntegerInputPort::~DtConstrainedIntegerInputPort | ( | ) | [virtual] |
| 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] |
int DtConstrainedIntegerInputPort::myMaxValue [protected] |
int DtConstrainedIntegerInputPort::myMinValue [protected] |