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

DtConstrainedIntegerOutputPort is a version of DtIntegerOutputPort which will constrain any outgoing values to the range specified by min and max. More...

Inheritance diagram for DtConstrainedIntegerOutputPort:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 DtConstrainedIntegerOutputPort (const DtString &portName)
virtual ~DtConstrainedIntegerOutputPort ()
virtual void setValue (int value)
 Overridden from base class to constrian the value to within max and min.
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

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.


Constructor & Destructor Documentation


Member Function Documentation

virtual void DtConstrainedIntegerOutputPort::setValue ( int  value) [virtual]

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]

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)