![]() |
VR-Forces 4.10 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. More... | |
| virtual void | setMinValue (int minVal) |
| If you forget to set min and max, all values will be constrained to 0. More... | |
| virtual int | minValue () const |
| virtual void | setMaxValue (int maxVal) |
| virtual int | maxValue () const |
Public Member Functions inherited from DtIntegerInputPort | |
| DtIntegerInputPort (const DtString &portName) | |
| virtual | ~DtIntegerInputPort () |
| virtual bool | acceptType (const DtString &type) const |
| Accepts DtIntegerPortDataType. 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 DtPortData * | data () 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 DtString & | name () 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) |
Protected Attributes | |
| int | myMaxValue |
| int | myMinValue |
Protected Attributes inherited from DtSingleConnectionInputPort | |
| DtPortData * | myData |
| int | myConnectionPriority |
| DtPortConnection * | myActiveConnection |
Protected Attributes inherited from DtInputPort | |
| DtString | myName |
| bool | myNewDataFlag |
| bool | myEnabled |
| DtList | myConnectionList |
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 |
|
virtual |
Overridden from base class to constrain data as it arrives to within min and max.
Reimplemented from DtIntegerInputPort.
|
virtual |
If you forget to set min and max, all values will be constrained to 0.
|
virtual |
|
virtual |
|
virtual |
|
protected |
|
protected |