|
VR-Engage
2.2
|
This class defines the interface for value transformations that can be applied to raw input values before they are processed. Derived classes implement specific transformations like scaling, remapping, inversion, etc.
#include <valueTransform.h>
Public Member Functions | |
| DtValueTransform () | |
| virtual | ~DtValueTransform () |
| virtual void | init (DtInitTable *config)=0 |
| virtual float | transform (float value)=0 |
|
inline |
Default constructor.
|
inlinevirtual |
Virtual destructor.
|
pure virtual |
Initialize the transformation with configuration data.
Configures the transformation parameters from a configuration table.
| config | Pointer to configuration data for this transform |
Implemented in makVre::DtDeadZoneValueTransform, makVre::DtGainValueTransform, makVre::DtInvertValueTransform, makVre::DtRemapValueTransform, and makVre::DtScaleValueTransform.
|
pure virtual |
Apply the transformation to an input value.
Processes the input value according to the transformation's rules and returns the transformed result.
| value | The raw input value to transform |
Implemented in makVre::DtDeadZoneValueTransform, makVre::DtGainValueTransform, makVre::DtInvertValueTransform, makVre::DtRemapValueTransform, and makVre::DtScaleValueTransform.