DtConstrainedIntegerOutputPort is a version of DtIntegerOutputPort which will constrain any outgoing values to the range specified by min and max. It outputs DtIntegerPortData, can be connected to any port which accepts this data type, not only a DtConstrainedIntegerInputPort.
| DtConstrainedIntegerOutputPort::DtConstrainedIntegerOutputPort |
( |
const DtString & |
portName | ) |
|
| virtual DtConstrainedIntegerOutputPort::~DtConstrainedIntegerOutputPort |
( |
| ) |
|
|
overridevirtual |
| virtual void DtConstrainedIntegerOutputPort::setValue |
( |
int |
value | ) |
|
|
overridevirtual |
Overridden from base class to constrian the value to within max and min.
Reimplemented from DtIntegerOutputPort.
| virtual void DtConstrainedIntegerOutputPort::setMinValue |
( |
int |
minVal | ) |
|
|
virtual |
If you forget to set min and max, all values will be constrained to 0.
| virtual int DtConstrainedIntegerOutputPort::minValue |
( |
| ) |
const |
|
virtual |
| virtual void DtConstrainedIntegerOutputPort::setMaxValue |
( |
int |
maxVal | ) |
|
|
virtual |
| virtual int DtConstrainedIntegerOutputPort::maxValue |
( |
| ) |
const |
|
virtual |
| int DtConstrainedIntegerOutputPort::myMaxValue |
|
protected |
| int DtConstrainedIntegerOutputPort::myMinValue |
|
protected |
The documentation for this class was generated from the following file: