VR-Engage  2.2
Loading...
Searching...
No Matches
makVre::DtValueTransform Class Referenceabstract

Detailed Description

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>

Inheritance diagram for makVre::DtValueTransform:
[legend]

Public Member Functions

 DtValueTransform ()
 
virtual ~DtValueTransform ()
 
virtual void init (DtInitTable *config)=0
 
virtual float transform (float value)=0
 

Constructor & Destructor Documentation

◆ DtValueTransform()

makVre::DtValueTransform::DtValueTransform ( )
inline

Default constructor.

◆ ~DtValueTransform()

virtual makVre::DtValueTransform::~DtValueTransform ( )
inlinevirtual

Virtual destructor.

Member Function Documentation

◆ init()

virtual void makVre::DtValueTransform::init ( DtInitTable * config)
pure virtual

Initialize the transformation with configuration data.

Configures the transformation parameters from a configuration table.

Parameters
configPointer to configuration data for this transform

Implemented in makVre::DtDeadZoneValueTransform, makVre::DtGainValueTransform, makVre::DtInvertValueTransform, makVre::DtRemapValueTransform, and makVre::DtScaleValueTransform.

◆ transform()

virtual float makVre::DtValueTransform::transform ( float value)
pure virtual

Apply the transformation to an input value.

Processes the input value according to the transformation's rules and returns the transformed result.

Parameters
valueThe raw input value to transform
Returns
The transformed value

Implemented in makVre::DtDeadZoneValueTransform, makVre::DtGainValueTransform, makVre::DtInvertValueTransform, makVre::DtRemapValueTransform, and makVre::DtScaleValueTransform.


The documentation for this class was generated from the following file: