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
13
namespace
makVre
14
{
15
//! Forward declarations
16
class
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.
23
class
VREINPUT_DLL
DtValueTransform
24
{
25
public
:
26
//! \brief Default constructor
27
DtValueTransform
() {};
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
47
protected
:
48
// Protected members may be added by derived classes
49
};
50
}
// namespace makVre
makVre::DtInitTable
Table-based access to Lua state for configuration data.
Definition
initializer.h:38
makVre::DtValueTransform::DtValueTransform
DtValueTransform()
Default constructor.
Definition
valueTransform.h:27
makVre::DtValueTransform::transform
virtual float transform(float value)=0
Apply the transformation to an input value.
makVre::DtValueTransform::~DtValueTransform
virtual ~DtValueTransform()
Virtual destructor.
Definition
valueTransform.h:29
makVre::DtValueTransform::init
virtual void init(DtInitTable *config)=0
Initialize the transformation with configuration data.
export.h
Defines DLL export/import macros for the vreInput library.
VREINPUT_DLL
#define VREINPUT_DLL
DLL export/import macro for the vreInput library.
Definition
export.h:25
makVre
Include export definitions for this library.
Definition
glsVreMessageUtil.h:49
Generated on 2026-01-13 from SVN revision 282860 - Copyright © 2005-2026 MAK Technologies. All Rights Reserved.