VR-Engage  2.2
Loading...
Searching...
No Matches
valueTransform.h
Go to the documentation of this file.
1/******************************************************************************
2** Copyright (c) 2025 MAK Technologies, Inc.
3** All rights reserved.
4******************************************************************************/
5
6//! \file
7//! \brief Abstract base class for input value transformation operations
8
9#pragma once
10
11#include "vreInput/export.h"
12
13namespace makVre
14{
15//! Forward declarations
16class DtInitTable;
17
18//! \brief Abstract base class for transforming input values
19//!
20//! This class defines the interface for value transformations that can be applied
21//! to raw input values before they are processed. Derived classes implement specific
22//! transformations like scaling, remapping, inversion, etc.
24{
25public:
26 //! \brief Default constructor
28 //! \brief Virtual destructor
29 virtual ~DtValueTransform() {};
30
31 //! \brief Initialize the transformation with configuration data
32 //!
33 //! Configures the transformation parameters from a configuration table.
34 //!
35 //! \param config Pointer to configuration data for this transform
36 virtual void init(DtInitTable* config) = 0;
37
38 //! \brief Apply the transformation to an input value
39 //!
40 //! Processes the input value according to the transformation's rules
41 //! and returns the transformed result.
42 //!
43 //! \param value The raw input value to transform
44 //! \return The transformed value
45 virtual float transform(float value) = 0;
46
47protected:
48 // Protected members may be added by derived classes
49};
50} // namespace makVre
Table-based access to Lua state for configuration data.
Definition initializer.h:38
DtValueTransform()
Default constructor.
Definition valueTransform.h:27
virtual float transform(float value)=0
Apply the transformation to an input value.
virtual ~DtValueTransform()
Virtual destructor.
Definition valueTransform.h:29
virtual void init(DtInitTable *config)=0
Initialize the transformation with configuration data.
Defines DLL export/import macros for the vreInput library.
#define VREINPUT_DLL
DLL export/import macro for the vreInput library.
Definition export.h:25
Include export definitions for this library.
Definition glsVreMessageUtil.h:49